ASTNode class abstract

An abstract node of an abstract syntax tree.

Implementers

Constructors

ASTNode(String type, {bool isStatement = false, bool isAwait = false, bool isBlock = false, HTSource? source, int line = 0, int column = 0, int offset = 0, int length = 0})

Properties

column → int
final
documentation → String
no setter
end → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
isAwait → bool
final
isBlock → bool
Wether this is a struct/code block expression.
final
isConstValue → bool
Wether this value is constantant value, i.e. its value is computed before compile into bytecode.
no setter
isExpression → bool
no setter
isStatement → bool
final
length → int
final
line → int
final
offset → int
final
precedings ↔ List<ASTAnnotation>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → HTSource?
final
succeedings ↔ List<ASTAnnotation>
getter/setter pair
trailing ↔ ASTAnnotation?
getter/setter pair
trailingAfter ↔ ASTAnnotation?
getter/setter pair
type → String
final
value ↔ dynamic
If this is a constant expressions, the constant interpreter will compute the value and assign to this property, otherwise, this peoperty is null.
getter/setter pair

Methods

accept(AbstractASTVisitor visitor) → dynamic
Visit this node
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subAccept(AbstractASTVisitor visitor) → void
Visit all the sub nodes of this, doing nothing by default.
toString() → String
A string representation of this object.
inherited

Operators

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