Expand description
§vize_relief
Relief - The sculptured AST surface for Vize. Vue template Abstract Syntax Tree definitions, errors, and compiler options.
§Name Origin
Relief (/rɪˈliːf/) is a sculptural technique where figures project from a flat
background, creating depth and dimension. Like how relief carving reveals forms
from a surface, vize_relief defines the structural forms (AST nodes) that
represent Vue template syntax.
§Features
- Complete Vue template AST node definitions
- Compiler error types and codes
- Parser, transform, and codegen options
- Arena-allocated nodes for zero-copy JavaScript interop
- Serialization support with serde
Re-exports§
Modules§
- codegen
- Code generation AST node types.
- control_
flow - Control flow AST node types.
- core
- Core AST types and enumerations.
- elements
- Element-related AST node types.
- errors
- Compiler error types and codes.
- expressions
- Expression AST node types.
- nodes
- Root and template child node types.
- options
- Compiler options.
Structs§
- Alloc
Box - Re-export allocator types for convenience
An owned pointer to a bump-allocated
Tvalue, that runsDropimplementations. - Alloc
Vec - Re-export allocator types for convenience
A contiguous growable array type, written
Vec<'bump, T>but pronounced ‘vector’. - Allocator
- Re-export allocator types for convenience Arena allocator for Vize.
- Array
Expression - Array expression
- Assignment
Expression - Assignment expression
- Attribute
Node - Attribute node
- Block
Statement - Block statement
- Cache
Expression - Cache expression
- Call
Expression - Call expression
- Comment
Node - Comment node
- Compound
Expression Node - Compound expression node (mixed content)
- Conditional
Expression - Conditional expression (ternary)
- Directive
Argument Node - Single directive argument
- Directive
Arguments - Directive arguments
- Directive
Node - Directive node (v-if, v-for, v-bind, etc.)
- Element
Node - Element node
- ForNode
- For node (v-for)
- ForParse
Result - Parsed result for v-for expression
- Function
Expression - Function expression
- IfBranch
Node - If branch node (v-if, v-else-if, v-else)
- IfNode
- If node (v-if)
- IfStatement
- If statement (SSR)
- Import
Item - Import item for code generation
- Interpolation
Node - Interpolation node ({{ expr }})
- JsExpression
- Placeholder for JavaScript expression AST from OXC
- Object
Expression - Object expression
- Position
- Source position in the template
- Property
- Object property
- Return
Statement - Return statement
- Root
Node - Root AST node
- Sequence
Expression - Sequence expression
- Simple
Expression Node - Simple expression node
- Source
Location - Source location span [start, end)
- Template
Literal - Template literal
- Text
Call Node - Text call node
- Text
Node - Text node
- VNode
Call - VNode call expression
Enums§
- Array
Element - Array element type
- Block
Statement Body - Block statement body item
- Call
Argument - Call argument type
- Callee
- Callee type
- Compound
Expression Child - Child of a compound expression
- Constant
Type - Constant type levels for static analysis
- Dynamic
Props - Dynamic props type
- Element
Type - Element type discriminant
- Expression
Node - Expression node types
- Function
Body - Function body
- Function
Param - Single function parameter
- Function
Params - Function parameters
- Function
Returns - Function returns
- IfStatement
Alternate - If statement alternate
- JsChild
Node - All JavaScript child node types for codegen
- Namespace
- Namespace for elements
- Node
Type - Node type discriminant
- Prop
Node - Prop node (attribute or directive)
- Props
Expression - Props expression type
- Return
Value - Return value type
- Runtime
Helper - Runtime helper symbols
- Slots
Expression - Slots expression
- Template
Child Node - All template child node types
- Template
Literal Element - Template literal element
- Template
Text Child Node - Template text child node
- Text
Call Content - Text call content
- VNode
Children - VNode children type
- VNode
Tag - VNode tag type
Traits§
- CloneIn
- Re-export allocator types for convenience Trait for cloning a value into an arena allocator.