FutureCallsAnalyzer constructor

FutureCallsAnalyzer({
  1. required Directory directory,
  2. AnalysisContextCollection? collection,
  3. Set<String>? generatedDirPaths,
})

Create a new FutureCallsAnalyzer for directory.

When collection is provided it is reused (e.g. shared with EndpointsAnalyzer). Otherwise a new one is created internally.

Pass generatedDirPaths so generated output is not scanned for future calls.

Implementation

FutureCallsAnalyzer({
  required Directory directory,
  AnalysisContextCollection? collection,
  Set<String>? generatedDirPaths,
}) : collection = collection ?? createAnalysisContextCollection(directory),
     generatedDirPaths = generatedDirPaths ?? const {},
     absoluteIncludedPaths = directory.absolute.path;