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

30 lines
460 B
Go

package scalar
import (
"github.com/z7zmey/php-parser/node"
)
type EncapsedStringPart struct {
Value string
}
func NewEncapsedStringPart(Value string) *EncapsedStringPart {
return &EncapsedStringPart{
Value,
}
}
func (n *EncapsedStringPart) Attributes() map[string]interface{} {
return map[string]interface{}{
"Value": n.Value,
}
}
func (n *EncapsedStringPart) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}
v.LeaveNode(n)
}