Crate vue_compiler_core[−][src]
Expand description
See README.md
Modules
IR Converter module takes AST and produces intermediate representation. All core template syntax conversion happens here. IR is later used for optimizing transformation and code generation. As we decouple codegen node from AST, Vue’s transformation passes are broken down to two parts. Convert module roughly corresponds to following transform in vue-next.
This module defines a collection of flags used for Vue’s runtime. Currently it includes preamble helper and vnode patch flags. Ideally we can make flags extensible by extracting them to trait. But currently it works well enough and adding traits makes compiler bloated with too many generic parameters.
Vue template tokenization. The canonical parsing strategy should adhere to the spec below. https://html.spec.whatwg.org/multipage/parsing.html#tokenization
Transform IRNode. This module contains the canonical transformations from vue-next and the original ones for the parity of features not implemented in Convert.
Macros
Structs
Enums
namespace for HTML/SVG/MathML tag