AST class
Constructors
- AST()
Properties
- commentIndex ↔ int
-
read / write
-
comments
↔ Map<
int, String> -
read / write
- root ↔ TreeNode
-
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
addNode(
String line) → bool -
getIndentationLevel(
String line) → int - Returns the tree level for the line.
-
injectComments(
String data) → String - Inject comments in the final string generated from ast.
-
isComment(
String line) → bool - Returns whether the string contains comment or not.
-
removeComments(
String line) → String - Removes all the comment from the line.
-
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
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
iterateTree(
TreeNode pointer) → void - Print all the nodes in the tree.
-
movePointer(
TreeNode root, int level) → TreeNode - Move the pointer to required tree level.
-
treeToMap(
dynamic result, TreeNode root) → dynamic - Generates a map from the AST.