fix comments pointers

This commit is contained in:
z7zmey
2018-01-06 14:04:02 +02:00
parent 621a27b24b
commit 065e6ad203
160 changed files with 991 additions and 972 deletions

View File

@@ -38,8 +38,8 @@ func (n Dnumber) Comments() *[]comment.Comment {
return n.comments
}
func (n Dnumber) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n Dnumber) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -36,8 +36,8 @@ func (n Encapsed) Comments() *[]comment.Comment {
return n.comments
}
func (n Encapsed) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n Encapsed) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -38,8 +38,8 @@ func (n EncapsedStringPart) Comments() *[]comment.Comment {
return n.comments
}
func (n EncapsedStringPart) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n EncapsedStringPart) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -38,8 +38,8 @@ func (n Lnumber) Comments() *[]comment.Comment {
return n.comments
}
func (n Lnumber) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n Lnumber) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -38,8 +38,8 @@ func (n MagicConstant) Comments() *[]comment.Comment {
return n.comments
}
func (n MagicConstant) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n MagicConstant) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -38,8 +38,8 @@ func (n String) Comments() *[]comment.Comment {
return n.comments
}
func (n String) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n String) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}