gram_ast.gramnode
Interface: GramNode
A GramNode is a special case of a path composed of two empty paths, which is equivalent to having no children.
Hierarchy
-
↳ GramNode
Indexable
▪ [key: string]: unknown
A GramNode is a special case of a path composed of two empty paths, which is equivalent to having no children.
Index
Properties
Properties
children
• children: []
Defined in packages/gram-ast/src/index.ts:134
Optimized to no children, though understood to have two empty paths as children.
data
• Optional
data: Data
Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:23
Information from the ecosystem.
id
• Optional
id: undefined | string
Defined in packages/gram-ast/src/index.ts:57
An identifier for the path.
For example, ‘1’ in ()-[1]->()
or ‘a’ in (a)
kind
• Optional
kind: PathKind
Defined in packages/gram-ast/src/index.ts:62
The kind of path composition.
labels
• Optional
labels: string[]
Inherited from GramPath.labels
Defined in packages/gram-ast/src/index.ts:69
Labels are used to qualify a path.
For example, ‘Aye’ in (:Aye)
or ‘KNOWS’ in (a)-[:KNOWS]->(b)
position
• Optional
position: Position
Inherited from GramSeq.position
Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:29
Location of a node in a source document. Must not be present if a node is generated.
record
• Optional
record: GramRecord
Inherited from GramPath.record
Defined in packages/gram-ast/src/index.ts:74
The data content of the path.
type
• type: "path"
Overrides void
Defined in packages/gram-ast/src/index.ts:50
Type discriminator for this AST element, always ‘path’.