DartBlockProgramTreeCustomFunctionNode class
The node for a DartBlockFunction in the tree representation.
- Inheritance
-
- Object
- DartBlockProgramTreeNode
- DartBlockProgramTreeCustomFunctionNode
Constructors
- DartBlockProgramTreeCustomFunctionNode(DartBlockFunction customFunction, DartBlockProgramTreeNode? parent)
Properties
-
children
→ List<
DartBlockProgramTreeNode> -
The list of child nodes.
finalinherited
- customFunction → DartBlockFunction
-
final
- 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 -
Retrieve the maximum depth of this DartBlockFunction.
override
-
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