wip: expression rewrite

This commit is contained in:
Evan You
2019-09-23 02:52:54 -04:00
parent 70656690e2
commit bb8524e199
10 changed files with 224 additions and 23 deletions

View File

@@ -16,6 +16,7 @@ export const enum NodeTypes {
ATTRIBUTE,
DIRECTIVE,
// containers
COMPOUND_EXPRESSION,
IF,
IF_BRANCH,
FOR,
@@ -109,6 +110,7 @@ export interface ExpressionNode extends Node {
type: NodeTypes.EXPRESSION
content: string
isStatic: boolean
children?: (ExpressionNode | string)[]
}
export interface IfNode extends Node {