ASTWithSource class

Wraps an AST with source and location information.

Constructors

ASTWithSource(AST ast, String? source, String? location)
Wraps ast with source and location information (for debugging).
ASTWithSource.from(ASTWithSource original, AST transformed)
Replaces the perceived AST structure of original with transform.
ASTWithSource.missingSource(AST ast)
Represents an AST without any source information.

Properties

ast AST
final
hashCode int
The hash code for this object.
no setterinherited
location String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited