gram_ast.gramemptypath


gram.js API

Globals / gram-ast / GramEmptyPath

Interface: GramEmptyPath

A GramEmptyPath is an empty path with no children, no labels, and no record but a unique singleton identity of EMPTY_PATH_ID.

Hierarchy

Indexable

▪ [key: string]: unknown

A GramEmptyPath is an empty path with no children, no labels, and no record but a unique singleton identity of EMPTY_PATH_ID.

Index

Properties

Properties

children

children: []

Overrides GramPath.children

Defined in packages/gram-ast/src/index.ts:114


data

Optional data: Data

Inherited from GramSeq.data

Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:23

Information from the ecosystem.


id

id: typeof EMPTY_PATH_ID

Overrides GramPath.id

Defined in packages/gram-ast/src/index.ts:108


kind

Optional kind: PathKind

Inherited from GramPath.kind

Defined in packages/gram-ast/src/index.ts:62

The kind of path composition.


labels

labels: undefined

Overrides GramPath.labels

Defined in packages/gram-ast/src/index.ts:110


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

record: undefined

Overrides GramPath.record

Defined in packages/gram-ast/src/index.ts:112


type

type: "path"

Inherited from GramPath.type

Overrides void

Defined in packages/gram-ast/src/index.ts:50

Type discriminator for this AST element, always ‘path’.