remove meta.PrintToken

This commit is contained in:
z7zmey
2018-10-26 12:31:30 +03:00
parent 7995d41139
commit 41a9409cbe
8 changed files with 7 additions and 9 deletions

View File

@@ -1493,7 +1493,6 @@ func (p *Printer) printExprPrint(n node.Node) {
nn := n.(*expr.Print)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.PrintToken)
io.WriteString(p.w, "print")
p.Print(nn.Expr)

View File

@@ -4027,7 +4027,7 @@ func TestPrinterPrintPrint(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.PrintToken,
TokenName: meta.NodeStart,
},
},
Expr: &expr.Variable{