[refactoring] update ast structure of "HaltCompiler" node

This commit is contained in:
Vadym Slizov
2020-08-24 21:41:06 +03:00
parent c1b3e6f5b2
commit 0285900fe5
9 changed files with 1097 additions and 1078 deletions

View File

@@ -539,6 +539,10 @@ func (n *StmtGoto) Accept(v NodeVisitor) {
// StmtHaltCompiler node
type StmtHaltCompiler struct {
Node
HaltCompilerTkn *token.Token
OpenParenthesisTkn *token.Token
CloseParenthesisTkn *token.Token
SemiColonTkn *token.Token
}
func (n *StmtHaltCompiler) Accept(v NodeVisitor) {

View File

@@ -60,3 +60,10 @@ func (v *FilterTokens) StmtNamespace(n *ast.StmtNamespace) {
n.CloseCurlyBracket = nil
n.SemiColonTkn = nil
}
func (v *FilterTokens) StmtHaltCompiler(n *ast.StmtHaltCompiler) {
n.HaltCompilerTkn = nil
n.OpenParenthesisTkn = nil
n.CloseParenthesisTkn = nil
n.SemiColonTkn = nil
}