30 lines
460 B
Go
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)
|
|
}
|