fix comments pointers
This commit is contained in:
@@ -37,8 +37,8 @@ func (n Assign) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Assign) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Assign) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n AssignRef) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n AssignRef) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n AssignRef) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n BitwiseAnd) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n BitwiseAnd) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n BitwiseAnd) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n BitwiseOr) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n BitwiseOr) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n BitwiseOr) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n BitwiseXor) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n BitwiseXor) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n BitwiseXor) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n Concat) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Concat) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Concat) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n Div) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Div) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Div) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n Minus) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Minus) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Minus) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n Mod) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Mod) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Mod) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n Mul) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Mul) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Mul) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n Plus) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Plus) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Plus) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n Pow) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Pow) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n Pow) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n ShiftLeft) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n ShiftLeft) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n ShiftLeft) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ func (n ShiftRight) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n ShiftRight) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = &c
|
||||
func (n ShiftRight) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user