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
- Block
- Boolean
Lit - Call
Expr - Choice
- Choice
Body - Choice
Bracket Content - Choice
Bullet - Choice
Guard - Choice
Inner Content - Choice
Point - Choice
Start Content - Conditional
Block - Const
Decl - Content
Line - Divert
Stmt - Divert
Target - DocComment
- Else
Branch - Entry
- Error
- Extern
Decl - Flags
Decl - Flags
Member - Flags
Member List - Float
Lit - Flow
Decl - FnDecl
- Glue
Node - IfArm
- Import
Decl - Infix
Expr - Integer
Lit - Interpolation
- Label
- Lambda
Expr - Lambda
Params - Match
Arm - Match
Pattern - Module
Decl - Param
- Param
List - Paren
Expr - Path
- Path
Expr - Path
Segment - Prefix
Expr - Return
Redirect - Return
Stmt - Source
File - Splice
- String
Lit - Struct
Decl - Struct
Field - Tag
- TagLine
- Text
- Tunnel
Call - UseDecl
- UseTree
- UseTree
List - VarDecl
Traits§
- AstNode
- A typed wrapper around a
SyntaxNode.