discoverDartFiles static method
Public wrapper around _findDartFiles for callers that need the
project's discovered file list up front (e.g. the scan daemon's
listFiles request, which the IDE baseline scan uses to build chunked
batches before issuing per-chunk resolved scans).
Implementation
static List<String> discoverDartFiles(String directory) =>
_findDartFiles(directory);