fix comments pointers
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user