Expand description
See README.md
Modules§
- codegen
- compiler
- converter
- 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.
- error
- flags
- 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.
- parser
- scanner
- Vue template tokenization. The canonical parsing strategy should adhere to the spec below. https://html.spec.whatwg.org/multipage/parsing.html#tokenization
- transformer
- Transform IRNode. This module contains the canonical transformations from vue-next and the original ones for the parity of features not implemented in Convert.
- util
Macros§
Structs§
Enums§
- Namespace
- namespace for HTML/SVG/MathML tag