replace meta.ConstToken
This commit is contained in:
@@ -2013,7 +2013,6 @@ func (p *Printer) printStmtConstList(n node.Node) {
|
||||
nn := n.(*stmt.ConstList)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.ConstToken)
|
||||
io.WriteString(p.w, "const")
|
||||
|
||||
p.joinPrint(",", nn.Consts)
|
||||
|
||||
@@ -6057,7 +6057,7 @@ func TestPrinterPrintStmtConstList(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.ConstToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
|
||||
Reference in New Issue
Block a user