remove meta.CaseToken

This commit is contained in:
z7zmey
2018-10-29 13:08:09 +02:00
parent 72136ee853
commit 2c1c25de58
8 changed files with 8 additions and 10 deletions

View File

@@ -1879,7 +1879,6 @@ func (p *Printer) printStmtCase(n node.Node) {
nn := n.(*stmt.Case)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.CaseToken)
io.WriteString(p.w, "case")
p.Print(nn.Cond)
r := p.printMeta(nn, meta.CaseSeparatorToken)

View File

@@ -5507,7 +5507,7 @@ func TestPrinterPrintStmtCase(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.CaseToken,
TokenName: meta.NodeStart,
},
},
Cond: &expr.Variable{
@@ -5551,7 +5551,7 @@ func TestPrinterPrintStmtCaseEmpty(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.CaseToken,
TokenName: meta.NodeStart,
},
},
Cond: &expr.Variable{