fix comments pointers
This commit is contained in:
@@ -36,8 +36,8 @@ func (n CastArray) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastArray) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n CastArray) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ func (n CastBool) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastBool) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n CastBool) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ func (n CastDouble) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastDouble) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n CastDouble) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ func (n CastInt) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastInt) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n CastInt) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ func (n CastObject) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastObject) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n CastObject) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ func (n CastString) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastString) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n CastString) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ func (n CastUnset) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastUnset) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n CastUnset) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user