remove meta.GotoToken
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user