Structs

  • GreenNode is an immutable tree, which is cheap to change, but doesn’t contain offsets and parent pointers. Internal node in the immutable tree. It has other nodes and tokens as children.
  • You can construct GreenNodes by hand, but a builder is helpful for top-down parsers: it maintains a stack of currently in-progress nodes A builder for a green tree.
  • A range in text, represented as a pair of TextSize.
  • A measure of text length. Also, equivalently, an index into text.

Enums

  • Second, implementing the Language trait teaches rowan to convert between these two SyntaxKind types, allowing for a nicer SyntaxNode API where “kinds” are values from our enum SyntaxKind, instead of plain u16 values.
  • WalkEvent describes tree walking process.

Traits

Functions

Type Definitions