refactor(compiler): refine codegen node types

This commit is contained in:
Evan You
2019-10-05 22:47:20 -04:00
parent bfecf2cdce
commit 82bd9eb1db
10 changed files with 636 additions and 288 deletions

View File

@@ -83,8 +83,9 @@ export function parse(content: string, options: ParserOptions = {}): RootNode {
return {
type: NodeTypes.ROOT,
children: parseChildren(context, TextModes.DATA, []),
imports: [],
statements: [],
helpers: [],
components: [],
directives: [],
hoists: [],
codegenNode: undefined,
loc: getSelection(context, start)