wip(compiler): improve node stringification to support adjacent nodes

This commit is contained in:
Evan You
2020-05-15 12:58:44 -04:00
parent c2f3ee4dc0
commit cb9444807e
5 changed files with 127 additions and 41 deletions

View File

@@ -194,6 +194,11 @@ export interface SimpleExpressionNode extends Node {
content: string
isStatic: boolean
isConstant: boolean
/**
* Indicates this is an identifier for a hoist vnode call and points to the
* hoisted node.
*/
hoisted?: JSChildNode
/**
* an expression parsed as the params of a function will track
* the identifiers declared inside the function body.