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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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