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-public-latest';

Signature:

export interface SyntaxNodeRef

Properties

Property Type Description
from number The start position of the node.
name string The name of the node type.
node SyntaxNode The actual syntax node.
to number The end position of the node.
tree LezerTree | null The tree that this node belongs to, if it is a top node.
type NodeType The type of this node.

Links to this page: