Skip to main content

Module syntax

Module syntax 

Source
Expand description

The Julia syntax-kind set and the rowan Language binding.

SyntaxKind holds both token kinds and node kinds in a single #[repr(u16)] enum (rust-analyzer style). The variants are contiguous and ERROR is the last one, so JuliaLanguage::kind_from_raw recovers a kind from its raw u16 with a bounds-checked transmute instead of a large match.

Enums§

JuliaLanguage
SyntaxKind

Type Aliases§

NodePtr
A node’s identity without the tree: its kind plus its text range, resolvable back to a SyntaxNode against the root it came from. The key a per-file analysis uses to name a node it does not hold (rowan’s cursors are Rc based, so keeping one alive keeps the whole tree alive).
SyntaxElement
SyntaxNode
SyntaxToken