php-parser/node/expr/error_suppress.go
2017-12-28 13:36:27 +02:00

35 lines
493 B
Go

package expr
import (
"github.com/z7zmey/php-parser/node"
)
func (n ErrorSuppress) Name() string {
return "ErrorSuppress"
}
type ErrorSuppress struct {
name string
expr node.Node
}
func NewErrorSuppress(expression node.Node) node.Node {
return ErrorSuppress{
"ErrorSuppress",
expression,
}
}
func (n ErrorSuppress) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
}
v.LeaveNode(n)
}