Main document object
- Implements
Constructors
- Document()
Properties
- childEntities → Iterable<AstNode>
-
Return an iterator that can be used to iterate through all the entities (either AST nodes or tokens) that make up the contents of this node, including doc comments but excluding other comments.
read-only, inherited - contents → NodeList<BlockNode>
-
Documents contents
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - parent → AstNode
-
Return this node's parent node, or
null
if this node is the root of an AST structure.read-only, inherited - root → AstNode
-
Return the node at the root of this node's AST structure. Note that this method's performance is linear with respect to the depth of the node in the AST structure (O(depth)).
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
accept<E>(
AstVisitor<E> visitor) → E -
Use the given
visitor
to visit this node. Return the value returned by the visitor as a result of visiting this node.inherited -
getAncestor<E extends AstNode>(
Predicate predicate) → E -
Return the most immediate ancestor of this node for which the
predicate
returnstrue
, ornull
if there is no such ancestor. Note that this node will never be returned.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited -
visitChildren<E>(
AstVisitor<E> visitor) → void -
Use the given
visitor
to visit all of the children of this node. The children will be visited in lexical order.inherited