remove meta.EchoToken

This commit is contained in:
z7zmey
2018-10-29 13:36:03 +02:00
parent 378830df76
commit 819a6d7f46
8 changed files with 12 additions and 14 deletions

View File

@@ -2119,7 +2119,6 @@ func (p *Printer) printStmtEcho(n node.Node) {
nn := n.(*stmt.Echo)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.EchoToken)
p.joinPrint(",", nn.Exprs)
p.printMeta(nn, meta.SemiColonToken)

View File

@@ -6448,12 +6448,12 @@ func TestPrinterPrintStmtEcho(t *testing.T) {
&meta.Data{
Type: meta.TokenType,
Value: "echo",
TokenName: meta.EchoToken,
TokenName: meta.NodeStart,
},
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.EchoToken,
TokenName: meta.NodeStart,
},
&meta.Data{
Type: meta.WhiteSpaceType,