DataFlowAnalyzer class
Main programmatic analyzer that computes reaching definitions, mutations, and live outputs for a code slice using Dart's resolved AST.
Constructors
- DataFlowAnalyzer({SignatureSynthesizer synthesizer = const SignatureSynthesizer(), String? sdkPath})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkPath → String?
-
final
- synthesizer → SignatureSynthesizer
-
final
Methods
-
analyzeFile(
{required String filePath, required int startLine, required int endLine, String methodName = '_extracted'}) → Future< DataFlowResult> - Analyzes a file on disk by file path and 1-based line bounds.
-
analyzeSource(
{required String sourceCode, required int startLine, required int endLine, String methodName = '_extracted'}) → Future< DataFlowResult> - In-memory analysis for unit testing and IDE integration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited