remove meta.GlobalToken

This commit is contained in:
z7zmey
2018-10-29 13:44:46 +02:00
parent 2866018474
commit 9c6a756545
8 changed files with 7 additions and 9 deletions

View File

@@ -2263,7 +2263,6 @@ func (p *Printer) printStmtGlobal(n node.Node) {
nn := n.(*stmt.Global)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.GlobalToken)
io.WriteString(p.w, "global")
p.joinPrint(",", nn.Vars)
p.printMeta(nn, meta.SemiColonToken)

View File

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