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,7 +7,7 @@ import (
type Dnumber struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Value string
}
@@ -34,11 +34,11 @@ func (n *Dnumber) SetPosition(p *node.Position) node.Node {
return n
}
func (n *Dnumber) Comments() *[]comment.Comment {
func (n *Dnumber) Comments() []comment.Comment {
return n.comments
}
func (n *Dnumber) SetComments(c *[]comment.Comment) node.Node {
func (n *Dnumber) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -7,7 +7,7 @@ import (
type Encapsed struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Parts []node.Node
}
@@ -32,11 +32,11 @@ func (n *Encapsed) SetPosition(p *node.Position) node.Node {
return n
}
func (n *Encapsed) Comments() *[]comment.Comment {
func (n *Encapsed) Comments() []comment.Comment {
return n.comments
}
func (n *Encapsed) SetComments(c *[]comment.Comment) node.Node {
func (n *Encapsed) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -7,7 +7,7 @@ import (
type EncapsedStringPart struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Value string
}
@@ -34,11 +34,11 @@ func (n *EncapsedStringPart) SetPosition(p *node.Position) node.Node {
return n
}
func (n *EncapsedStringPart) Comments() *[]comment.Comment {
func (n *EncapsedStringPart) Comments() []comment.Comment {
return n.comments
}
func (n *EncapsedStringPart) SetComments(c *[]comment.Comment) node.Node {
func (n *EncapsedStringPart) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -7,7 +7,7 @@ import (
type Lnumber struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Value string
}
@@ -34,11 +34,11 @@ func (n *Lnumber) SetPosition(p *node.Position) node.Node {
return n
}
func (n *Lnumber) Comments() *[]comment.Comment {
func (n *Lnumber) Comments() []comment.Comment {
return n.comments
}
func (n *Lnumber) SetComments(c *[]comment.Comment) node.Node {
func (n *Lnumber) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -7,7 +7,7 @@ import (
type MagicConstant struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Value string
}
@@ -34,11 +34,11 @@ func (n *MagicConstant) SetPosition(p *node.Position) node.Node {
return n
}
func (n *MagicConstant) Comments() *[]comment.Comment {
func (n *MagicConstant) Comments() []comment.Comment {
return n.comments
}
func (n *MagicConstant) SetComments(c *[]comment.Comment) node.Node {
func (n *MagicConstant) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -7,7 +7,7 @@ import (
type String struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Value string
}
@@ -34,11 +34,11 @@ func (n *String) SetPosition(p *node.Position) node.Node {
return n
}
func (n *String) Comments() *[]comment.Comment {
func (n *String) Comments() []comment.Comment {
return n.comments
}
func (n *String) SetComments(c *[]comment.Comment) node.Node {
func (n *String) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}