FutureCallsAnalyzer class
Analyzes dart files for FutureCalls.
Constructors
- FutureCallsAnalyzer({required Directory directory, required FutureCallMethodParameterValidator parameterValidator})
-
Create a new FutureCallsAnalyzer, containing a
AnalysisContextCollectionthat analyzes all dart files in the provideddirectory.
Properties
- absoluteIncludedPaths → String
-
final
- collection → AnalysisContextCollection
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parameterValidator → FutureCallMethodParameterValidator
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
analyze(
{required CodeAnalysisCollector collector, Set< String> ? changedFiles}) → Future<List< FutureCallDefinition> > -
Analyze all files in the
AnalysisContextCollection. -
analyzeModels(
CodeAnalysisCollector collector) → 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