fix poiner receiver at nodes
This commit is contained in:
@@ -19,29 +19,29 @@ func NewAltElse(Stmt node.Node) *AltElse {
|
||||
}
|
||||
}
|
||||
|
||||
func (n AltElse) Attributes() map[string]interface{} {
|
||||
func (n *AltElse) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n AltElse) Position() *node.Position {
|
||||
func (n *AltElse) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n AltElse) SetPosition(p *node.Position) node.Node {
|
||||
func (n *AltElse) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n AltElse) Walk(v node.Visitor) {
|
||||
func (n *AltElse) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewAltElseIf(Cond node.Node, Stmt node.Node) *AltElseIf {
|
||||
}
|
||||
}
|
||||
|
||||
func (n AltElseIf) Attributes() map[string]interface{} {
|
||||
func (n *AltElseIf) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n AltElseIf) Position() *node.Position {
|
||||
func (n *AltElseIf) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n AltElseIf) SetPosition(p *node.Position) node.Node {
|
||||
func (n *AltElseIf) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n AltElseIf) Walk(v node.Visitor) {
|
||||
func (n *AltElseIf) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -25,29 +25,29 @@ func NewAltIf(Cond node.Node, Stmt node.Node) *AltIf {
|
||||
}
|
||||
}
|
||||
|
||||
func (n AltIf) Attributes() map[string]interface{} {
|
||||
func (n *AltIf) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n AltIf) Position() *node.Position {
|
||||
func (n *AltIf) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n AltIf) SetPosition(p *node.Position) node.Node {
|
||||
func (n *AltIf) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n AltIf) AddElseIf(ElseIf node.Node) node.Node {
|
||||
func (n *AltIf) AddElseIf(ElseIf node.Node) node.Node {
|
||||
if n.ElseIf == nil {
|
||||
n.ElseIf = make([]node.Node, 0)
|
||||
}
|
||||
@@ -57,13 +57,13 @@ func (n AltIf) AddElseIf(ElseIf node.Node) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n AltIf) SetElse(_else node.Node) node.Node {
|
||||
func (n *AltIf) SetElse(_else node.Node) node.Node {
|
||||
n._else = _else
|
||||
|
||||
return n
|
||||
}
|
||||
|
||||
func (n AltIf) Walk(v node.Visitor) {
|
||||
func (n *AltIf) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewBreak(Expr node.Node) *Break {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Break) Attributes() map[string]interface{} {
|
||||
func (n *Break) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Break) Position() *node.Position {
|
||||
func (n *Break) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Break) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Break) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Break) Walk(v node.Visitor) {
|
||||
func (n *Break) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewCase(Cond node.Node, Stmts []node.Node) *Case {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Case) Attributes() map[string]interface{} {
|
||||
func (n *Case) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Case) Position() *node.Position {
|
||||
func (n *Case) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Case) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Case) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Case) Walk(v node.Visitor) {
|
||||
func (n *Case) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -23,29 +23,29 @@ func NewCatch(Types []node.Node, Variable node.Node, Stmts []node.Node) *Catch {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Catch) Attributes() map[string]interface{} {
|
||||
func (n *Catch) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Catch) Position() *node.Position {
|
||||
func (n *Catch) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Catch) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Catch) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Catch) Walk(v node.Visitor) {
|
||||
func (n *Catch) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -31,31 +31,31 @@ func NewClass(ClassName node.Node, Modifiers []node.Node, args []node.Node, Exte
|
||||
}
|
||||
}
|
||||
|
||||
func (n Class) Attributes() map[string]interface{} {
|
||||
func (n *Class) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"PhpDocComment": n.PhpDocComment,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Class) Position() *node.Position {
|
||||
func (n *Class) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Class) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Class) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Class) Walk(v node.Visitor) {
|
||||
func (n *Class) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewClassConstList(Modifiers []node.Node, Consts []node.Node) *ClassConstLis
|
||||
}
|
||||
}
|
||||
|
||||
func (n ClassConstList) Attributes() map[string]interface{} {
|
||||
func (n *ClassConstList) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n ClassConstList) Position() *node.Position {
|
||||
func (n *ClassConstList) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n ClassConstList) SetPosition(p *node.Position) node.Node {
|
||||
func (n *ClassConstList) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n ClassConstList) Walk(v node.Visitor) {
|
||||
func (n *ClassConstList) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -31,32 +31,32 @@ func NewClassMethod(MethodName node.Node, Modifiers []node.Node, ReturnsRef bool
|
||||
}
|
||||
}
|
||||
|
||||
func (n ClassMethod) Attributes() map[string]interface{} {
|
||||
func (n *ClassMethod) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"ReturnsRef": n.ReturnsRef,
|
||||
"PhpDocComment": n.PhpDocComment,
|
||||
}
|
||||
}
|
||||
|
||||
func (n ClassMethod) Position() *node.Position {
|
||||
func (n *ClassMethod) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n ClassMethod) SetPosition(p *node.Position) node.Node {
|
||||
func (n *ClassMethod) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n ClassMethod) Walk(v node.Visitor) {
|
||||
func (n *ClassMethod) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewConstList(Consts []node.Node) *ConstList {
|
||||
}
|
||||
}
|
||||
|
||||
func (n ConstList) Attributes() map[string]interface{} {
|
||||
func (n *ConstList) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n ConstList) Position() *node.Position {
|
||||
func (n *ConstList) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n ConstList) SetPosition(p *node.Position) node.Node {
|
||||
func (n *ConstList) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n ConstList) Walk(v node.Visitor) {
|
||||
func (n *ConstList) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -23,31 +23,31 @@ func NewConstant(ConstantName node.Node, Expr node.Node, PhpDocComment string) *
|
||||
}
|
||||
}
|
||||
|
||||
func (n Constant) Attributes() map[string]interface{} {
|
||||
func (n *Constant) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"PhpDocComment": n.PhpDocComment,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Constant) Position() *node.Position {
|
||||
func (n *Constant) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Constant) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Constant) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Constant) Walk(v node.Visitor) {
|
||||
func (n *Constant) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewContinue(Expr node.Node) *Continue {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Continue) Attributes() map[string]interface{} {
|
||||
func (n *Continue) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Continue) Position() *node.Position {
|
||||
func (n *Continue) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Continue) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Continue) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Continue) Walk(v node.Visitor) {
|
||||
func (n *Continue) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewDeclare(Consts []node.Node, Stmt node.Node) *Declare {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Declare) Attributes() map[string]interface{} {
|
||||
func (n *Declare) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Declare) Position() *node.Position {
|
||||
func (n *Declare) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Declare) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Declare) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Declare) Walk(v node.Visitor) {
|
||||
func (n *Declare) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewDefault(Stmts []node.Node) *Default {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Default) Attributes() map[string]interface{} {
|
||||
func (n *Default) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Default) Position() *node.Position {
|
||||
func (n *Default) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Default) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Default) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Default) Walk(v node.Visitor) {
|
||||
func (n *Default) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewDo(Stmt node.Node, Cond node.Node) *Do {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Do) Attributes() map[string]interface{} {
|
||||
func (n *Do) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Do) Position() *node.Position {
|
||||
func (n *Do) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Do) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Do) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Do) Walk(v node.Visitor) {
|
||||
func (n *Do) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewEcho(Exprs []node.Node) *Echo {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Echo) Attributes() map[string]interface{} {
|
||||
func (n *Echo) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Echo) Position() *node.Position {
|
||||
func (n *Echo) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Echo) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Echo) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Echo) Walk(v node.Visitor) {
|
||||
func (n *Echo) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewElse(Stmt node.Node) *Else {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Else) Attributes() map[string]interface{} {
|
||||
func (n *Else) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Else) Position() *node.Position {
|
||||
func (n *Else) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Else) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Else) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Else) Walk(v node.Visitor) {
|
||||
func (n *Else) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewElseIf(Cond node.Node, Stmt node.Node) *ElseIf {
|
||||
}
|
||||
}
|
||||
|
||||
func (n ElseIf) Attributes() map[string]interface{} {
|
||||
func (n *ElseIf) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n ElseIf) Position() *node.Position {
|
||||
func (n *ElseIf) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n ElseIf) SetPosition(p *node.Position) node.Node {
|
||||
func (n *ElseIf) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n ElseIf) Walk(v node.Visitor) {
|
||||
func (n *ElseIf) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewExpression(Expr node.Node) *Expression {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Expression) Attributes() map[string]interface{} {
|
||||
func (n *Expression) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Expression) Position() *node.Position {
|
||||
func (n *Expression) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Expression) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Expression) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Expression) Walk(v node.Visitor) {
|
||||
func (n *Expression) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewFinally(Stmts []node.Node) *Finally {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Finally) Attributes() map[string]interface{} {
|
||||
func (n *Finally) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Finally) Position() *node.Position {
|
||||
func (n *Finally) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Finally) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Finally) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Finally) Walk(v node.Visitor) {
|
||||
func (n *Finally) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -25,29 +25,29 @@ func NewFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node
|
||||
}
|
||||
}
|
||||
|
||||
func (n For) Attributes() map[string]interface{} {
|
||||
func (n *For) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n For) Position() *node.Position {
|
||||
func (n *For) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n For) SetPosition(p *node.Position) node.Node {
|
||||
func (n *For) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n For) Walk(v node.Visitor) {
|
||||
func (n *For) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -27,31 +27,31 @@ func NewForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Nod
|
||||
}
|
||||
}
|
||||
|
||||
func (n Foreach) Attributes() map[string]interface{} {
|
||||
func (n *Foreach) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"ByRef": n.ByRef,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Foreach) Position() *node.Position {
|
||||
func (n *Foreach) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Foreach) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Foreach) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Foreach) Walk(v node.Visitor) {
|
||||
func (n *Foreach) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ func NewFunction(FunctionName node.Node, ReturnsRef bool, Params []node.Node, Re
|
||||
}
|
||||
}
|
||||
|
||||
func (n Function) Attributes() map[string]interface{} {
|
||||
func (n *Function) Attributes() map[string]interface{} {
|
||||
// return n.attributes
|
||||
return map[string]interface{}{
|
||||
"ReturnsRef": n.ReturnsRef,
|
||||
@@ -37,25 +37,25 @@ func (n Function) Attributes() map[string]interface{} {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Function) Position() *node.Position {
|
||||
func (n *Function) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Function) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Function) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Function) Walk(v node.Visitor) {
|
||||
func (n *Function) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewGlobal(Vars []node.Node) *Global {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Global) Attributes() map[string]interface{} {
|
||||
func (n *Global) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Global) Position() *node.Position {
|
||||
func (n *Global) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Global) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Global) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Global) Walk(v node.Visitor) {
|
||||
func (n *Global) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewGoto(Label node.Node) *Goto {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Goto) Attributes() map[string]interface{} {
|
||||
func (n *Goto) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Goto) Position() *node.Position {
|
||||
func (n *Goto) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Goto) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Goto) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Goto) Walk(v node.Visitor) {
|
||||
func (n *Goto) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -23,34 +23,34 @@ func NewGroupUse(UseType node.Node, pRefix node.Node, UseList []node.Node) *Grou
|
||||
}
|
||||
}
|
||||
|
||||
func (n GroupUse) Attributes() map[string]interface{} {
|
||||
func (n *GroupUse) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n GroupUse) Position() *node.Position {
|
||||
func (n *GroupUse) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n GroupUse) SetPosition(p *node.Position) node.Node {
|
||||
func (n *GroupUse) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n GroupUse) SetUseType(UseType node.Node) node.Node {
|
||||
func (n *GroupUse) SetUseType(UseType node.Node) node.Node {
|
||||
n.UseType = UseType
|
||||
return n
|
||||
}
|
||||
|
||||
func (n GroupUse) Walk(v node.Visitor) {
|
||||
func (n *GroupUse) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -17,29 +17,29 @@ func NewHaltCompiler() *HaltCompiler {
|
||||
}
|
||||
}
|
||||
|
||||
func (n HaltCompiler) Attributes() map[string]interface{} {
|
||||
func (n *HaltCompiler) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n HaltCompiler) Position() *node.Position {
|
||||
func (n *HaltCompiler) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n HaltCompiler) SetPosition(p *node.Position) node.Node {
|
||||
func (n *HaltCompiler) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n HaltCompiler) Walk(v node.Visitor) {
|
||||
func (n *HaltCompiler) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -25,29 +25,29 @@ func NewIf(Cond node.Node, Stmt node.Node) *If {
|
||||
}
|
||||
}
|
||||
|
||||
func (n If) Attributes() map[string]interface{} {
|
||||
func (n *If) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n If) Position() *node.Position {
|
||||
func (n *If) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n If) SetPosition(p *node.Position) node.Node {
|
||||
func (n *If) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n If) AddElseIf(ElseIf node.Node) node.Node {
|
||||
func (n *If) AddElseIf(ElseIf node.Node) node.Node {
|
||||
if n.ElseIf == nil {
|
||||
n.ElseIf = make([]node.Node, 0)
|
||||
}
|
||||
@@ -57,13 +57,13 @@ func (n If) AddElseIf(ElseIf node.Node) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n If) SetElse(_else node.Node) node.Node {
|
||||
func (n *If) SetElse(_else node.Node) node.Node {
|
||||
n._else = _else
|
||||
|
||||
return n
|
||||
}
|
||||
|
||||
func (n If) Walk(v node.Visitor) {
|
||||
func (n *If) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,31 +19,31 @@ func NewInlineHtml(Value string) *InlineHtml {
|
||||
}
|
||||
}
|
||||
|
||||
func (n InlineHtml) Attributes() map[string]interface{} {
|
||||
func (n *InlineHtml) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"Value": n.Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n InlineHtml) Position() *node.Position {
|
||||
func (n *InlineHtml) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n InlineHtml) SetPosition(p *node.Position) node.Node {
|
||||
func (n *InlineHtml) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n InlineHtml) Walk(v node.Visitor) {
|
||||
func (n *InlineHtml) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -25,31 +25,31 @@ func NewInterface(InterfaceName node.Node, Extends []node.Node, Stmts []node.Nod
|
||||
}
|
||||
}
|
||||
|
||||
func (n Interface) Attributes() map[string]interface{} {
|
||||
func (n *Interface) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"PhpDocComment": n.PhpDocComment,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Interface) Position() *node.Position {
|
||||
func (n *Interface) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Interface) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Interface) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Interface) Walk(v node.Visitor) {
|
||||
func (n *Interface) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewLabel(LabelName node.Node) *Label {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Label) Attributes() map[string]interface{} {
|
||||
func (n *Label) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Label) Position() *node.Position {
|
||||
func (n *Label) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Label) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Label) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Label) Walk(v node.Visitor) {
|
||||
func (n *Label) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewNamespace(NamespaceName node.Node, Stmts []node.Node) *Namespace {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Namespace) Attributes() map[string]interface{} {
|
||||
func (n *Namespace) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Namespace) Position() *node.Position {
|
||||
func (n *Namespace) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Namespace) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Namespace) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Namespace) Walk(v node.Visitor) {
|
||||
func (n *Namespace) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -17,29 +17,29 @@ func NewNop() *Nop {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Nop) Attributes() map[string]interface{} {
|
||||
func (n *Nop) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Nop) Position() *node.Position {
|
||||
func (n *Nop) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Nop) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Nop) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Nop) Walk(v node.Visitor) {
|
||||
func (n *Nop) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -22,31 +22,31 @@ func NewProperty(Variable node.Node, Expr node.Node, PhpDocComment string) *Prop
|
||||
Expr,
|
||||
}
|
||||
}
|
||||
func (n Property) Attributes() map[string]interface{} {
|
||||
func (n *Property) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"PhpDocComment": n.PhpDocComment,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Property) Position() *node.Position {
|
||||
func (n *Property) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Property) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Property) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Property) Walk(v node.Visitor) {
|
||||
func (n *Property) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewPropertyList(Modifiers []node.Node, Properties []node.Node) *PropertyLis
|
||||
}
|
||||
}
|
||||
|
||||
func (n PropertyList) Attributes() map[string]interface{} {
|
||||
func (n *PropertyList) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n PropertyList) Position() *node.Position {
|
||||
func (n *PropertyList) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n PropertyList) SetPosition(p *node.Position) node.Node {
|
||||
func (n *PropertyList) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n PropertyList) Walk(v node.Visitor) {
|
||||
func (n *PropertyList) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewReturn(Expr node.Node) *Return {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Return) Attributes() map[string]interface{} {
|
||||
func (n *Return) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Return) Position() *node.Position {
|
||||
func (n *Return) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Return) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Return) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Return) Walk(v node.Visitor) {
|
||||
func (n *Return) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewStatic(Vars []node.Node) *Static {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Static) Attributes() map[string]interface{} {
|
||||
func (n *Static) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Static) Position() *node.Position {
|
||||
func (n *Static) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Static) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Static) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Static) Walk(v node.Visitor) {
|
||||
func (n *Static) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewStaticVar(Variable node.Node, Expr node.Node) *StaticVar {
|
||||
}
|
||||
}
|
||||
|
||||
func (n StaticVar) Attributes() map[string]interface{} {
|
||||
func (n *StaticVar) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n StaticVar) Position() *node.Position {
|
||||
func (n *StaticVar) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n StaticVar) SetPosition(p *node.Position) node.Node {
|
||||
func (n *StaticVar) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n StaticVar) Walk(v node.Visitor) {
|
||||
func (n *StaticVar) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewStmtList(Stmts []node.Node) *StmtList {
|
||||
}
|
||||
}
|
||||
|
||||
func (n StmtList) Attributes() map[string]interface{} {
|
||||
func (n *StmtList) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n StmtList) Position() *node.Position {
|
||||
func (n *StmtList) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n StmtList) SetPosition(p *node.Position) node.Node {
|
||||
func (n *StmtList) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n StmtList) Walk(v node.Visitor) {
|
||||
func (n *StmtList) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -24,29 +24,29 @@ func NewSwitch(token token.Token, Cond node.Node, cases []node.Node) *Switch {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Switch) Attributes() map[string]interface{} {
|
||||
func (n *Switch) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Switch) Position() *node.Position {
|
||||
func (n *Switch) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Switch) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Switch) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Switch) Walk(v node.Visitor) {
|
||||
func (n *Switch) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewThrow(Expr node.Node) *Throw {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Throw) Attributes() map[string]interface{} {
|
||||
func (n *Throw) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Throw) Position() *node.Position {
|
||||
func (n *Throw) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Throw) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Throw) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Throw) Walk(v node.Visitor) {
|
||||
func (n *Throw) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -23,31 +23,31 @@ func NewTrait(TraitName node.Node, Stmts []node.Node, PhpDocComment string) *Tra
|
||||
}
|
||||
}
|
||||
|
||||
func (n Trait) Attributes() map[string]interface{} {
|
||||
func (n *Trait) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"PhpDocComment": n.PhpDocComment,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Trait) Position() *node.Position {
|
||||
func (n *Trait) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Trait) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Trait) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Trait) Walk(v node.Visitor) {
|
||||
func (n *Trait) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewTraitMethodRef(Trait node.Node, Method node.Node) *TraitMethodRef {
|
||||
}
|
||||
}
|
||||
|
||||
func (n TraitMethodRef) Attributes() map[string]interface{} {
|
||||
func (n *TraitMethodRef) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n TraitMethodRef) Position() *node.Position {
|
||||
func (n *TraitMethodRef) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n TraitMethodRef) SetPosition(p *node.Position) node.Node {
|
||||
func (n *TraitMethodRef) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n TraitMethodRef) Walk(v node.Visitor) {
|
||||
func (n *TraitMethodRef) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewTraitUse(Traits []node.Node, Adaptations []node.Node) *TraitUse {
|
||||
}
|
||||
}
|
||||
|
||||
func (n TraitUse) Attributes() map[string]interface{} {
|
||||
func (n *TraitUse) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n TraitUse) Position() *node.Position {
|
||||
func (n *TraitUse) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n TraitUse) SetPosition(p *node.Position) node.Node {
|
||||
func (n *TraitUse) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n TraitUse) Walk(v node.Visitor) {
|
||||
func (n *TraitUse) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -23,29 +23,29 @@ func NewTraitUseAlias(Ref node.Node, Modifier node.Node, Alias node.Node) *Trait
|
||||
}
|
||||
}
|
||||
|
||||
func (n TraitUseAlias) Attributes() map[string]interface{} {
|
||||
func (n *TraitUseAlias) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n TraitUseAlias) Position() *node.Position {
|
||||
func (n *TraitUseAlias) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n TraitUseAlias) SetPosition(p *node.Position) node.Node {
|
||||
func (n *TraitUseAlias) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n TraitUseAlias) Walk(v node.Visitor) {
|
||||
func (n *TraitUseAlias) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewTraitUsePrecedence(Ref node.Node, Insteadof node.Node) *TraitUsePreceden
|
||||
}
|
||||
}
|
||||
|
||||
func (n TraitUsePrecedence) Attributes() map[string]interface{} {
|
||||
func (n *TraitUsePrecedence) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n TraitUsePrecedence) Position() *node.Position {
|
||||
func (n *TraitUsePrecedence) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n TraitUsePrecedence) SetPosition(p *node.Position) node.Node {
|
||||
func (n *TraitUsePrecedence) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n TraitUsePrecedence) Walk(v node.Visitor) {
|
||||
func (n *TraitUsePrecedence) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -23,29 +23,29 @@ func NewTry(Stmts []node.Node, Catches []node.Node, Finally node.Node) *Try {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Try) Attributes() map[string]interface{} {
|
||||
func (n *Try) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Try) Position() *node.Position {
|
||||
func (n *Try) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Try) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Try) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Try) Walk(v node.Visitor) {
|
||||
func (n *Try) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewUnset(Vars []node.Node) *Unset {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Unset) Attributes() map[string]interface{} {
|
||||
func (n *Unset) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Unset) Position() *node.Position {
|
||||
func (n *Unset) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Unset) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Unset) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Unset) Walk(v node.Visitor) {
|
||||
func (n *Unset) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -23,34 +23,34 @@ func NewUse(UseType node.Node, use node.Node, Alias node.Node) *Use {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Use) Attributes() map[string]interface{} {
|
||||
func (n *Use) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Use) Position() *node.Position {
|
||||
func (n *Use) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Use) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Use) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n Use) SetUseType(UseType node.Node) node.Node {
|
||||
func (n *Use) SetUseType(UseType node.Node) node.Node {
|
||||
n.UseType = UseType
|
||||
return n
|
||||
}
|
||||
|
||||
func (n Use) Walk(v node.Visitor) {
|
||||
func (n *Use) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ func NewUseList(UseType node.Node, Uses []node.Node) *UseList {
|
||||
}
|
||||
}
|
||||
|
||||
func (n UseList) Attributes() map[string]interface{} {
|
||||
func (n *UseList) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n UseList) Position() *node.Position {
|
||||
func (n *UseList) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n UseList) SetPosition(p *node.Position) node.Node {
|
||||
func (n *UseList) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n UseList) Walk(v node.Visitor) {
|
||||
func (n *UseList) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -24,29 +24,29 @@ func NewWhile(Token token.Token, Cond node.Node, Stmt node.Node) *While {
|
||||
}
|
||||
}
|
||||
|
||||
func (n While) Attributes() map[string]interface{} {
|
||||
func (n *While) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n While) Position() *node.Position {
|
||||
func (n *While) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n While) SetPosition(p *node.Position) node.Node {
|
||||
func (n *While) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
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
|
||||
}
|
||||
|
||||
func (n While) Walk(v node.Visitor) {
|
||||
func (n *While) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user