fix comments pointers
This commit is contained in:
@@ -7,6 +7,6 @@ import (
|
||||
|
||||
type Cast struct {
|
||||
position *node.Position
|
||||
comments *[]comment.Comment
|
||||
comments []comment.Comment
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ func (n *CastArray) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *CastArray) Comments() *[]comment.Comment {
|
||||
func (n *CastArray) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *CastArray) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastArray) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ func (n *CastBool) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *CastBool) Comments() *[]comment.Comment {
|
||||
func (n *CastBool) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *CastBool) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastBool) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ func (n *CastDouble) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *CastDouble) Comments() *[]comment.Comment {
|
||||
func (n *CastDouble) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *CastDouble) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastDouble) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ func (n *CastInt) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *CastInt) Comments() *[]comment.Comment {
|
||||
func (n *CastInt) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *CastInt) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastInt) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ func (n *CastObject) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *CastObject) Comments() *[]comment.Comment {
|
||||
func (n *CastObject) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *CastObject) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastObject) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ func (n *CastString) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *CastString) Comments() *[]comment.Comment {
|
||||
func (n *CastString) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *CastString) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastString) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ func (n *CastUnset) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *CastUnset) Comments() *[]comment.Comment {
|
||||
func (n *CastUnset) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *CastUnset) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastUnset) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user