Crate fervid_core
source ·Modules§
Macros§
Structs§
- A wrapper around an
ElementNode
with a condition attached to it. This is used inv-if
andv-else-if
nodes. - This is a synthetic node type only available after AST optimizations. Its purpose is to make conditional code generation trivial.
- Element node is a classic HTML node with some added functionality:
- A special Vue
{{ expression }}
, which would be rendered as a stringified value of executing said expression. - A helper structure attached to
ElementNode
s to handle Patch Flags and contain the list of dynamic props. - Starting tag represents
ElementNode
’s tag name and attributes v-bind
and its shorthand:
- A custom directive defined by a user.
v-for
v-model
v-on
and its shorthand@
v-slot
- A structure which stores all the Vue directives of an
ElementNode
.
Enums§
- Denotes the basic attributes or bindings of a DOM element As of directives, this only covers
v-bind
andv-on
, because they bind something to DOM.v-model
is not covered here because its code generation is not as trivial. - The type of a binding (or identifier) which is used to show where this binding came from, e.g.
Data
is for Options APIdata()
,SetupRef
if forref
s andcomputed
s in Composition API. - A binding of a component which was found in the template
- A binding of a directive which was found in the template
- A Node represents a part of the Abstract Syntax Tree (AST).
- From https://github.com/vuejs/core/blob/b8fc18c0b23be9a77b05dc41ed452a87a0becf82/packages/shared/src/patchFlags.ts
- Describes a type which can be either a static &str or a js Expr. This is mostly usable for dynamic binding scenarios.
- Mode with which the template is attached to the exported SFC object.
Statics§
Functions§
- Checks whether the attributes name is the same as
expected_name
- Checks whether a Node is from the component’s default slot or not