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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -7,7 +7,7 @@ import (
type ClassMethod struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
ReturnsRef bool
PhpDocComment string
MethodName node.Node
@@ -47,11 +47,11 @@ func (n *ClassMethod) SetPosition(p *node.Position) node.Node {
return n
}
func (n *ClassMethod) Comments() *[]comment.Comment {
func (n *ClassMethod) Comments() []comment.Comment {
return n.comments
}
func (n *ClassMethod) SetComments(c *[]comment.Comment) node.Node {
func (n *ClassMethod) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -7,7 +7,7 @@ import (
type Foreach struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
ByRef bool
Expr node.Node
Key node.Node
@@ -42,11 +42,11 @@ func (n *Foreach) SetPosition(p *node.Position) node.Node {
return n
}
func (n *Foreach) Comments() *[]comment.Comment {
func (n *Foreach) Comments() []comment.Comment {
return n.comments
}
func (n *Foreach) SetComments(c *[]comment.Comment) node.Node {
func (n *Foreach) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

@@ -7,7 +7,7 @@ import (
type Function struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
ReturnsRef bool
PhpDocComment string
FunctionName node.Node
@@ -46,11 +46,11 @@ func (n *Function) SetPosition(p *node.Position) node.Node {
return n
}
func (n *Function) Comments() *[]comment.Comment {
func (n *Function) Comments() []comment.Comment {
return n.comments
}
func (n *Function) SetComments(c *[]comment.Comment) node.Node {
func (n *Function) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -8,7 +8,7 @@ import (
type Switch struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
token token.Token
Cond node.Node
cases []node.Node
@@ -37,11 +37,11 @@ func (n *Switch) SetPosition(p *node.Position) node.Node {
return n
}
func (n *Switch) Comments() *[]comment.Comment {
func (n *Switch) Comments() []comment.Comment {
return n.comments
}
func (n *Switch) SetComments(c *[]comment.Comment) node.Node {
func (n *Switch) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -8,7 +8,7 @@ import (
type While struct {
position *node.Position
comments *[]comment.Comment
comments []comment.Comment
Token token.Token
Cond node.Node
Stmt node.Node
@@ -37,11 +37,11 @@ func (n *While) SetPosition(p *node.Position) node.Node {
return n
}
func (n *While) Comments() *[]comment.Comment {
func (n *While) Comments() []comment.Comment {
return n.comments
}
func (n *While) SetComments(c *[]comment.Comment) node.Node {
func (n *While) SetComments(c []comment.Comment) node.Node {
n.comments = c
return n
}