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