fix comments pointers
This commit is contained in:
@@ -38,8 +38,8 @@ func (n Dnumber) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Dnumber) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Dnumber) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ func (n Encapsed) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Encapsed) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Encapsed) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ func (n EncapsedStringPart) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n EncapsedStringPart) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ func (n Lnumber) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Lnumber) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Lnumber) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ func (n MagicConstant) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n MagicConstant) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n MagicConstant) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ func (n String) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n String) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n String) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user