Skip to main content

Crate vize_relief

Crate vize_relief 

Source
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§

pub use errors::*;
pub use options::*;

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§

AllocBox
Re-export allocator types for convenience An owned pointer to a bump-allocated T value, that runs Drop implementations.
AllocVec
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.
ArrayExpression
Array expression
AssignmentExpression
Assignment expression
AttributeNode
Attribute node
BlockStatement
Block statement
CacheExpression
Cache expression
CallExpression
Call expression
CommentNode
Comment node
CompoundExpressionNode
Compound expression node (mixed content)
ConditionalExpression
Conditional expression (ternary)
DirectiveArgumentNode
Single directive argument
DirectiveArguments
Directive arguments
DirectiveNode
Directive node (v-if, v-for, v-bind, etc.)
ElementNode
Element node
ForNode
For node (v-for)
ForParseResult
Parsed result for v-for expression
FunctionExpression
Function expression
IfBranchNode
If branch node (v-if, v-else-if, v-else)
IfNode
If node (v-if)
IfStatement
If statement (SSR)
ImportItem
Import item for code generation
InterpolationNode
Interpolation node ({{ expr }})
JsExpression
Placeholder for JavaScript expression AST from OXC
ObjectExpression
Object expression
Position
Source position in the template
Property
Object property
ReturnStatement
Return statement
RootNode
Root AST node
SequenceExpression
Sequence expression
SimpleExpressionNode
Simple expression node
SourceLocation
Source location span [start, end)
TemplateLiteral
Template literal
TextCallNode
Text call node
TextNode
Text node
VNodeCall
VNode call expression

Enums§

ArrayElement
Array element type
BlockStatementBody
Block statement body item
CallArgument
Call argument type
Callee
Callee type
CompoundExpressionChild
Child of a compound expression
ConstantType
Constant type levels for static analysis
DynamicProps
Dynamic props type
ElementType
Element type discriminant
ExpressionNode
Expression node types
FunctionBody
Function body
FunctionParam
Single function parameter
FunctionParams
Function parameters
FunctionReturns
Function returns
IfStatementAlternate
If statement alternate
JsChildNode
All JavaScript child node types for codegen
Namespace
Namespace for elements
NodeType
Node type discriminant
PropNode
Prop node (attribute or directive)
PropsExpression
Props expression type
ReturnValue
Return value type
RuntimeHelper
Runtime helper symbols
SlotsExpression
Slots expression
TemplateChildNode
All template child node types
TemplateLiteralElement
Template literal element
TemplateTextChildNode
Template text child node
TextCallContent
Text call content
VNodeChildren
VNode children type
VNodeTag
VNode tag type

Traits§

CloneIn
Re-export allocator types for convenience Trait for cloning a value into an arena allocator.