Module ast

Source

Modules§

nodes
quoted_value
support
tokens

Structs§

AstChildren
An iterator over SyntaxNode children of a particular AST type.

Traits§

AstNode
The main trait to go from untyped SyntaxNode to a typed ast. The conversion itself has zero runtime cost: ast and syntax nodes have exactly the same representation: a pointer to the tree root and a pointer to the node itself.
AstToken
Like AstNode, but wraps tokens rather than interior nodes.