feat(compiler): transform slot outlets

This commit is contained in:
Evan You
2019-09-27 20:29:20 -04:00
parent d900c13efb
commit ee66ce78b7
10 changed files with 480 additions and 28 deletions

View File

@@ -160,8 +160,8 @@ export type JSChildNode =
export interface CallExpression extends Node {
type: NodeTypes.JS_CALL_EXPRESSION
callee: string // can only be imported runtime helpers, so no source location
arguments: Array<string | JSChildNode | ChildNode[]>
callee: string | ExpressionNode
arguments: (string | JSChildNode | ChildNode[])[]
}
export interface ObjectExpression extends Node {
@@ -253,7 +253,7 @@ export function createCompoundExpression(
}
export function createCallExpression(
callee: string,
callee: string | ExpressionNode,
args: CallExpression['arguments'],
loc: SourceLocation
): CallExpression {