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

35 lines
435 B
Go

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