Slide 36
Slide 36 text
Vapor IR Node Types
• 20 Vapor IR node types
• Block node has operations
• Block node is able to register
18 Vapor IR types as operations
• Operations of render function
• e.g.
DOM manupluration,
Set Props / Attrs, Event bindings,
and …
• If & For node has block node
export enum IRNodeTypes {
ROOT,
BLOCK,
SET_PROP,
SET_DYNAMIC_PROPS,
SET_TEXT,
SET_EVENT,
SET_DYNAMIC_EVENTS,
SET_HTML,
SET_TEMPLATE_REF,
SET_MODEL_VALUE,
SET_INHERIT_ATTRS,
INSERT_NODE,
PREPEND_NODE,
CREATE_TEXT_NODE,
CREATE_COMPONENT_NODE,
SLOT_OUTLET_NODE,
WITH_DIRECTIVE,
DECLARE_OLD_REF,
IF,
FOR,
}