php-parser/node/name/relative.go

20 lines
269 B
Go
Raw Normal View History

2017-12-05 21:36:28 +00:00
package name
import (
"github.com/z7zmey/php-parser/node"
)
type Relative struct {
Name
}
func NewRelative(parts []node.Node) node.Node {
return Relative{
Name{
node.SimpleNode{Name: "RelativeName", Attributes: make(map[string]string)},
parts,
},
}
}