remove meta.CatchToken
This commit is contained in:
@@ -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, "(")
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user