[refactoring] update ast structure of "Echo" node
This commit is contained in:
@@ -368,7 +368,10 @@ func (n *StmtDo) Accept(v NodeVisitor) {
|
||||
// StmtEcho node
|
||||
type StmtEcho struct {
|
||||
Node
|
||||
Exprs []Vertex
|
||||
EchoTkn *token.Token
|
||||
Exprs []Vertex
|
||||
SeparatorTkns []*token.Token
|
||||
SemiColonTkn *token.Token
|
||||
}
|
||||
|
||||
func (n *StmtEcho) Accept(v NodeVisitor) {
|
||||
|
||||
@@ -194,3 +194,9 @@ func (v *FilterTokens) StmtStatic(n *ast.StmtStatic) {
|
||||
func (v *FilterTokens) StmtStaticVar(n *ast.StmtStaticVar) {
|
||||
n.EqualTkn = nil
|
||||
}
|
||||
|
||||
func (v *FilterTokens) StmtEcho(n *ast.StmtEcho) {
|
||||
n.EchoTkn = nil
|
||||
n.SeparatorTkns = nil
|
||||
n.SemiColonTkn = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user