fix comments pointers

This commit is contained in:
z7zmey
2018-01-06 14:04:02 +02:00
parent 621a27b24b
commit 065e6ad203
160 changed files with 991 additions and 972 deletions

View File

@@ -36,8 +36,8 @@ func (n Name) Comments() *[]comment.Comment {
return n.comments
}
func (n Name) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n Name) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -38,8 +38,8 @@ func (n NamePart) Comments() *[]comment.Comment {
return n.comments
}
func (n NamePart) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n NamePart) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}