Variable class Null safety

Inheritance
Implementers
Available Extensions

Constructors

Variable()

Properties

allDescendants Iterable<AstNode>
Recursively returns all descendants of this node, e.g. its children, their children and so on. The tree will be pre-order traversed.
read-only, inherited
childNodes Iterable<AstNode>
All direct children of this node.
read-only, inherited
first Token?
The first token that appears in this node. This information is not set for all nodes.
read / write, inherited
firstPosition int
The first position of this entity, as an zero-based offset in the file it was read from.
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
hasSpan bool
Whether this entity has a source span associated with it.
read-only, inherited
last Token?
The last token that appears in this node. This information is not set for all nodes.
read / write, inherited
lastPosition int
The (exclusive) last index of this entity in the source.
read-only, inherited
parent AstNode?
The parent of this node, or null if this is the root node. Will be set by the analyzer after the tree has been parsed.
read / write, inherited
parents Iterable<AstNode>
Returns all parents of this node up to the root. If this node is the root, the iterable will be empty.
read-only, inherited
resolvedIndex int?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scope ReferenceScope
The ReferenceScope, which contains available tables, column references and functions for this node.
read / write, inherited
selfAndDescendants Iterable<AstNode>
Returns an iterable that fields yields this node, followed by allDescendants.
read-only, inherited
selfAndParents Iterable<AstNode>
Returns an iterable containing this node and all parents.
read-only, inherited
span FileSpan?
The piece of text forming this syntactic entity.
read-only, inherited
synthetic bool
Whether this entity is synthetic, meaning that it doesn't appear in the actual source.
read / write, inherited

Methods

accept<A, R>(AstVisitor<A, R> visitor, A arg) → R
Calls the appropriate method on the visitor to make it recognize this node.
inherited
acceptWithoutArg<R>(AstVisitor<void, R> visitor) → R
Like accept, but without an argument.
inherited
contentEquals(AstNode other) bool
Whether the content of this node is equal to the other node of the same type. The "content" refers to anything stored only in this node, children are ignored.
@nonVirtual, inherited
enclosingOfType<T extends AstNode>() → T?
Finds the first element in selfAndParents of the type T.
inherited
isChildOf(AstNode other) bool
inherited
meta<T>() → T?
Returns the metadata of type T that might have been set on this node, or null if none was found. Nodes can have arbitrary annotations on them set via setMeta and obtained via meta. This mechanism is used to, for instance, attach variable scopes to a subtree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setMeta<T>(T value) → void
Sets the metadata of type T to the specified value. Nodes can have arbitrary annotations on them set via setMeta and obtained via meta. This mechanism is used to, for instance, attach variable scopes to a subtree.
inherited
setSpan(Token first, Token last) → void
Sets the AstNode.first and AstNode.last property in one go.
inherited
toString() String
A string representation of this object.
inherited
transformChildren<A>(Transformer<A> transformer, A arg) → void
Transforms children of this node by invoking transformer with the argument arg.
inherited

Operators

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