node constructors return concrete type
This commit is contained in:
@@ -8,7 +8,7 @@ type FullyQualified struct {
|
||||
Name
|
||||
}
|
||||
|
||||
func NewFullyQualified(Parts []node.Node) node.Node {
|
||||
func NewFullyQualified(Parts []node.Node) *FullyQualified {
|
||||
return &FullyQualified{
|
||||
Name{
|
||||
nil,
|
||||
|
||||
@@ -11,7 +11,7 @@ type Name struct {
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
func NewName(Parts []node.Node) node.Node {
|
||||
func NewName(Parts []node.Node) *Name {
|
||||
return &Name{
|
||||
nil,
|
||||
nil,
|
||||
|
||||
@@ -11,7 +11,7 @@ type NamePart struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
func NewNamePart(Value string) node.Node {
|
||||
func NewNamePart(Value string) *NamePart {
|
||||
return &NamePart{
|
||||
nil,
|
||||
nil,
|
||||
|
||||
@@ -8,7 +8,7 @@ type Relative struct {
|
||||
Name
|
||||
}
|
||||
|
||||
func NewRelative(Parts []node.Node) node.Node {
|
||||
func NewRelative(Parts []node.Node) *Relative {
|
||||
return &Relative{
|
||||
Name{
|
||||
nil,
|
||||
|
||||
Reference in New Issue
Block a user