fix comments pointers
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
type BinaryOp struct {
|
||||
position *node.Position
|
||||
comments *[]comment.Comment
|
||||
comments []comment.Comment
|
||||
Left node.Node
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *BitwiseAnd) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *BitwiseAnd) Comments() *[]comment.Comment {
|
||||
func (n *BitwiseAnd) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *BitwiseAnd) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *BitwiseAnd) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *BitwiseOr) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *BitwiseOr) Comments() *[]comment.Comment {
|
||||
func (n *BitwiseOr) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *BitwiseOr) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *BitwiseOr) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *BitwiseXor) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *BitwiseXor) Comments() *[]comment.Comment {
|
||||
func (n *BitwiseXor) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *BitwiseXor) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *BitwiseXor) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *BooleanAnd) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *BooleanAnd) Comments() *[]comment.Comment {
|
||||
func (n *BooleanAnd) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *BooleanAnd) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *BooleanAnd) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *BooleanOr) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *BooleanOr) Comments() *[]comment.Comment {
|
||||
func (n *BooleanOr) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *BooleanOr) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *BooleanOr) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Coalesce) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Coalesce) Comments() *[]comment.Comment {
|
||||
func (n *Coalesce) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Coalesce) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Coalesce) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Concat) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Concat) Comments() *[]comment.Comment {
|
||||
func (n *Concat) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Concat) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Concat) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Div) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Div) Comments() *[]comment.Comment {
|
||||
func (n *Div) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Div) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Div) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Equal) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Equal) Comments() *[]comment.Comment {
|
||||
func (n *Equal) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Equal) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Equal) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Greater) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Greater) Comments() *[]comment.Comment {
|
||||
func (n *Greater) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Greater) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Greater) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *GreaterOrEqual) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *GreaterOrEqual) Comments() *[]comment.Comment {
|
||||
func (n *GreaterOrEqual) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *GreaterOrEqual) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *GreaterOrEqual) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Identical) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Identical) Comments() *[]comment.Comment {
|
||||
func (n *Identical) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Identical) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Identical) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *LogicalAnd) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *LogicalAnd) Comments() *[]comment.Comment {
|
||||
func (n *LogicalAnd) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *LogicalAnd) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *LogicalAnd) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *LogicalOr) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *LogicalOr) Comments() *[]comment.Comment {
|
||||
func (n *LogicalOr) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *LogicalOr) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *LogicalOr) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *LogicalXor) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *LogicalXor) Comments() *[]comment.Comment {
|
||||
func (n *LogicalXor) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *LogicalXor) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *LogicalXor) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Minus) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Minus) Comments() *[]comment.Comment {
|
||||
func (n *Minus) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Minus) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Minus) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Mod) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Mod) Comments() *[]comment.Comment {
|
||||
func (n *Mod) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Mod) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Mod) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Mul) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Mul) Comments() *[]comment.Comment {
|
||||
func (n *Mul) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Mul) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Mul) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *NotEqual) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *NotEqual) Comments() *[]comment.Comment {
|
||||
func (n *NotEqual) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *NotEqual) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *NotEqual) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *NotIdentical) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *NotIdentical) Comments() *[]comment.Comment {
|
||||
func (n *NotIdentical) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *NotIdentical) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *NotIdentical) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Plus) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Plus) Comments() *[]comment.Comment {
|
||||
func (n *Plus) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Plus) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Plus) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Pow) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Pow) Comments() *[]comment.Comment {
|
||||
func (n *Pow) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Pow) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Pow) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *ShiftLeft) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *ShiftLeft) Comments() *[]comment.Comment {
|
||||
func (n *ShiftLeft) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *ShiftLeft) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *ShiftLeft) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *ShiftRight) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *ShiftRight) Comments() *[]comment.Comment {
|
||||
func (n *ShiftRight) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *ShiftRight) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *ShiftRight) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Smaller) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Smaller) Comments() *[]comment.Comment {
|
||||
func (n *Smaller) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Smaller) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Smaller) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *SmallerOrEqual) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *SmallerOrEqual) Comments() *[]comment.Comment {
|
||||
func (n *SmallerOrEqual) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *SmallerOrEqual) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *SmallerOrEqual) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *Spaceship) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Spaceship) Comments() *[]comment.Comment {
|
||||
func (n *Spaceship) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Spaceship) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Spaceship) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user