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

@@ -1,10 +1,10 @@
import {
NodeTypes,
CallExpression,
ElementNode,
locStub,
Namespaces,
ElementTypes
ElementTypes,
ElementCodegenNode
} from '../src'
import { CREATE_VNODE } from '../src/runtimeHelpers'
import { isString } from '@vue/shared'
@@ -39,7 +39,7 @@ export function createObjectMatcher(obj: any) {
}
export function createElementWithCodegen(
args: CallExpression['arguments']
args: ElementCodegenNode['arguments']
): ElementNode {
return {
type: NodeTypes.ELEMENT,