[refactoring] update ast structure of "StmtList" nodes

This commit is contained in:
Vadym Slizov
2020-09-02 22:58:19 +03:00
parent c63213630a
commit 954208510e
9 changed files with 1075 additions and 959 deletions

View File

@@ -691,7 +691,9 @@ func (n *StmtStaticVar) Accept(v NodeVisitor) {
// StmtStmtList node
type StmtStmtList struct {
Node
Stmts []Vertex
OpenCurlyBracket *token.Token
Stmts []Vertex
CloseCurlyBracket *token.Token
}
func (n *StmtStmtList) Accept(v NodeVisitor) {

View File

@@ -82,3 +82,8 @@ func (v *FilterTokens) StmtConstant(n *ast.StmtConstant) {
n.EqualTkn = nil
n.CommaTkn = nil
}
func (v *FilterTokens) StmtStmtList(n *ast.StmtStmtList) {
n.OpenCurlyBracket = nil
n.CloseCurlyBracket = nil
}