fix comments pointers

This commit is contained in:
z7zmey
2018-01-08 21:50:39 +02:00
parent 4ecb9edbd8
commit b7b859edaa
163 changed files with 426 additions and 430 deletions

View File

@@ -7,7 +7,7 @@ import (
type Name struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Parts []node.Node
}
@@ -32,11 +32,11 @@ func (n *Name) SetPosition(p *node.Position) node.Node {
return n
}
func (n *Name) Comments() *[]comment.Comment {
func (n *Name) Comments() []comment.Comment {
return n.comments
}
func (n *Name) SetComments(c *[]comment.Comment) node.Node {
func (n *Name) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -7,7 +7,7 @@ import (
type NamePart struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Value string
}
@@ -34,11 +34,11 @@ func (n *NamePart) SetPosition(p *node.Position) node.Node {
return n
}
func (n *NamePart) Comments() *[]comment.Comment {
func (n *NamePart) Comments() []comment.Comment {
return n.comments
}
func (n *NamePart) SetComments(c *[]comment.Comment) node.Node {
func (n *NamePart) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}