Module syntax_node

Module syntax_node 

Source
Expand description

This module defines Concrete Syntax Tree (CST), used by rust-analyzer.

The CST includes comments and whitespace, provides a single node type, SyntaxNode, and a basic traversal API (parent, children, siblings).

The real implementation is in the (language-agnostic) rowan crate, this module just wraps its API.

Structsยง

GreenNode ๐Ÿ”’
Internal node in the immutable tree. It has other nodes and tokens as children.
GreenToken ๐Ÿ”’
Leaf node in the immutable tree.
SyntaxTreeBuilder

Enumsยง

NodeOrToken ๐Ÿ”’
RustLanguage

Type Aliasesยง

PreorderWithTokens
SyntaxElement
SyntaxElementChildren
SyntaxNode
SyntaxNodeChildren
SyntaxToken