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

36 lines
528 B
Go

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