remove meta.CatchToken

This commit is contained in:
z7zmey
2018-10-29 13:10:41 +02:00
parent 2c1c25de58
commit db3058a72f
8 changed files with 9 additions and 11 deletions

View File

@@ -1897,7 +1897,6 @@ func (p *Printer) printStmtCatch(n node.Node) {
nn := n.(*stmt.Catch)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.CatchToken)
io.WriteString(p.w, "catch")
p.printMeta(nn, meta.OpenParenthesisToken)
io.WriteString(p.w, "(")

View File

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