'use strict'; const Node = require('../../Node'); const Literal = require('../../Literal'); const vdomUtil = require('../../../util/vdom'); class TextVDOM extends Node { constructor(def) { super('TextVDOM'); this.arguments = [def.argument]; this.isStatic = def.isStatic; this.escape = def.escape !== false; this.isHtmlOnly = true; this.isChild = false; this.createTextId = undefined; this.strFuncId = undefined; } generateCode(codegen) { var context = codegen.context; vdomUtil.registerOptimizer(context); var args = this.arguments; for (var i=0, len=args.length; i