Modules§
Macros§
Structs§
- Conditional
- A wrapper around an
ElementNodewith a condition attached to it. This is used inv-ifandv-else-ifnodes. - Conditional
Node Sequence - This is a synthetic node type only available after AST optimizations. Its purpose is to make conditional code generation trivial.
- Element
Node - Element node is a classic HTML node with some added functionality:
- Interpolation
- A special Vue
{{ expression }}, which would be rendered as a stringified value of executing said expression. - Patch
Hints - A helper structure attached to
ElementNodes to handle Patch Flags and contain the list of dynamic props. - SfcCustom
Block - SfcDescriptor
- SfcScript
Block - SfcStyle
Block - SfcTemplate
Block - Starting
Tag - Starting tag represents
ElementNode’s tag name and attributes - VBind
Directive v-bindand its shorthand:- VCustom
Directive - A custom directive defined by a user.
- VFor
Directive v-for- VModel
Directive v-model- VOnDirective
v-onand its shorthand@- VSlot
Directive v-slot- VueDirectives
- A structure which stores all the Vue directives of an
ElementNode.
Enums§
- Attribute
OrBinding - Denotes the basic attributes or bindings of a DOM element
As of directives, this only covers
v-bindandv-on, because they bind something to DOM.v-modelis not covered here because its code generation is not as trivial. - Binding
Types - The type of a binding (or identifier) which is used to show where this binding came from,
e.g.
Datais for Options APIdata(),SetupRefif forrefs andcomputeds in Composition API. - Builtin
Type - Component
Binding - A binding of a component which was found in the template
- Custom
Directive Binding - A binding of a directive which was found in the template
- Element
Kind - Node
- A Node represents a part of the Abstract Syntax Tree (AST).
- Patch
Flags - From https://github.com/vuejs/core/blob/b8fc18c0b23be9a77b05dc41ed452a87a0becf82/packages/shared/src/patchFlags.ts
- SfcScript
Lang - StrOr
Expr - Describes a type which can be either a static &str or a js Expr. This is mostly usable for dynamic binding scenarios.
- Template
Generation Mode - Mode with which the template is attached to the exported SFC object.
- VueImports
Statics§
Functions§
- check_
attribute_ name - Checks whether the attributes name is the same as
expected_name - is_
from_ default_ slot - Checks whether a Node is from the component’s default slot or not
- is_
html_ tag