php-parser/node/expr/isset.go
2018-01-09 15:51:32 +02:00

35 lines
484 B
Go

package expr
import (
"github.com/z7zmey/php-parser/node"
)
type Isset struct {
Variables []node.Node
}
func NewIsset(Variables []node.Node) *Isset {
return &Isset{
Variables,
}
}
func (n *Isset) Attributes() map[string]interface{} {
return nil
}
func (n *Isset) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}
if n.Variables != nil {
vv := v.GetChildrenVisitor("Variables")
for _, nn := range n.Variables {
nn.Walk(vv)
}
}
v.LeaveNode(n)
}