php-parser/node/stmt/inline_html.go
2017-12-28 01:23:32 +02:00

31 lines
441 B
Go

package stmt
import (
"github.com/z7zmey/php-parser/node"
"github.com/z7zmey/php-parser/token"
)
func (n InlineHtml) Name() string {
return "InlineHtml"
}
type InlineHtml struct {
name string
token token.Token
}
func NewInlineHtml(token token.Token) node.Node {
return InlineHtml{
"InlineHtml",
token,
}
}
func (n InlineHtml) Walk(v node.Visitor) {
if v.Visit(n) == false {
return
}
v.Scalar("token", n.token.Value)
}