2017-12-05 21:36:28 +00:00
|
|
|
package name
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/z7zmey/php-parser/node"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Relative struct {
|
2017-12-27 17:55:58 +00:00
|
|
|
NameNode
|
2017-12-05 21:36:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewRelative(parts []node.Node) node.Node {
|
|
|
|
return Relative{
|
2017-12-27 17:55:58 +00:00
|
|
|
NameNode{
|
|
|
|
"RelativeName",
|
2017-12-05 21:36:28 +00:00
|
|
|
parts,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-27 17:55:58 +00:00
|
|
|
func (n Relative) Name() string {
|
|
|
|
return "Relative"
|
|
|
|
}
|