constructors return pointer

This commit is contained in:
z7zmey
2018-01-04 20:42:44 +02:00
parent 383a245370
commit dc8808a7d6
154 changed files with 154 additions and 154 deletions

View File

@@ -9,7 +9,7 @@ type FullyQualified struct {
}
func NewFullyQualified(parts []node.Node) node.Node {
return FullyQualified{
return &FullyQualified{
Name{
map[string]interface{}{},
nil,

View File

@@ -11,7 +11,7 @@ type Name struct {
}
func NewName(parts []node.Node) node.Node {
return Name{
return &Name{
map[string]interface{}{},
nil,
parts,

View File

@@ -10,7 +10,7 @@ type NamePart struct {
}
func NewNamePart(value string) node.Node {
return NamePart{
return &NamePart{
map[string]interface{}{
"value": value,
},

View File

@@ -9,7 +9,7 @@ type Relative struct {
}
func NewRelative(parts []node.Node) node.Node {
return Relative{
return &Relative{
Name{
map[string]interface{}{},
nil,