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

@@ -1,4 +1,4 @@
import { ElementNode, Namespace, JSChildNode, PlainElementNode } from './ast'
import { ElementNode, Namespace, TemplateChildNode } from './ast'
import { TextModes } from './parse'
import { CompilerError } from './errors'
import {
@@ -52,9 +52,9 @@ export interface ParserOptions {
}
export type HoistTransform = (
node: PlainElementNode,
children: TemplateChildNode[],
context: TransformContext
) => JSChildNode
) => void
export interface TransformOptions {
/**