remove meta.ListToken

This commit is contained in:
z7zmey
2018-10-26 12:06:16 +03:00
parent ff0732a360
commit 67dfb0773c
8 changed files with 17 additions and 19 deletions

View File

@@ -1400,7 +1400,6 @@ func (p *Printer) printExprList(n node.Node) {
nn := n.(*expr.List)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.ListToken)
io.WriteString(p.w, "list")
p.printMeta(nn, meta.OpenParenthesisToken)
io.WriteString(p.w, "(")

View File

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