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

35 lines
447 B
Go

package cast
import (
"github.com/z7zmey/php-parser/node"
)
type CastArray struct {
Cast
}
func NewCastArray(Expr node.Node) *CastArray {
return &CastArray{
Cast{
Expr,
},
}
}
func (n *CastArray) Attributes() map[string]interface{} {
return nil
}
func (n *CastArray) 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)
}