Node¶
-
class
Cocotec.CocoPlatform.Coco.Node
¶ A single AST node within a Coco model.
Public Functions
-
override bool
Equals
(object other)¶
-
override int
GetHashCode
()¶
-
string
Name
()¶ If this is a value declaration, then the name of the node, otherwise an empty string.
-
string
PrettyPrint
()¶ Pretty prints a representation of this node.
-
Cocotec.CocoPlatform.Coco.NodeKind
NodeKind
()¶ The underlying AST node kind - NB these are not stable and subject to change
-
Cocotec.CocoPlatform.Coco.ComponentKind
ComponentKind
()¶ Whether this is an encapsulating/external/state machine component
-
bool
IsValid
()¶ Whether this points to a genuine AST node or is a de facto null pointer
-
string
PrettyPrint
(string formatSpecification) Pretty prints a representation of this node, applying the Coco formatter to the result.
- Parameters
formatSpecification
: A json dictionary giving the coco-format options.
Properties
-
ulong
OpaqueValue
{ }¶
-
override bool