php-parser/node/scalar/lnumber.go
2017-12-29 17:53:13 +02:00

36 lines
506 B
Go

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