remove meta.GotoToken

This commit is contained in:
z7zmey
2018-10-29 13:45:50 +02:00
parent 9c6a756545
commit 4ec92f57ee
8 changed files with 7 additions and 9 deletions

View File

@@ -2274,7 +2274,6 @@ func (p *Printer) printStmtGoto(n node.Node) {
nn := n.(*stmt.Goto)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.GotoToken)
io.WriteString(p.w, "goto")
p.Print(nn.Label)
p.printMeta(nn, meta.SemiColonToken)

View File

@@ -7083,7 +7083,7 @@ func TestPrinterPrintStmtGoto(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.GotoToken,
TokenName: meta.NodeStart,
},
&meta.Data{
Type: meta.WhiteSpaceType,