DataFlowAnalyzer class
Main programmatic analyzer that computes reaching definitions, mutations, and live outputs for a code slice using Dart's resolved AST.
Constructors
- DataFlowAnalyzer({String? sdkPath})
-
const
Properties
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