php-parser/node/scalar/encapsed_string_part.go
2017-12-29 17:20:24 +02:00

36 lines
585 B
Go

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