FutureCallsAnalyzer class
Analyzes dart files for FutureCalls.
The caller is responsible for calling StatefulAnalyzer.validateAll and
passing the validated models to analyze or analyzeModels.
Constructors
-
FutureCallsAnalyzer({required Directory directory, AnalysisContextCollection? collection, Set<
String> ? generatedDirPaths}) -
Create a new FutureCallsAnalyzer for
directory.
Properties
- absoluteIncludedPaths → String
-
final
- collection → AnalysisContextCollection
-
final
-
futureCallFiles
→ Iterable<
String> -
The files the last analysis found future call declarations in, spelled as the
analysis context spells them.
no setter
-
generatedDirPaths
→ Set<
String> -
Absolute paths of the directories this project generates code into.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
analyze(
{required CodeAnalysisCollector collector, List< SerializableModelDefinition> ? analyzedModels, Set<String> ? changedFiles}) → Future<List< FutureCallDefinition> > -
Analyze files in the
AnalysisContextCollection. -
analyzeModels(
CodeAnalysisCollector collector, List< SerializableModelDefinition> analyzedModels) → Future<List< SerializableModelDefinition> > -
Analyze all files in the
AnalysisContextCollectionforFutureCallParameterDefinitionwhich need to be converted into SerializableModelDefinition for model generation. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateFileContexts(
Set< String> filePaths) → Future<bool> -
Inform the analyzer that the provided
filePathshave been updated.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited