remove meta.ThrowToken

This commit is contained in:
z7zmey
2018-10-29 15:01:32 +02:00
parent 14cfed2e03
commit 5382ec090c
8 changed files with 7 additions and 9 deletions

View File

@@ -2517,7 +2517,6 @@ func (p *Printer) printStmtThrow(n node.Node) {
nn := n.(*stmt.Throw)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.ThrowToken)
io.WriteString(p.w, "throw")
p.Print(nn.Expr)
p.printMeta(nn, meta.SemiColonToken)

View File

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