CodeModel class abstract
A (tree) model that represents Dart Code. It contains a list of CodeNodes that is generated by using the constructor parameters, fields and or properties of the implementation of CodeModel CodeNodes can be:
CodeLeaf
s that can be converted to a string- Other CodeModels that represent part of the code (e.g. a Library, Class, Annotation, Function, Method, Block, Statement, etc)
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
codeNodes(
Context context) → List< CodeNode> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toUnFormattedString(
Context context) → String -
Recursive call to get the unformatted code from all nodes
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited