remove meta.DefaultToken

This commit is contained in:
z7zmey
2018-10-29 13:30:35 +02:00
parent bc4e070d57
commit fc20b19df3
8 changed files with 8 additions and 10 deletions

View File

@@ -2082,7 +2082,6 @@ func (p *Printer) printStmtDefault(n node.Node) {
nn := n.(*stmt.Default)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.DefaultToken)
io.WriteString(p.w, "default")
r := p.printMeta(nn, meta.CaseSeparatorToken)
if !r {

View File

@@ -6269,7 +6269,7 @@ func TestPrinterPrintStmtDefalut(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.DefaultToken,
TokenName: meta.NodeStart,
},
},
Stmts: []node.Node{
@@ -6303,7 +6303,7 @@ func TestPrinterPrintStmtDefalutEmpty(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.DefaultToken,
TokenName: meta.NodeStart,
},
},
Stmts: []node.Node{},