AstContext class
Context extracted from the Dart Abstract Syntax Tree (AST) around a crash site.
- Annotations
-
- @immutable
Constructors
-
AstContext({required String filePath, required int targetLine, required int targetColumn, required String targetLineSource, String? enclosingClass, String? enclosingMethod, required String nodeType, required String methodSource, required int methodStartLine, required int methodEndLine, String? associatedTestFile, List<
String> surroundingLines = const []}) -
const
Properties
- associatedTestFile → String?
-
final
- enclosingClass → String?
-
final
- enclosingMethod → String?
-
final
- filePath → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodEndLine → int
-
final
- methodSource → String
-
final
- methodStartLine → int
-
final
- nodeType → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
surroundingLines
→ List<
String> -
final
- targetColumn → int
-
final
- targetLine → int
-
final
- targetLineSource → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited