DartBlockProgramTreeRootNode class
The root node of the tree representation of a DartBlockProgram.
The node key is always -1.
The root node has no parent.
- Inheritance
-
- Object
- DartBlockProgramTreeNode
- DartBlockProgramTreeRootNode
Constructors
Properties
-
children
→ List<
DartBlockProgramTreeNode> -
The list of child nodes.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → int
-
A unique key which the node is associated with.
finalinherited
- parent → DartBlockProgramTreeNode?
-
The parent node.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findAllVariableDefinitions(
) → List< DartBlockVariableDefinition> -
Retrieve all variable definitions in the current node and its child nodes.
inherited
-
findNodeByKey(
int key) → DartBlockProgramTreeNode? -
Return this node if its
keymatches. Otherwise, perform downward traversal to find matches in the child nodes.inherited -
findVariableDefinitions(
int key, {bool includeNode = false}) → List< DartBlockVariableDefinition> -
Retrieve the list of variables defined in the scope given by the starting node, based on its
key. Based on the starting node, upward traversal is used to find all preceding variable definitions.inherited -
getMaxDepth(
) → int -
Get the depth of this node.
inherited
-
getStatementTypeUsageCount(
) → Map< StatementType, int> -
Count the number of usage of each StatementType by way of downward traversal.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited