constructors return pointer
This commit is contained in:
@@ -9,7 +9,7 @@ type FullyQualified struct {
|
||||
}
|
||||
|
||||
func NewFullyQualified(parts []node.Node) node.Node {
|
||||
return FullyQualified{
|
||||
return &FullyQualified{
|
||||
Name{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
@@ -11,7 +11,7 @@ type Name struct {
|
||||
}
|
||||
|
||||
func NewName(parts []node.Node) node.Node {
|
||||
return Name{
|
||||
return &Name{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
parts,
|
||||
|
||||
@@ -10,7 +10,7 @@ type NamePart struct {
|
||||
}
|
||||
|
||||
func NewNamePart(value string) node.Node {
|
||||
return NamePart{
|
||||
return &NamePart{
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ type Relative struct {
|
||||
}
|
||||
|
||||
func NewRelative(parts []node.Node) node.Node {
|
||||
return Relative{
|
||||
return &Relative{
|
||||
Name{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
Reference in New Issue
Block a user