Expand description
Typed AST wrappers for the native .brink CST.
Every struct is a zero-cost newtype around SyntaxNode that implements
AstNode, mirroring brink-syntax’s pattern exactly (studied from
crates/internal/brink-syntax/src/ast/mod.rs) but over this crate’s own
SyntaxKind. Use crate::Parse::tree() to get a SourceFile from a
parse result.
Structs§
- Alternation
Block - Alternation
Marker - Annotation
Arg - Annotation
Args - Annotation
Line - ArgList
- Array
Literal - AsBinding
- Assign
Stmt - Bang
Dispatch - Block
- Boolean
Lit - Break
Stmt - Call
Expr - Choice
- Choice
Body - Choice
Bracket Content - Choice
Bullet - Choice
Guard - Choice
Inner Content - Choice
Point - Choice
Start Content - Compact
Cue - Conditional
Block - Const
Decl - Construct
Entry - Construct
Literal - Content
Line - Continue
Stmt - Cue
- CueName
- Dispatch
Name - Divert
Stmt - Divert
Target - DocComment
- Else
Branch - Else
Clause - Entry
- Error
- Escape
- Expr
Stmt - Extern
Decl - Flags
Decl - Flags
Member - Flags
Member List - Float
Lit - Flow
Decl - FnDecl
- ForStmt
- Glue
Node - IfArm
- IfStmt
- Import
Decl - Infix
Expr - Integer
Lit - Interpolation
- Label
- Lambda
Expr - Lambda
Params - LetStmt
- Logic
Line - Match
Arm - Match
Pattern - Module
Decl - Param
- Param
List - Paren
Expr - Parenthetical
- Path
- Path
Expr - Path
Segment - Prefix
Expr - Prose
Line - Return
Redirect - Return
Stmt - Scene
Body - Scene
Heading - Scene
Slug - Scene
Stitch - Scene
Title - Source
File - Span
- Span
Attr - Span
Attr Value - Span
Name - Splice
- Stmt
Block - String
Lit - Struct
Decl - Struct
Field - Tag
- TagLine
- Text
- Tunnel
Call - Type
Annotation - Type
Expr - TypeFn
- Type
Generic - Type
Name - Until
Stmt - UseDecl
- UseTree
- UseTree
List - VarDecl
- While
Stmt
Enums§
- Body
- A
flow/fndeclaration’s body — either the prose-groundBlock(BLOCK) or the code-groundStmtBlock(STMT_BLOCK), whichever the body-dialect selector on the opening brace chose (charter §4, RULED 2026-07-23: plain{ }= per-keyword default,~{ }= code-ground,>{ }= prose-ground — seeparser::decl::decl_body). One enum rather than two separatebody()/code_body()accessors, since a given declaration’s body is always exactly one or the other, never both. - Type
Expr Kind - What a
TypeExprwraps — exactly one of these per node.
Traits§
- AstNode
- A typed wrapper around a
SyntaxNode.