fix comments pointers

This commit is contained in:
z7zmey
2018-01-08 21:50:39 +02:00
parent 4ecb9edbd8
commit b7b859edaa
163 changed files with 426 additions and 430 deletions

View File

@@ -7,6 +7,6 @@ import (
type Cast struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Expr node.Node
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}