Logo Xantham

Node<'Tag> Type

A node in a decoded source file, tagged with what the schema says it is. A struct over the blob and an index, so it is the same two words a raw `int` walk carries plus the blob it was already holding. The tag is erased at runtime.

Record fields

Record Field Description

File

Full Usage: File

Field type: SourceFile
Field type: SourceFile

Index

Full Usage: Index

Field type: int
Field type: int

Instance members

Instance member Description

this.End

Full Usage: this.End

Returns: int

End of the node, in UTF-16 code units.

Returns: int

this.Kind

Full Usage: this.Kind

Returns: SyntaxKind

The node's kind, read from the blob. Tags are erased, so this is the only thing that knows what the node actually is.

Returns: SyntaxKind

this.Pos

Full Usage: this.Pos

Returns: int

Start of the node including leading trivia, in UTF-16 code units.

Returns: int

this.Text

Full Usage: this.Text

Returns: string voption

The node's text, cooked rather than as spelled, for the kinds that carry any.

Returns: string voption

Type something to start searching.