remove meta.InlineHTMLToken

This commit is contained in:
z7zmey
2018-10-29 14:18:43 +02:00
parent a8295f8f72
commit 67e222a88f
8 changed files with 7 additions and 11 deletions

View File

@@ -2348,10 +2348,7 @@ func (p *Printer) printStmtInlineHTML(n node.Node) {
nn := n.(*stmt.InlineHtml)
p.printMeta(nn, meta.NodeStart)
p.printMeta(n, meta.InlineHTMLToken)
// io.WriteString(p.w, "?>")
io.WriteString(p.w, nn.Value)
// io.WriteString(p.w, "<?php")
p.printMeta(nn, meta.NodeEnd)
}

View File

@@ -7411,7 +7411,7 @@ func TestPrinterPrintInlineHtml(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.InlineHTMLToken,
TokenName: meta.NodeStart,
},
},
Value: "test",