node constructors return concrete type

This commit is contained in:
z7zmey
2018-01-08 21:18:09 +02:00
parent f2cf2061ee
commit 855665b565
156 changed files with 156 additions and 156 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -11,7 +11,7 @@ type NamePart struct {
Value string
}
func NewNamePart(Value string) node.Node {
func NewNamePart(Value string) *NamePart {
return &NamePart{
nil,
nil,

View File

@@ -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,