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 AltElse) Comments() *[]comment.Comment {
return n.comments
}
func (n AltElse) SetComments(c []comment.Comment) node.Node {
n.comments = &c
func (n AltElse) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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