[refactoring] update ast structure of "Throw" node
This commit is contained in:
@@ -709,7 +709,9 @@ func (n *StmtSwitch) Accept(v NodeVisitor) {
|
||||
// StmtThrow node
|
||||
type StmtThrow struct {
|
||||
Node
|
||||
Expr Vertex
|
||||
ThrowTkn *token.Token
|
||||
Expr Vertex
|
||||
SemiColonTkn *token.Token
|
||||
}
|
||||
|
||||
func (n *StmtThrow) Accept(v NodeVisitor) {
|
||||
|
||||
@@ -260,3 +260,8 @@ func (v *FilterTokens) StmtFinally(n *ast.StmtFinally) {
|
||||
n.OpenCurlyBracketTkn = nil
|
||||
n.CloseCurlyBracketTkn = nil
|
||||
}
|
||||
|
||||
func (v *FilterTokens) StmtThrow(n *ast.StmtThrow) {
|
||||
n.ThrowTkn = nil
|
||||
n.SemiColonTkn = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user