Skip to content

SyntaxNodeRef

Unofficial

A reference to a syntax node, providing its position and type information.

Import:

import type { SyntaxNodeRef } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface SyntaxNodeRef

Properties

PropertyTypeDescription
fromnumberThe start position of the node.
namestringThe name of the node type.
nodeSyntaxNodeThe actual syntax node.
tonumberThe end position of the node.
treeLezerTree | nullThe tree that this node belongs to, if it is a top node.
typeNodeTypeThe type of this node.

Links to this page: