fix comments pointers
This commit is contained in:
@@ -33,11 +33,11 @@ func (n *Assign) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *Assign) Comments() *[]comment.Comment {
|
||||
func (n *Assign) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *Assign) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Assign) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
|
||||
type AssignOp struct {
|
||||
position *node.Position
|
||||
comments *[]comment.Comment
|
||||
comments []comment.Comment
|
||||
Variable node.Node
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
@@ -33,11 +33,11 @@ func (n *AssignRef) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n *AssignRef) Comments() *[]comment.Comment {
|
||||
func (n *AssignRef) Comments() []comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n *AssignRef) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *AssignRef) SetComments(c []comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -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 *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 *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 *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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user