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

33 lines
463 B
Go

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