Expand description
§vize_atelier_core
Atelier Core - The core workshop for Vize. Vue template transforms and code generation.
§Name Origin
Atelier (/ˌætəlˈjeɪ/) is an artist’s workshop or studio where creative work
is produced. The “core” atelier is the foundational workshop where the essential
Vue template processing happens - transforming and code generation.
vize_atelier_core provides the foundational infrastructure
that all other Vize compilers build upon.
Re-exports§
pub use codegen::CodegenContext;pub use codegen::CodegenResult;pub use codegen::CodegenResultWithSections;pub use codegen::CodegenSections;pub use codegen::generate;pub use codegen::generate_with_sections;pub use lane::DirectiveTransform;pub use lane::DirectiveTransformResult;pub use lane::ExitFn;pub use lane::NodeTransform;pub use lane::ParentNode;pub use lane::StructuralDirectiveTransform;pub use lane::TransformContext;pub use lane::transform;pub use lane::transform_with_template_syntax_quirks;pub use lane::transform_with_vue_parser_quirks;Deprecated pub use runtime_helpers::RuntimeHelpers;pub use runtime_helpers::get_vnode_block_helper;pub use runtime_helpers::get_vnode_helper;pub use steps::ChildrenType;pub use steps::EventModifiers;pub use steps::MemoInfo;pub use steps::PropItem;pub use steps::SlotInfo;pub use steps::SlotOutletInfo;pub use steps::StaticType;pub use steps::TextCallExpression;pub use steps::TextPart;pub use steps::TransformPropsExpression;pub use steps::TransformVNodeCall;pub use steps::VModelModifiers;pub use steps::build_element_codegen;pub use steps::build_props;pub use steps::build_text_call;pub use steps::collect_slots;pub use steps::condense_whitespace;pub use steps::count_dynamic_children;pub use steps::create_on_name;pub use steps::generate_memo_check;pub use steps::generate_v_memo_wrapper;pub use steps::generate_v_once_wrapper;pub use steps::get_bind_name;pub use steps::get_bind_value;pub use steps::get_event_name;pub use steps::get_for_expression;pub use steps::get_handler_expression;pub use steps::get_if_condition;pub use steps::get_memo_deps;pub use steps::get_memo_exp;pub use steps::get_model_event_prop;pub use steps::get_slot_name;pub use steps::get_slot_props_string;pub use steps::get_static_type;pub use steps::get_vmodel_helper;pub use steps::has_attr_modifier;pub use steps::has_camel_modifier;pub use steps::has_dynamic_slots;pub use steps::has_prop_modifier;pub use steps::has_v_else;pub use steps::has_v_else_if;pub use steps::has_v_for;pub use steps::has_v_if;pub use steps::has_v_memo;pub use steps::has_v_once;pub use steps::has_v_slot;pub use steps::hoist_static;pub use steps::hoist_static;pub use steps::is_condensible_whitespace;pub use steps::is_dynamic_binding;pub use steps::is_dynamic_event;pub use steps::is_dynamic_slot;pub use steps::is_simple_identifier;pub use steps::is_static_node;pub use steps::is_whitespace_only;pub use steps::needs_guard;pub use steps::parse_event_modifiers;pub use steps::parse_for_expression;pub use steps::parse_for_expression_with_options;pub use steps::parse_model_modifiers;pub use steps::prefix_identifiers_in_expression;pub use steps::process_expression;pub use steps::process_inline_handler;pub use steps::process_v_bind;pub use steps::process_v_for;pub use steps::process_v_if;pub use steps::process_v_memo;pub use steps::process_v_on;pub use steps::remove_for_directive;pub use steps::remove_if_directive;pub use steps::remove_v_memo;pub use steps::remove_v_once;pub use steps::resolve_element_type;pub use steps::should_use_block;pub use steps::strip_typescript_from_expression;pub use steps::supports_v_model;pub use steps::transform_slot_outlet;pub use steps::transform_text_children;pub use steps::transform_v_model;pub use steps::transform_v_once;pub use vize_armature as parser;
Modules§
- codegen
- VDOM code generation.
- errors
- Compiler error types and codes.
- lane
- Template transform lane for Vue template AST.
- options
- Compiler options.
- runtime_
helpers - Runtime helper registration and lookup.
- steps
- Transform steps for Vue template AST.
- test_
macros - Test helper macros for Vue compiler.
- tokenizer
- HTML tokenizer for Vue templates.
Macros§
- assert_
codegen - Assert codegen output against a full snapshot.
- assert_
parse - Parse and match against expected structure
- assert_
prop - Assert prop matches expected type
- assert_
transform - Assert transform results
- compile
- Compile template and return result (parse + transform + codegen)
- get_
directive - Quick directive extraction from element
- get_
element - Quick element extraction
- parse_
test - Parse a template and run assertions
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
- Binding
Metadata - Binding metadata from script setup
- Block
Statement - Block statement
- Cache
Expression - Cache expression
- Call
Expression - Call expression
- Codegen
Options - Codegen options
- Comment
Node - Comment node
- Compiler
Error - Compiler error
- Compiler
Options - Combined compiler options
- 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
- Parser
- Parser context for building AST
- Parser
Options - Parser options
- 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
- Transform
Options - Transform options
- VNode
Call - VNode call expression
Enums§
- Array
Element - Array element type
- Binding
Type - Binding type from script setup.
- Block
Statement Body - Block statement body item
- Call
Argument - Call argument type
- Callee
- Callee type
- Codegen
Mode - Codegen output mode
- 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
- Error
Code - Error codes for compiler errors
- 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
- Parse
Mode - Parse mode for the tokenizer
- 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
Syntax Mode - Template syntax compatibility mode.
- Template
Text Child Node - Template text child node
- Text
Call Content - Text call content
- Text
Mode - Text mode for different contexts
- VNode
Children - VNode children type
- VNode
Tag - VNode tag type
- Whitespace
Strategy - Whitespace handling strategy
Traits§
- CloneIn
- Re-export allocator types for convenience Trait for cloning a value into an arena allocator.
Functions§
- camelize
- Convert kebab-case to camelCase Example: “foo-bar” -> “fooBar”
- parse
- Parse a Vue template
- parse_
with_ options - Parse a Vue template with options
- parse_
with_ options_ and_ invalid_ html_ self_ closing Deprecated - Parse a Vue template with options and invalid HTML self-closing compatibility.
- parse_
with_ options_ and_ template_ syntax - Parse a Vue template with options and template syntax compatibility.
Type Aliases§
- Compiler
Result - Result type for compiler operations