fix poiner receiver at nodes

This commit is contained in:
z7zmey 2018-01-08 21:32:57 +02:00
parent 855665b565
commit 4ecb9edbd8
154 changed files with 1421 additions and 1416 deletions

View File

@ -18,31 +18,31 @@ func NewArgument(Expression Node, Variadic bool) *Argument {
}
}
func (n Argument) Attributes() map[string]interface{} {
func (n *Argument) Attributes() map[string]interface{} {
return map[string]interface{}{
"Variadic": n.Variadic,
}
}
func (n Argument) Position() *Position {
func (n *Argument) Position() *Position {
return n.position
}
func (n Argument) SetPosition(p *Position) Node {
func (n *Argument) SetPosition(p *Position) Node {
n.position = p
return n
}
func (n Argument) Comments() *[]comment.Comment {
func (n *Argument) Comments() *[]comment.Comment {
return n.comments
}
func (n Argument) SetComments(c *[]comment.Comment) Node {
func (n *Argument) SetComments(c *[]comment.Comment) Node {
n.comments = c
return n
}
func (n Argument) Walk(v Visitor) {
func (n *Argument) Walk(v Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewArray(Items []node.Node) *Array {
}
}
func (n Array) Attributes() map[string]interface{} {
func (n *Array) Attributes() map[string]interface{} {
return nil
}
func (n Array) Position() *node.Position {
func (n *Array) Position() *node.Position {
return n.position
}
func (n Array) SetPosition(p *node.Position) node.Node {
func (n *Array) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Array) Comments() *[]comment.Comment {
func (n *Array) Comments() *[]comment.Comment {
return n.comments
}
func (n Array) SetComments(c *[]comment.Comment) node.Node {
func (n *Array) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Array) Walk(v node.Visitor) {
func (n *Array) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewArrayDimFetch(Variable node.Node, Dim node.Node) *ArrayDimFetch {
}
}
func (n ArrayDimFetch) Attributes() map[string]interface{} {
func (n *ArrayDimFetch) Attributes() map[string]interface{} {
return nil
}
func (n ArrayDimFetch) Position() *node.Position {
func (n *ArrayDimFetch) Position() *node.Position {
return n.position
}
func (n ArrayDimFetch) SetPosition(p *node.Position) node.Node {
func (n *ArrayDimFetch) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ArrayDimFetch) Comments() *[]comment.Comment {
func (n *ArrayDimFetch) Comments() *[]comment.Comment {
return n.comments
}
func (n ArrayDimFetch) SetComments(c *[]comment.Comment) node.Node {
func (n *ArrayDimFetch) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ArrayDimFetch) Walk(v node.Visitor) {
func (n *ArrayDimFetch) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -23,31 +23,31 @@ func NewArrayItem(Key node.Node, Val node.Node, ByRef bool) *ArrayItem {
}
}
func (n ArrayItem) Attributes() map[string]interface{} {
func (n *ArrayItem) Attributes() map[string]interface{} {
return map[string]interface{}{
"ByRef": n.ByRef,
}
}
func (n ArrayItem) Position() *node.Position {
func (n *ArrayItem) Position() *node.Position {
return n.position
}
func (n ArrayItem) SetPosition(p *node.Position) node.Node {
func (n *ArrayItem) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ArrayItem) Comments() *[]comment.Comment {
func (n *ArrayItem) Comments() *[]comment.Comment {
return n.comments
}
func (n ArrayItem) SetComments(c *[]comment.Comment) node.Node {
func (n *ArrayItem) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ArrayItem) Walk(v node.Visitor) {
func (n *ArrayItem) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewAssign(Variable node.Node, Expression node.Node) *Assign {
}
}
func (n Assign) Attributes() map[string]interface{} {
func (n *Assign) Attributes() map[string]interface{} {
return nil
}
func (n Assign) Position() *node.Position {
func (n *Assign) Position() *node.Position {
return n.position
}
func (n Assign) SetPosition(p *node.Position) node.Node {
func (n *Assign) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Assign) Comments() *[]comment.Comment {
func (n *Assign) Comments() *[]comment.Comment {
return n.comments
}
func (n Assign) SetComments(c *[]comment.Comment) node.Node {
func (n *Assign) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Assign) Walk(v node.Visitor) {
func (n *Assign) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewAssignRef(Variable node.Node, Expression node.Node) *AssignRef {
}
}
func (n AssignRef) Attributes() map[string]interface{} {
func (n *AssignRef) Attributes() map[string]interface{} {
return nil
}
func (n AssignRef) Position() *node.Position {
func (n *AssignRef) Position() *node.Position {
return n.position
}
func (n AssignRef) SetPosition(p *node.Position) node.Node {
func (n *AssignRef) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n AssignRef) Comments() *[]comment.Comment {
func (n *AssignRef) Comments() *[]comment.Comment {
return n.comments
}
func (n AssignRef) SetComments(c *[]comment.Comment) node.Node {
func (n *AssignRef) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n AssignRef) Walk(v node.Visitor) {
func (n *AssignRef) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
}
}
func (n BitwiseAnd) Attributes() map[string]interface{} {
func (n *BitwiseAnd) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseAnd) Position() *node.Position {
func (n *BitwiseAnd) Position() *node.Position {
return n.position
}
func (n BitwiseAnd) SetPosition(p *node.Position) node.Node {
func (n *BitwiseAnd) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BitwiseAnd) Comments() *[]comment.Comment {
func (n *BitwiseAnd) Comments() *[]comment.Comment {
return n.comments
}
func (n BitwiseAnd) SetComments(c *[]comment.Comment) node.Node {
func (n *BitwiseAnd) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BitwiseAnd) Walk(v node.Visitor) {
func (n *BitwiseAnd) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
}
}
func (n BitwiseOr) Attributes() map[string]interface{} {
func (n *BitwiseOr) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseOr) Position() *node.Position {
func (n *BitwiseOr) Position() *node.Position {
return n.position
}
func (n BitwiseOr) SetPosition(p *node.Position) node.Node {
func (n *BitwiseOr) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BitwiseOr) Comments() *[]comment.Comment {
func (n *BitwiseOr) Comments() *[]comment.Comment {
return n.comments
}
func (n BitwiseOr) SetComments(c *[]comment.Comment) node.Node {
func (n *BitwiseOr) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BitwiseOr) Walk(v node.Visitor) {
func (n *BitwiseOr) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
}
}
func (n BitwiseXor) Attributes() map[string]interface{} {
func (n *BitwiseXor) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseXor) Position() *node.Position {
func (n *BitwiseXor) Position() *node.Position {
return n.position
}
func (n BitwiseXor) SetPosition(p *node.Position) node.Node {
func (n *BitwiseXor) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BitwiseXor) Comments() *[]comment.Comment {
func (n *BitwiseXor) Comments() *[]comment.Comment {
return n.comments
}
func (n BitwiseXor) SetComments(c *[]comment.Comment) node.Node {
func (n *BitwiseXor) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BitwiseXor) Walk(v node.Visitor) {
func (n *BitwiseXor) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewConcat(Variable node.Node, Expression node.Node) *Concat {
}
}
func (n Concat) Attributes() map[string]interface{} {
func (n *Concat) Attributes() map[string]interface{} {
return nil
}
func (n Concat) Position() *node.Position {
func (n *Concat) Position() *node.Position {
return n.position
}
func (n Concat) SetPosition(p *node.Position) node.Node {
func (n *Concat) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Concat) Comments() *[]comment.Comment {
func (n *Concat) Comments() *[]comment.Comment {
return n.comments
}
func (n Concat) SetComments(c *[]comment.Comment) node.Node {
func (n *Concat) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Concat) Walk(v node.Visitor) {
func (n *Concat) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewDiv(Variable node.Node, Expression node.Node) *Div {
}
}
func (n Div) Attributes() map[string]interface{} {
func (n *Div) Attributes() map[string]interface{} {
return nil
}
func (n Div) Position() *node.Position {
func (n *Div) Position() *node.Position {
return n.position
}
func (n Div) SetPosition(p *node.Position) node.Node {
func (n *Div) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Div) Comments() *[]comment.Comment {
func (n *Div) Comments() *[]comment.Comment {
return n.comments
}
func (n Div) SetComments(c *[]comment.Comment) node.Node {
func (n *Div) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Div) Walk(v node.Visitor) {
func (n *Div) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewMinus(Variable node.Node, Expression node.Node) *Minus {
}
}
func (n Minus) Attributes() map[string]interface{} {
func (n *Minus) Attributes() map[string]interface{} {
return nil
}
func (n Minus) Position() *node.Position {
func (n *Minus) Position() *node.Position {
return n.position
}
func (n Minus) SetPosition(p *node.Position) node.Node {
func (n *Minus) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Minus) Comments() *[]comment.Comment {
func (n *Minus) Comments() *[]comment.Comment {
return n.comments
}
func (n Minus) SetComments(c *[]comment.Comment) node.Node {
func (n *Minus) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Minus) Walk(v node.Visitor) {
func (n *Minus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewMod(Variable node.Node, Expression node.Node) *Mod {
}
}
func (n Mod) Attributes() map[string]interface{} {
func (n *Mod) Attributes() map[string]interface{} {
return nil
}
func (n Mod) Position() *node.Position {
func (n *Mod) Position() *node.Position {
return n.position
}
func (n Mod) SetPosition(p *node.Position) node.Node {
func (n *Mod) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Mod) Comments() *[]comment.Comment {
func (n *Mod) Comments() *[]comment.Comment {
return n.comments
}
func (n Mod) SetComments(c *[]comment.Comment) node.Node {
func (n *Mod) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Mod) Walk(v node.Visitor) {
func (n *Mod) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewMul(Variable node.Node, Expression node.Node) *Mul {
}
}
func (n Mul) Attributes() map[string]interface{} {
func (n *Mul) Attributes() map[string]interface{} {
return nil
}
func (n Mul) Position() *node.Position {
func (n *Mul) Position() *node.Position {
return n.position
}
func (n Mul) SetPosition(p *node.Position) node.Node {
func (n *Mul) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Mul) Comments() *[]comment.Comment {
func (n *Mul) Comments() *[]comment.Comment {
return n.comments
}
func (n Mul) SetComments(c *[]comment.Comment) node.Node {
func (n *Mul) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Mul) Walk(v node.Visitor) {
func (n *Mul) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewPlus(Variable node.Node, Expression node.Node) *Plus {
}
}
func (n Plus) Attributes() map[string]interface{} {
func (n *Plus) Attributes() map[string]interface{} {
return nil
}
func (n Plus) Position() *node.Position {
func (n *Plus) Position() *node.Position {
return n.position
}
func (n Plus) SetPosition(p *node.Position) node.Node {
func (n *Plus) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Plus) Comments() *[]comment.Comment {
func (n *Plus) Comments() *[]comment.Comment {
return n.comments
}
func (n Plus) SetComments(c *[]comment.Comment) node.Node {
func (n *Plus) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Plus) Walk(v node.Visitor) {
func (n *Plus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewPow(Variable node.Node, Expression node.Node) *Pow {
}
}
func (n Pow) Attributes() map[string]interface{} {
func (n *Pow) Attributes() map[string]interface{} {
return nil
}
func (n Pow) Position() *node.Position {
func (n *Pow) Position() *node.Position {
return n.position
}
func (n Pow) SetPosition(p *node.Position) node.Node {
func (n *Pow) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Pow) Comments() *[]comment.Comment {
func (n *Pow) Comments() *[]comment.Comment {
return n.comments
}
func (n Pow) SetComments(c *[]comment.Comment) node.Node {
func (n *Pow) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Pow) Walk(v node.Visitor) {
func (n *Pow) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
}
}
func (n ShiftLeft) Attributes() map[string]interface{} {
func (n *ShiftLeft) Attributes() map[string]interface{} {
return nil
}
func (n ShiftLeft) Position() *node.Position {
func (n *ShiftLeft) Position() *node.Position {
return n.position
}
func (n ShiftLeft) SetPosition(p *node.Position) node.Node {
func (n *ShiftLeft) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ShiftLeft) Comments() *[]comment.Comment {
func (n *ShiftLeft) Comments() *[]comment.Comment {
return n.comments
}
func (n ShiftLeft) SetComments(c *[]comment.Comment) node.Node {
func (n *ShiftLeft) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ShiftLeft) Walk(v node.Visitor) {
func (n *ShiftLeft) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
}
}
func (n ShiftRight) Attributes() map[string]interface{} {
func (n *ShiftRight) Attributes() map[string]interface{} {
return nil
}
func (n ShiftRight) Position() *node.Position {
func (n *ShiftRight) Position() *node.Position {
return n.position
}
func (n ShiftRight) SetPosition(p *node.Position) node.Node {
func (n *ShiftRight) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ShiftRight) Comments() *[]comment.Comment {
func (n *ShiftRight) Comments() *[]comment.Comment {
return n.comments
}
func (n ShiftRight) SetComments(c *[]comment.Comment) node.Node {
func (n *ShiftRight) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ShiftRight) Walk(v node.Visitor) {
func (n *ShiftRight) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
}
}
func (n BitwiseAnd) Attributes() map[string]interface{} {
func (n *BitwiseAnd) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseAnd) Position() *node.Position {
func (n *BitwiseAnd) Position() *node.Position {
return n.position
}
func (n BitwiseAnd) SetPosition(p *node.Position) node.Node {
func (n *BitwiseAnd) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BitwiseAnd) Comments() *[]comment.Comment {
func (n *BitwiseAnd) Comments() *[]comment.Comment {
return n.comments
}
func (n BitwiseAnd) SetComments(c *[]comment.Comment) node.Node {
func (n *BitwiseAnd) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BitwiseAnd) Walk(v node.Visitor) {
func (n *BitwiseAnd) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
}
}
func (n BitwiseOr) Attributes() map[string]interface{} {
func (n *BitwiseOr) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseOr) Position() *node.Position {
func (n *BitwiseOr) Position() *node.Position {
return n.position
}
func (n BitwiseOr) SetPosition(p *node.Position) node.Node {
func (n *BitwiseOr) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BitwiseOr) Comments() *[]comment.Comment {
func (n *BitwiseOr) Comments() *[]comment.Comment {
return n.comments
}
func (n BitwiseOr) SetComments(c *[]comment.Comment) node.Node {
func (n *BitwiseOr) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BitwiseOr) Walk(v node.Visitor) {
func (n *BitwiseOr) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
}
}
func (n BitwiseXor) Attributes() map[string]interface{} {
func (n *BitwiseXor) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseXor) Position() *node.Position {
func (n *BitwiseXor) Position() *node.Position {
return n.position
}
func (n BitwiseXor) SetPosition(p *node.Position) node.Node {
func (n *BitwiseXor) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BitwiseXor) Comments() *[]comment.Comment {
func (n *BitwiseXor) Comments() *[]comment.Comment {
return n.comments
}
func (n BitwiseXor) SetComments(c *[]comment.Comment) node.Node {
func (n *BitwiseXor) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BitwiseXor) Walk(v node.Visitor) {
func (n *BitwiseXor) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBooleanAnd(Variable node.Node, Expression node.Node) *BooleanAnd {
}
}
func (n BooleanAnd) Attributes() map[string]interface{} {
func (n *BooleanAnd) Attributes() map[string]interface{} {
return nil
}
func (n BooleanAnd) Position() *node.Position {
func (n *BooleanAnd) Position() *node.Position {
return n.position
}
func (n BooleanAnd) SetPosition(p *node.Position) node.Node {
func (n *BooleanAnd) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BooleanAnd) Comments() *[]comment.Comment {
func (n *BooleanAnd) Comments() *[]comment.Comment {
return n.comments
}
func (n BooleanAnd) SetComments(c *[]comment.Comment) node.Node {
func (n *BooleanAnd) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BooleanAnd) Walk(v node.Visitor) {
func (n *BooleanAnd) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewBooleanOr(Variable node.Node, Expression node.Node) *BooleanOr {
}
}
func (n BooleanOr) Attributes() map[string]interface{} {
func (n *BooleanOr) Attributes() map[string]interface{} {
return nil
}
func (n BooleanOr) Position() *node.Position {
func (n *BooleanOr) Position() *node.Position {
return n.position
}
func (n BooleanOr) SetPosition(p *node.Position) node.Node {
func (n *BooleanOr) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BooleanOr) Comments() *[]comment.Comment {
func (n *BooleanOr) Comments() *[]comment.Comment {
return n.comments
}
func (n BooleanOr) SetComments(c *[]comment.Comment) node.Node {
func (n *BooleanOr) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BooleanOr) Walk(v node.Visitor) {
func (n *BooleanOr) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewCoalesce(Variable node.Node, Expression node.Node) *Coalesce {
}
}
func (n Coalesce) Attributes() map[string]interface{} {
func (n *Coalesce) Attributes() map[string]interface{} {
return nil
}
func (n Coalesce) Position() *node.Position {
func (n *Coalesce) Position() *node.Position {
return n.position
}
func (n Coalesce) SetPosition(p *node.Position) node.Node {
func (n *Coalesce) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Coalesce) Comments() *[]comment.Comment {
func (n *Coalesce) Comments() *[]comment.Comment {
return n.comments
}
func (n Coalesce) SetComments(c *[]comment.Comment) node.Node {
func (n *Coalesce) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Coalesce) Walk(v node.Visitor) {
func (n *Coalesce) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewConcat(Variable node.Node, Expression node.Node) *Concat {
}
}
func (n Concat) Attributes() map[string]interface{} {
func (n *Concat) Attributes() map[string]interface{} {
return nil
}
func (n Concat) Position() *node.Position {
func (n *Concat) Position() *node.Position {
return n.position
}
func (n Concat) SetPosition(p *node.Position) node.Node {
func (n *Concat) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Concat) Comments() *[]comment.Comment {
func (n *Concat) Comments() *[]comment.Comment {
return n.comments
}
func (n Concat) SetComments(c *[]comment.Comment) node.Node {
func (n *Concat) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Concat) Walk(v node.Visitor) {
func (n *Concat) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewDiv(Variable node.Node, Expression node.Node) *Div {
}
}
func (n Div) Attributes() map[string]interface{} {
func (n *Div) Attributes() map[string]interface{} {
return nil
}
func (n Div) Position() *node.Position {
func (n *Div) Position() *node.Position {
return n.position
}
func (n Div) SetPosition(p *node.Position) node.Node {
func (n *Div) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Div) Comments() *[]comment.Comment {
func (n *Div) Comments() *[]comment.Comment {
return n.comments
}
func (n Div) SetComments(c *[]comment.Comment) node.Node {
func (n *Div) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Div) Walk(v node.Visitor) {
func (n *Div) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewEqual(Variable node.Node, Expression node.Node) *Equal {
}
}
func (n Equal) Attributes() map[string]interface{} {
func (n *Equal) Attributes() map[string]interface{} {
return nil
}
func (n Equal) Position() *node.Position {
func (n *Equal) Position() *node.Position {
return n.position
}
func (n Equal) SetPosition(p *node.Position) node.Node {
func (n *Equal) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Equal) Comments() *[]comment.Comment {
func (n *Equal) Comments() *[]comment.Comment {
return n.comments
}
func (n Equal) SetComments(c *[]comment.Comment) node.Node {
func (n *Equal) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Equal) Walk(v node.Visitor) {
func (n *Equal) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewGreater(Variable node.Node, Expression node.Node) *Greater {
}
}
func (n Greater) Attributes() map[string]interface{} {
func (n *Greater) Attributes() map[string]interface{} {
return nil
}
func (n Greater) Position() *node.Position {
func (n *Greater) Position() *node.Position {
return n.position
}
func (n Greater) SetPosition(p *node.Position) node.Node {
func (n *Greater) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Greater) Comments() *[]comment.Comment {
func (n *Greater) Comments() *[]comment.Comment {
return n.comments
}
func (n Greater) SetComments(c *[]comment.Comment) node.Node {
func (n *Greater) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Greater) Walk(v node.Visitor) {
func (n *Greater) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewGreaterOrEqual(Variable node.Node, Expression node.Node) *GreaterOrEqual
}
}
func (n GreaterOrEqual) Attributes() map[string]interface{} {
func (n *GreaterOrEqual) Attributes() map[string]interface{} {
return nil
}
func (n GreaterOrEqual) Position() *node.Position {
func (n *GreaterOrEqual) Position() *node.Position {
return n.position
}
func (n GreaterOrEqual) SetPosition(p *node.Position) node.Node {
func (n *GreaterOrEqual) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n GreaterOrEqual) Comments() *[]comment.Comment {
func (n *GreaterOrEqual) Comments() *[]comment.Comment {
return n.comments
}
func (n GreaterOrEqual) SetComments(c *[]comment.Comment) node.Node {
func (n *GreaterOrEqual) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n GreaterOrEqual) Walk(v node.Visitor) {
func (n *GreaterOrEqual) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewIdentical(Variable node.Node, Expression node.Node) *Identical {
}
}
func (n Identical) Attributes() map[string]interface{} {
func (n *Identical) Attributes() map[string]interface{} {
return nil
}
func (n Identical) Position() *node.Position {
func (n *Identical) Position() *node.Position {
return n.position
}
func (n Identical) SetPosition(p *node.Position) node.Node {
func (n *Identical) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Identical) Comments() *[]comment.Comment {
func (n *Identical) Comments() *[]comment.Comment {
return n.comments
}
func (n Identical) SetComments(c *[]comment.Comment) node.Node {
func (n *Identical) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Identical) Walk(v node.Visitor) {
func (n *Identical) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewLogicalAnd(Variable node.Node, Expression node.Node) *LogicalAnd {
}
}
func (n LogicalAnd) Attributes() map[string]interface{} {
func (n *LogicalAnd) Attributes() map[string]interface{} {
return nil
}
func (n LogicalAnd) Position() *node.Position {
func (n *LogicalAnd) Position() *node.Position {
return n.position
}
func (n LogicalAnd) SetPosition(p *node.Position) node.Node {
func (n *LogicalAnd) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n LogicalAnd) Comments() *[]comment.Comment {
func (n *LogicalAnd) Comments() *[]comment.Comment {
return n.comments
}
func (n LogicalAnd) SetComments(c *[]comment.Comment) node.Node {
func (n *LogicalAnd) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n LogicalAnd) Walk(v node.Visitor) {
func (n *LogicalAnd) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewLogicalOr(Variable node.Node, Expression node.Node) *LogicalOr {
}
}
func (n LogicalOr) Attributes() map[string]interface{} {
func (n *LogicalOr) Attributes() map[string]interface{} {
return nil
}
func (n LogicalOr) Position() *node.Position {
func (n *LogicalOr) Position() *node.Position {
return n.position
}
func (n LogicalOr) SetPosition(p *node.Position) node.Node {
func (n *LogicalOr) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n LogicalOr) Comments() *[]comment.Comment {
func (n *LogicalOr) Comments() *[]comment.Comment {
return n.comments
}
func (n LogicalOr) SetComments(c *[]comment.Comment) node.Node {
func (n *LogicalOr) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n LogicalOr) Walk(v node.Visitor) {
func (n *LogicalOr) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewLogicalXor(Variable node.Node, Expression node.Node) *LogicalXor {
}
}
func (n LogicalXor) Attributes() map[string]interface{} {
func (n *LogicalXor) Attributes() map[string]interface{} {
return nil
}
func (n LogicalXor) Position() *node.Position {
func (n *LogicalXor) Position() *node.Position {
return n.position
}
func (n LogicalXor) SetPosition(p *node.Position) node.Node {
func (n *LogicalXor) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n LogicalXor) Comments() *[]comment.Comment {
func (n *LogicalXor) Comments() *[]comment.Comment {
return n.comments
}
func (n LogicalXor) SetComments(c *[]comment.Comment) node.Node {
func (n *LogicalXor) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n LogicalXor) Walk(v node.Visitor) {
func (n *LogicalXor) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewMinus(Variable node.Node, Expression node.Node) *Minus {
}
}
func (n Minus) Attributes() map[string]interface{} {
func (n *Minus) Attributes() map[string]interface{} {
return nil
}
func (n Minus) Position() *node.Position {
func (n *Minus) Position() *node.Position {
return n.position
}
func (n Minus) SetPosition(p *node.Position) node.Node {
func (n *Minus) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Minus) Comments() *[]comment.Comment {
func (n *Minus) Comments() *[]comment.Comment {
return n.comments
}
func (n Minus) SetComments(c *[]comment.Comment) node.Node {
func (n *Minus) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Minus) Walk(v node.Visitor) {
func (n *Minus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewMod(Variable node.Node, Expression node.Node) *Mod {
}
}
func (n Mod) Attributes() map[string]interface{} {
func (n *Mod) Attributes() map[string]interface{} {
return nil
}
func (n Mod) Position() *node.Position {
func (n *Mod) Position() *node.Position {
return n.position
}
func (n Mod) SetPosition(p *node.Position) node.Node {
func (n *Mod) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Mod) Comments() *[]comment.Comment {
func (n *Mod) Comments() *[]comment.Comment {
return n.comments
}
func (n Mod) SetComments(c *[]comment.Comment) node.Node {
func (n *Mod) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Mod) Walk(v node.Visitor) {
func (n *Mod) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewMul(Variable node.Node, Expression node.Node) *Mul {
}
}
func (n Mul) Attributes() map[string]interface{} {
func (n *Mul) Attributes() map[string]interface{} {
return nil
}
func (n Mul) Position() *node.Position {
func (n *Mul) Position() *node.Position {
return n.position
}
func (n Mul) SetPosition(p *node.Position) node.Node {
func (n *Mul) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Mul) Comments() *[]comment.Comment {
func (n *Mul) Comments() *[]comment.Comment {
return n.comments
}
func (n Mul) SetComments(c *[]comment.Comment) node.Node {
func (n *Mul) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Mul) Walk(v node.Visitor) {
func (n *Mul) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewNotEqual(Variable node.Node, Expression node.Node) *NotEqual {
}
}
func (n NotEqual) Attributes() map[string]interface{} {
func (n *NotEqual) Attributes() map[string]interface{} {
return nil
}
func (n NotEqual) Position() *node.Position {
func (n *NotEqual) Position() *node.Position {
return n.position
}
func (n NotEqual) SetPosition(p *node.Position) node.Node {
func (n *NotEqual) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n NotEqual) Comments() *[]comment.Comment {
func (n *NotEqual) Comments() *[]comment.Comment {
return n.comments
}
func (n NotEqual) SetComments(c *[]comment.Comment) node.Node {
func (n *NotEqual) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n NotEqual) Walk(v node.Visitor) {
func (n *NotEqual) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewNotIdentical(Variable node.Node, Expression node.Node) *NotIdentical {
}
}
func (n NotIdentical) Attributes() map[string]interface{} {
func (n *NotIdentical) Attributes() map[string]interface{} {
return nil
}
func (n NotIdentical) Position() *node.Position {
func (n *NotIdentical) Position() *node.Position {
return n.position
}
func (n NotIdentical) SetPosition(p *node.Position) node.Node {
func (n *NotIdentical) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n NotIdentical) Comments() *[]comment.Comment {
func (n *NotIdentical) Comments() *[]comment.Comment {
return n.comments
}
func (n NotIdentical) SetComments(c *[]comment.Comment) node.Node {
func (n *NotIdentical) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n NotIdentical) Walk(v node.Visitor) {
func (n *NotIdentical) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewPlus(Variable node.Node, Expression node.Node) *Plus {
}
}
func (n Plus) Attributes() map[string]interface{} {
func (n *Plus) Attributes() map[string]interface{} {
return nil
}
func (n Plus) Position() *node.Position {
func (n *Plus) Position() *node.Position {
return n.position
}
func (n Plus) SetPosition(p *node.Position) node.Node {
func (n *Plus) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Plus) Comments() *[]comment.Comment {
func (n *Plus) Comments() *[]comment.Comment {
return n.comments
}
func (n Plus) SetComments(c *[]comment.Comment) node.Node {
func (n *Plus) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Plus) Walk(v node.Visitor) {
func (n *Plus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewPow(Variable node.Node, Expression node.Node) *Pow {
}
}
func (n Pow) Attributes() map[string]interface{} {
func (n *Pow) Attributes() map[string]interface{} {
return nil
}
func (n Pow) Position() *node.Position {
func (n *Pow) Position() *node.Position {
return n.position
}
func (n Pow) SetPosition(p *node.Position) node.Node {
func (n *Pow) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Pow) Comments() *[]comment.Comment {
func (n *Pow) Comments() *[]comment.Comment {
return n.comments
}
func (n Pow) SetComments(c *[]comment.Comment) node.Node {
func (n *Pow) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Pow) Walk(v node.Visitor) {
func (n *Pow) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
}
}
func (n ShiftLeft) Attributes() map[string]interface{} {
func (n *ShiftLeft) Attributes() map[string]interface{} {
return nil
}
func (n ShiftLeft) Position() *node.Position {
func (n *ShiftLeft) Position() *node.Position {
return n.position
}
func (n ShiftLeft) SetPosition(p *node.Position) node.Node {
func (n *ShiftLeft) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ShiftLeft) Comments() *[]comment.Comment {
func (n *ShiftLeft) Comments() *[]comment.Comment {
return n.comments
}
func (n ShiftLeft) SetComments(c *[]comment.Comment) node.Node {
func (n *ShiftLeft) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ShiftLeft) Walk(v node.Visitor) {
func (n *ShiftLeft) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
}
}
func (n ShiftRight) Attributes() map[string]interface{} {
func (n *ShiftRight) Attributes() map[string]interface{} {
return nil
}
func (n ShiftRight) Position() *node.Position {
func (n *ShiftRight) Position() *node.Position {
return n.position
}
func (n ShiftRight) SetPosition(p *node.Position) node.Node {
func (n *ShiftRight) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ShiftRight) Comments() *[]comment.Comment {
func (n *ShiftRight) Comments() *[]comment.Comment {
return n.comments
}
func (n ShiftRight) SetComments(c *[]comment.Comment) node.Node {
func (n *ShiftRight) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ShiftRight) Walk(v node.Visitor) {
func (n *ShiftRight) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewSmaller(Variable node.Node, Expression node.Node) *Smaller {
}
}
func (n Smaller) Attributes() map[string]interface{} {
func (n *Smaller) Attributes() map[string]interface{} {
return nil
}
func (n Smaller) Position() *node.Position {
func (n *Smaller) Position() *node.Position {
return n.position
}
func (n Smaller) SetPosition(p *node.Position) node.Node {
func (n *Smaller) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Smaller) Comments() *[]comment.Comment {
func (n *Smaller) Comments() *[]comment.Comment {
return n.comments
}
func (n Smaller) SetComments(c *[]comment.Comment) node.Node {
func (n *Smaller) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Smaller) Walk(v node.Visitor) {
func (n *Smaller) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewSmallerOrEqual(Variable node.Node, Expression node.Node) *SmallerOrEqual
}
}
func (n SmallerOrEqual) Attributes() map[string]interface{} {
func (n *SmallerOrEqual) Attributes() map[string]interface{} {
return nil
}
func (n SmallerOrEqual) Position() *node.Position {
func (n *SmallerOrEqual) Position() *node.Position {
return n.position
}
func (n SmallerOrEqual) SetPosition(p *node.Position) node.Node {
func (n *SmallerOrEqual) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n SmallerOrEqual) Comments() *[]comment.Comment {
func (n *SmallerOrEqual) Comments() *[]comment.Comment {
return n.comments
}
func (n SmallerOrEqual) SetComments(c *[]comment.Comment) node.Node {
func (n *SmallerOrEqual) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n SmallerOrEqual) Walk(v node.Visitor) {
func (n *SmallerOrEqual) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -20,29 +20,29 @@ func NewSpaceship(Variable node.Node, Expression node.Node) *Spaceship {
}
}
func (n Spaceship) Attributes() map[string]interface{} {
func (n *Spaceship) Attributes() map[string]interface{} {
return nil
}
func (n Spaceship) Position() *node.Position {
func (n *Spaceship) Position() *node.Position {
return n.position
}
func (n Spaceship) SetPosition(p *node.Position) node.Node {
func (n *Spaceship) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Spaceship) Comments() *[]comment.Comment {
func (n *Spaceship) Comments() *[]comment.Comment {
return n.comments
}
func (n Spaceship) SetComments(c *[]comment.Comment) node.Node {
func (n *Spaceship) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Spaceship) Walk(v node.Visitor) {
func (n *Spaceship) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewBitwiseNot(Expression node.Node) *BitwiseNot {
}
}
func (n BitwiseNot) Attributes() map[string]interface{} {
func (n *BitwiseNot) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseNot) Position() *node.Position {
func (n *BitwiseNot) Position() *node.Position {
return n.position
}
func (n BitwiseNot) SetPosition(p *node.Position) node.Node {
func (n *BitwiseNot) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BitwiseNot) Comments() *[]comment.Comment {
func (n *BitwiseNot) Comments() *[]comment.Comment {
return n.comments
}
func (n BitwiseNot) SetComments(c *[]comment.Comment) node.Node {
func (n *BitwiseNot) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BitwiseNot) Walk(v node.Visitor) {
func (n *BitwiseNot) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewBooleanNot(Expression node.Node) *BooleanNot {
}
}
func (n BooleanNot) Attributes() map[string]interface{} {
func (n *BooleanNot) Attributes() map[string]interface{} {
return nil
}
func (n BooleanNot) Position() *node.Position {
func (n *BooleanNot) Position() *node.Position {
return n.position
}
func (n BooleanNot) SetPosition(p *node.Position) node.Node {
func (n *BooleanNot) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n BooleanNot) Comments() *[]comment.Comment {
func (n *BooleanNot) Comments() *[]comment.Comment {
return n.comments
}
func (n BooleanNot) SetComments(c *[]comment.Comment) node.Node {
func (n *BooleanNot) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n BooleanNot) Walk(v node.Visitor) {
func (n *BooleanNot) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewCastArray(Expr node.Node) *CastArray {
}
}
func (n CastArray) Attributes() map[string]interface{} {
func (n *CastArray) Attributes() map[string]interface{} {
return nil
}
func (n CastArray) Position() *node.Position {
func (n *CastArray) Position() *node.Position {
return n.position
}
func (n CastArray) SetPosition(p *node.Position) node.Node {
func (n *CastArray) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n CastArray) Comments() *[]comment.Comment {
func (n *CastArray) Comments() *[]comment.Comment {
return n.comments
}
func (n CastArray) SetComments(c *[]comment.Comment) node.Node {
func (n *CastArray) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n CastArray) Walk(v node.Visitor) {
func (n *CastArray) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewCastBool(Expr node.Node) *CastBool {
}
}
func (n CastBool) Attributes() map[string]interface{} {
func (n *CastBool) Attributes() map[string]interface{} {
return nil
}
func (n CastBool) Position() *node.Position {
func (n *CastBool) Position() *node.Position {
return n.position
}
func (n CastBool) SetPosition(p *node.Position) node.Node {
func (n *CastBool) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n CastBool) Comments() *[]comment.Comment {
func (n *CastBool) Comments() *[]comment.Comment {
return n.comments
}
func (n CastBool) SetComments(c *[]comment.Comment) node.Node {
func (n *CastBool) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n CastBool) Walk(v node.Visitor) {
func (n *CastBool) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewCastDouble(Expr node.Node) *CastDouble {
}
}
func (n CastDouble) Attributes() map[string]interface{} {
func (n *CastDouble) Attributes() map[string]interface{} {
return nil
}
func (n CastDouble) Position() *node.Position {
func (n *CastDouble) Position() *node.Position {
return n.position
}
func (n CastDouble) SetPosition(p *node.Position) node.Node {
func (n *CastDouble) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n CastDouble) Comments() *[]comment.Comment {
func (n *CastDouble) Comments() *[]comment.Comment {
return n.comments
}
func (n CastDouble) SetComments(c *[]comment.Comment) node.Node {
func (n *CastDouble) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n CastDouble) Walk(v node.Visitor) {
func (n *CastDouble) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewCastInt(Expr node.Node) *CastInt {
}
}
func (n CastInt) Attributes() map[string]interface{} {
func (n *CastInt) Attributes() map[string]interface{} {
return nil
}
func (n CastInt) Position() *node.Position {
func (n *CastInt) Position() *node.Position {
return n.position
}
func (n CastInt) SetPosition(p *node.Position) node.Node {
func (n *CastInt) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n CastInt) Comments() *[]comment.Comment {
func (n *CastInt) Comments() *[]comment.Comment {
return n.comments
}
func (n CastInt) SetComments(c *[]comment.Comment) node.Node {
func (n *CastInt) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n CastInt) Walk(v node.Visitor) {
func (n *CastInt) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewCastObject(Expr node.Node) *CastObject {
}
}
func (n CastObject) Attributes() map[string]interface{} {
func (n *CastObject) Attributes() map[string]interface{} {
return nil
}
func (n CastObject) Position() *node.Position {
func (n *CastObject) Position() *node.Position {
return n.position
}
func (n CastObject) SetPosition(p *node.Position) node.Node {
func (n *CastObject) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n CastObject) Comments() *[]comment.Comment {
func (n *CastObject) Comments() *[]comment.Comment {
return n.comments
}
func (n CastObject) SetComments(c *[]comment.Comment) node.Node {
func (n *CastObject) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n CastObject) Walk(v node.Visitor) {
func (n *CastObject) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewCastString(Expr node.Node) *CastString {
}
}
func (n CastString) Attributes() map[string]interface{} {
func (n *CastString) Attributes() map[string]interface{} {
return nil
}
func (n CastString) Position() *node.Position {
func (n *CastString) Position() *node.Position {
return n.position
}
func (n CastString) SetPosition(p *node.Position) node.Node {
func (n *CastString) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n CastString) Comments() *[]comment.Comment {
func (n *CastString) Comments() *[]comment.Comment {
return n.comments
}
func (n CastString) SetComments(c *[]comment.Comment) node.Node {
func (n *CastString) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n CastString) Walk(v node.Visitor) {
func (n *CastString) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewCastUnset(Expr node.Node) *CastUnset {
}
}
func (n CastUnset) Attributes() map[string]interface{} {
func (n *CastUnset) Attributes() map[string]interface{} {
return nil
}
func (n CastUnset) Position() *node.Position {
func (n *CastUnset) Position() *node.Position {
return n.position
}
func (n CastUnset) SetPosition(p *node.Position) node.Node {
func (n *CastUnset) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n CastUnset) Comments() *[]comment.Comment {
func (n *CastUnset) Comments() *[]comment.Comment {
return n.comments
}
func (n CastUnset) SetComments(c *[]comment.Comment) node.Node {
func (n *CastUnset) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n CastUnset) Walk(v node.Visitor) {
func (n *CastUnset) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetc
}
}
func (n ClassConstFetch) Attributes() map[string]interface{} {
func (n *ClassConstFetch) Attributes() map[string]interface{} {
return nil
}
func (n ClassConstFetch) Position() *node.Position {
func (n *ClassConstFetch) Position() *node.Position {
return n.position
}
func (n ClassConstFetch) SetPosition(p *node.Position) node.Node {
func (n *ClassConstFetch) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ClassConstFetch) Comments() *[]comment.Comment {
func (n *ClassConstFetch) Comments() *[]comment.Comment {
return n.comments
}
func (n ClassConstFetch) SetComments(c *[]comment.Comment) node.Node {
func (n *ClassConstFetch) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ClassConstFetch) Walk(v node.Visitor) {
func (n *ClassConstFetch) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewClone(Expression node.Node) *Clone {
}
}
func (n Clone) Attributes() map[string]interface{} {
func (n *Clone) Attributes() map[string]interface{} {
return nil
}
func (n Clone) Position() *node.Position {
func (n *Clone) Position() *node.Position {
return n.position
}
func (n Clone) SetPosition(p *node.Position) node.Node {
func (n *Clone) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Clone) Comments() *[]comment.Comment {
func (n *Clone) Comments() *[]comment.Comment {
return n.comments
}
func (n Clone) SetComments(c *[]comment.Comment) node.Node {
func (n *Clone) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Clone) Walk(v node.Visitor) {
func (n *Clone) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -31,7 +31,7 @@ func NewClosure(Params []node.Node, Uses []node.Node, ReturnType node.Node, Stmt
}
}
func (n Closure) Attributes() map[string]interface{} {
func (n *Closure) Attributes() map[string]interface{} {
return map[string]interface{}{
"ReturnsRef": n.ReturnsRef,
"Static": n.Static,
@ -39,25 +39,25 @@ func (n Closure) Attributes() map[string]interface{} {
}
}
func (n Closure) Position() *node.Position {
func (n *Closure) Position() *node.Position {
return n.position
}
func (n Closure) SetPosition(p *node.Position) node.Node {
func (n *Closure) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Closure) Comments() *[]comment.Comment {
func (n *Closure) Comments() *[]comment.Comment {
return n.comments
}
func (n Closure) SetComments(c *[]comment.Comment) node.Node {
func (n *Closure) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Closure) Walk(v node.Visitor) {
func (n *Closure) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,31 +21,31 @@ func NewClusureUse(Variable node.Node, ByRef bool) *ClusureUse {
}
}
func (n ClusureUse) Attributes() map[string]interface{} {
func (n *ClusureUse) Attributes() map[string]interface{} {
return map[string]interface{}{
"ByRef": n.ByRef,
}
}
func (n ClusureUse) Position() *node.Position {
func (n *ClusureUse) Position() *node.Position {
return n.position
}
func (n ClusureUse) SetPosition(p *node.Position) node.Node {
func (n *ClusureUse) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ClusureUse) Comments() *[]comment.Comment {
func (n *ClusureUse) Comments() *[]comment.Comment {
return n.comments
}
func (n ClusureUse) SetComments(c *[]comment.Comment) node.Node {
func (n *ClusureUse) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ClusureUse) Walk(v node.Visitor) {
func (n *ClusureUse) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewConstFetch(Constant node.Node) *ConstFetch {
}
}
func (n ConstFetch) Attributes() map[string]interface{} {
func (n *ConstFetch) Attributes() map[string]interface{} {
return nil
}
func (n ConstFetch) Position() *node.Position {
func (n *ConstFetch) Position() *node.Position {
return n.position
}
func (n ConstFetch) SetPosition(p *node.Position) node.Node {
func (n *ConstFetch) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ConstFetch) Comments() *[]comment.Comment {
func (n *ConstFetch) Comments() *[]comment.Comment {
return n.comments
}
func (n ConstFetch) SetComments(c *[]comment.Comment) node.Node {
func (n *ConstFetch) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ConstFetch) Walk(v node.Visitor) {
func (n *ConstFetch) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewEmpty(Expression node.Node) *Empty {
}
}
func (n Empty) Attributes() map[string]interface{} {
func (n *Empty) Attributes() map[string]interface{} {
return nil
}
func (n Empty) Position() *node.Position {
func (n *Empty) Position() *node.Position {
return n.position
}
func (n Empty) SetPosition(p *node.Position) node.Node {
func (n *Empty) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Empty) Comments() *[]comment.Comment {
func (n *Empty) Comments() *[]comment.Comment {
return n.comments
}
func (n Empty) SetComments(c *[]comment.Comment) node.Node {
func (n *Empty) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Empty) Walk(v node.Visitor) {
func (n *Empty) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewErrorSuppress(Expression node.Node) *ErrorSuppress {
}
}
func (n ErrorSuppress) Attributes() map[string]interface{} {
func (n *ErrorSuppress) Attributes() map[string]interface{} {
return nil
}
func (n ErrorSuppress) Position() *node.Position {
func (n *ErrorSuppress) Position() *node.Position {
return n.position
}
func (n ErrorSuppress) SetPosition(p *node.Position) node.Node {
func (n *ErrorSuppress) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ErrorSuppress) Comments() *[]comment.Comment {
func (n *ErrorSuppress) Comments() *[]comment.Comment {
return n.comments
}
func (n ErrorSuppress) SetComments(c *[]comment.Comment) node.Node {
func (n *ErrorSuppress) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ErrorSuppress) Walk(v node.Visitor) {
func (n *ErrorSuppress) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewEval(Expression node.Node) *Eval {
}
}
func (n Eval) Attributes() map[string]interface{} {
func (n *Eval) Attributes() map[string]interface{} {
return nil
}
func (n Eval) Position() *node.Position {
func (n *Eval) Position() *node.Position {
return n.position
}
func (n Eval) SetPosition(p *node.Position) node.Node {
func (n *Eval) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Eval) Comments() *[]comment.Comment {
func (n *Eval) Comments() *[]comment.Comment {
return n.comments
}
func (n Eval) SetComments(c *[]comment.Comment) node.Node {
func (n *Eval) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Eval) Walk(v node.Visitor) {
func (n *Eval) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,31 +21,31 @@ func NewExit(Expr node.Node, IsDie bool) *Exit {
}
}
func (n Exit) Attributes() map[string]interface{} {
func (n *Exit) Attributes() map[string]interface{} {
return map[string]interface{}{
"IsDie": n.IsDie,
}
}
func (n Exit) Position() *node.Position {
func (n *Exit) Position() *node.Position {
return n.position
}
func (n Exit) SetPosition(p *node.Position) node.Node {
func (n *Exit) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Exit) Comments() *[]comment.Comment {
func (n *Exit) Comments() *[]comment.Comment {
return n.comments
}
func (n Exit) SetComments(c *[]comment.Comment) node.Node {
func (n *Exit) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Exit) Walk(v node.Visitor) {
func (n *Exit) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewFunctionCall(Function node.Node, Arguments []node.Node) *FunctionCall {
}
}
func (n FunctionCall) Attributes() map[string]interface{} {
func (n *FunctionCall) Attributes() map[string]interface{} {
return nil
}
func (n FunctionCall) Position() *node.Position {
func (n *FunctionCall) Position() *node.Position {
return n.position
}
func (n FunctionCall) SetPosition(p *node.Position) node.Node {
func (n *FunctionCall) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n FunctionCall) Comments() *[]comment.Comment {
func (n *FunctionCall) Comments() *[]comment.Comment {
return n.comments
}
func (n FunctionCall) SetComments(c *[]comment.Comment) node.Node {
func (n *FunctionCall) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n FunctionCall) Walk(v node.Visitor) {
func (n *FunctionCall) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewInclude(Expression node.Node) *Include {
}
}
func (n Include) Attributes() map[string]interface{} {
func (n *Include) Attributes() map[string]interface{} {
return nil
}
func (n Include) Position() *node.Position {
func (n *Include) Position() *node.Position {
return n.position
}
func (n Include) SetPosition(p *node.Position) node.Node {
func (n *Include) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Include) Comments() *[]comment.Comment {
func (n *Include) Comments() *[]comment.Comment {
return n.comments
}
func (n Include) SetComments(c *[]comment.Comment) node.Node {
func (n *Include) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Include) Walk(v node.Visitor) {
func (n *Include) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewIncludeOnce(Expression node.Node) *IncludeOnce {
}
}
func (n IncludeOnce) Attributes() map[string]interface{} {
func (n *IncludeOnce) Attributes() map[string]interface{} {
return nil
}
func (n IncludeOnce) Position() *node.Position {
func (n *IncludeOnce) Position() *node.Position {
return n.position
}
func (n IncludeOnce) SetPosition(p *node.Position) node.Node {
func (n *IncludeOnce) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n IncludeOnce) Comments() *[]comment.Comment {
func (n *IncludeOnce) Comments() *[]comment.Comment {
return n.comments
}
func (n IncludeOnce) SetComments(c *[]comment.Comment) node.Node {
func (n *IncludeOnce) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n IncludeOnce) Walk(v node.Visitor) {
func (n *IncludeOnce) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewInstanceOf(Expr node.Node, Class node.Node) *InstanceOf {
}
}
func (n InstanceOf) Attributes() map[string]interface{} {
func (n *InstanceOf) Attributes() map[string]interface{} {
return nil
}
func (n InstanceOf) Position() *node.Position {
func (n *InstanceOf) Position() *node.Position {
return n.position
}
func (n InstanceOf) SetPosition(p *node.Position) node.Node {
func (n *InstanceOf) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n InstanceOf) Comments() *[]comment.Comment {
func (n *InstanceOf) Comments() *[]comment.Comment {
return n.comments
}
func (n InstanceOf) SetComments(c *[]comment.Comment) node.Node {
func (n *InstanceOf) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n InstanceOf) Walk(v node.Visitor) {
func (n *InstanceOf) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewIsset(Variables []node.Node) *Isset {
}
}
func (n Isset) Attributes() map[string]interface{} {
func (n *Isset) Attributes() map[string]interface{} {
return nil
}
func (n Isset) Position() *node.Position {
func (n *Isset) Position() *node.Position {
return n.position
}
func (n Isset) SetPosition(p *node.Position) node.Node {
func (n *Isset) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Isset) Comments() *[]comment.Comment {
func (n *Isset) Comments() *[]comment.Comment {
return n.comments
}
func (n Isset) SetComments(c *[]comment.Comment) node.Node {
func (n *Isset) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Isset) Walk(v node.Visitor) {
func (n *Isset) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewList(Items []node.Node) *List {
}
}
func (n List) Attributes() map[string]interface{} {
func (n *List) Attributes() map[string]interface{} {
return nil
}
func (n List) Position() *node.Position {
func (n *List) Position() *node.Position {
return n.position
}
func (n List) SetPosition(p *node.Position) node.Node {
func (n *List) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n List) Comments() *[]comment.Comment {
func (n *List) Comments() *[]comment.Comment {
return n.comments
}
func (n List) SetComments(c *[]comment.Comment) node.Node {
func (n *List) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n List) Walk(v node.Visitor) {
func (n *List) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -23,29 +23,29 @@ func NewMethodCall(Variable node.Node, Method node.Node, Arguments []node.Node)
}
}
func (n MethodCall) Attributes() map[string]interface{} {
func (n *MethodCall) Attributes() map[string]interface{} {
return nil
}
func (n MethodCall) Position() *node.Position {
func (n *MethodCall) Position() *node.Position {
return n.position
}
func (n MethodCall) SetPosition(p *node.Position) node.Node {
func (n *MethodCall) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n MethodCall) Comments() *[]comment.Comment {
func (n *MethodCall) Comments() *[]comment.Comment {
return n.comments
}
func (n MethodCall) SetComments(c *[]comment.Comment) node.Node {
func (n *MethodCall) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n MethodCall) Walk(v node.Visitor) {
func (n *MethodCall) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewNew(Class node.Node, Arguments []node.Node) *New {
}
}
func (n New) Attributes() map[string]interface{} {
func (n *New) Attributes() map[string]interface{} {
return nil
}
func (n New) Position() *node.Position {
func (n *New) Position() *node.Position {
return n.position
}
func (n New) SetPosition(p *node.Position) node.Node {
func (n *New) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n New) Comments() *[]comment.Comment {
func (n *New) Comments() *[]comment.Comment {
return n.comments
}
func (n New) SetComments(c *[]comment.Comment) node.Node {
func (n *New) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n New) Walk(v node.Visitor) {
func (n *New) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewPostDec(Variable node.Node) *PostDec {
}
}
func (n PostDec) Attributes() map[string]interface{} {
func (n *PostDec) Attributes() map[string]interface{} {
return nil
}
func (n PostDec) Position() *node.Position {
func (n *PostDec) Position() *node.Position {
return n.position
}
func (n PostDec) SetPosition(p *node.Position) node.Node {
func (n *PostDec) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n PostDec) Comments() *[]comment.Comment {
func (n *PostDec) Comments() *[]comment.Comment {
return n.comments
}
func (n PostDec) SetComments(c *[]comment.Comment) node.Node {
func (n *PostDec) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n PostDec) Walk(v node.Visitor) {
func (n *PostDec) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewPostInc(Variable node.Node) *PostInc {
}
}
func (n PostInc) Attributes() map[string]interface{} {
func (n *PostInc) Attributes() map[string]interface{} {
return nil
}
func (n PostInc) Position() *node.Position {
func (n *PostInc) Position() *node.Position {
return n.position
}
func (n PostInc) SetPosition(p *node.Position) node.Node {
func (n *PostInc) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n PostInc) Comments() *[]comment.Comment {
func (n *PostInc) Comments() *[]comment.Comment {
return n.comments
}
func (n PostInc) SetComments(c *[]comment.Comment) node.Node {
func (n *PostInc) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n PostInc) Walk(v node.Visitor) {
func (n *PostInc) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewPreDec(Variable node.Node) *PreDec {
}
}
func (n PreDec) Attributes() map[string]interface{} {
func (n *PreDec) Attributes() map[string]interface{} {
return nil
}
func (n PreDec) Position() *node.Position {
func (n *PreDec) Position() *node.Position {
return n.position
}
func (n PreDec) SetPosition(p *node.Position) node.Node {
func (n *PreDec) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n PreDec) Comments() *[]comment.Comment {
func (n *PreDec) Comments() *[]comment.Comment {
return n.comments
}
func (n PreDec) SetComments(c *[]comment.Comment) node.Node {
func (n *PreDec) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n PreDec) Walk(v node.Visitor) {
func (n *PreDec) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewPreInc(Variable node.Node) *PreInc {
}
}
func (n PreInc) Attributes() map[string]interface{} {
func (n *PreInc) Attributes() map[string]interface{} {
return nil
}
func (n PreInc) Position() *node.Position {
func (n *PreInc) Position() *node.Position {
return n.position
}
func (n PreInc) SetPosition(p *node.Position) node.Node {
func (n *PreInc) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n PreInc) Comments() *[]comment.Comment {
func (n *PreInc) Comments() *[]comment.Comment {
return n.comments
}
func (n PreInc) SetComments(c *[]comment.Comment) node.Node {
func (n *PreInc) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n PreInc) Walk(v node.Visitor) {
func (n *PreInc) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewPrint(Expression node.Node) *Print {
}
}
func (n Print) Attributes() map[string]interface{} {
func (n *Print) Attributes() map[string]interface{} {
return nil
}
func (n Print) Position() *node.Position {
func (n *Print) Position() *node.Position {
return n.position
}
func (n Print) SetPosition(p *node.Position) node.Node {
func (n *Print) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Print) Comments() *[]comment.Comment {
func (n *Print) Comments() *[]comment.Comment {
return n.comments
}
func (n Print) SetComments(c *[]comment.Comment) node.Node {
func (n *Print) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Print) Walk(v node.Visitor) {
func (n *Print) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch {
}
}
func (n PropertyFetch) Attributes() map[string]interface{} {
func (n *PropertyFetch) Attributes() map[string]interface{} {
return nil
}
func (n PropertyFetch) Position() *node.Position {
func (n *PropertyFetch) Position() *node.Position {
return n.position
}
func (n PropertyFetch) SetPosition(p *node.Position) node.Node {
func (n *PropertyFetch) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n PropertyFetch) Comments() *[]comment.Comment {
func (n *PropertyFetch) Comments() *[]comment.Comment {
return n.comments
}
func (n PropertyFetch) SetComments(c *[]comment.Comment) node.Node {
func (n *PropertyFetch) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n PropertyFetch) Walk(v node.Visitor) {
func (n *PropertyFetch) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewRequire(Expression node.Node) *Require {
}
}
func (n Require) Attributes() map[string]interface{} {
func (n *Require) Attributes() map[string]interface{} {
return nil
}
func (n Require) Position() *node.Position {
func (n *Require) Position() *node.Position {
return n.position
}
func (n Require) SetPosition(p *node.Position) node.Node {
func (n *Require) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Require) Comments() *[]comment.Comment {
func (n *Require) Comments() *[]comment.Comment {
return n.comments
}
func (n Require) SetComments(c *[]comment.Comment) node.Node {
func (n *Require) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Require) Walk(v node.Visitor) {
func (n *Require) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewRequireOnce(Expression node.Node) *RequireOnce {
}
}
func (n RequireOnce) Attributes() map[string]interface{} {
func (n *RequireOnce) Attributes() map[string]interface{} {
return nil
}
func (n RequireOnce) Position() *node.Position {
func (n *RequireOnce) Position() *node.Position {
return n.position
}
func (n RequireOnce) SetPosition(p *node.Position) node.Node {
func (n *RequireOnce) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n RequireOnce) Comments() *[]comment.Comment {
func (n *RequireOnce) Comments() *[]comment.Comment {
return n.comments
}
func (n RequireOnce) SetComments(c *[]comment.Comment) node.Node {
func (n *RequireOnce) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n RequireOnce) Walk(v node.Visitor) {
func (n *RequireOnce) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewShellExec(Parts []node.Node) *ShellExec {
}
}
func (n ShellExec) Attributes() map[string]interface{} {
func (n *ShellExec) Attributes() map[string]interface{} {
return nil
}
func (n ShellExec) Position() *node.Position {
func (n *ShellExec) Position() *node.Position {
return n.position
}
func (n ShellExec) SetPosition(p *node.Position) node.Node {
func (n *ShellExec) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ShellExec) Comments() *[]comment.Comment {
func (n *ShellExec) Comments() *[]comment.Comment {
return n.comments
}
func (n ShellExec) SetComments(c *[]comment.Comment) node.Node {
func (n *ShellExec) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ShellExec) Walk(v node.Visitor) {
func (n *ShellExec) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewShortArray(Items []node.Node) *ShortArray {
}
}
func (n ShortArray) Attributes() map[string]interface{} {
func (n *ShortArray) Attributes() map[string]interface{} {
return nil
}
func (n ShortArray) Position() *node.Position {
func (n *ShortArray) Position() *node.Position {
return n.position
}
func (n ShortArray) SetPosition(p *node.Position) node.Node {
func (n *ShortArray) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ShortArray) Comments() *[]comment.Comment {
func (n *ShortArray) Comments() *[]comment.Comment {
return n.comments
}
func (n ShortArray) SetComments(c *[]comment.Comment) node.Node {
func (n *ShortArray) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ShortArray) Walk(v node.Visitor) {
func (n *ShortArray) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewShortList(Items []node.Node) *ShortList {
}
}
func (n ShortList) Attributes() map[string]interface{} {
func (n *ShortList) Attributes() map[string]interface{} {
return nil
}
func (n ShortList) Position() *node.Position {
func (n *ShortList) Position() *node.Position {
return n.position
}
func (n ShortList) SetPosition(p *node.Position) node.Node {
func (n *ShortList) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n ShortList) Comments() *[]comment.Comment {
func (n *ShortList) Comments() *[]comment.Comment {
return n.comments
}
func (n ShortList) SetComments(c *[]comment.Comment) node.Node {
func (n *ShortList) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n ShortList) Walk(v node.Visitor) {
func (n *ShortList) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -23,29 +23,29 @@ func NewStaticCall(Class node.Node, Call node.Node, Arguments []node.Node) *Stat
}
}
func (n StaticCall) Attributes() map[string]interface{} {
func (n *StaticCall) Attributes() map[string]interface{} {
return nil
}
func (n StaticCall) Position() *node.Position {
func (n *StaticCall) Position() *node.Position {
return n.position
}
func (n StaticCall) SetPosition(p *node.Position) node.Node {
func (n *StaticCall) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n StaticCall) Comments() *[]comment.Comment {
func (n *StaticCall) Comments() *[]comment.Comment {
return n.comments
}
func (n StaticCall) SetComments(c *[]comment.Comment) node.Node {
func (n *StaticCall) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n StaticCall) Walk(v node.Visitor) {
func (n *StaticCall) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewStaticPropertyFetch(Class node.Node, Property node.Node) *StaticProperty
}
}
func (n StaticPropertyFetch) Attributes() map[string]interface{} {
func (n *StaticPropertyFetch) Attributes() map[string]interface{} {
return nil
}
func (n StaticPropertyFetch) Position() *node.Position {
func (n *StaticPropertyFetch) Position() *node.Position {
return n.position
}
func (n StaticPropertyFetch) SetPosition(p *node.Position) node.Node {
func (n *StaticPropertyFetch) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n StaticPropertyFetch) Comments() *[]comment.Comment {
func (n *StaticPropertyFetch) Comments() *[]comment.Comment {
return n.comments
}
func (n StaticPropertyFetch) SetComments(c *[]comment.Comment) node.Node {
func (n *StaticPropertyFetch) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n StaticPropertyFetch) Walk(v node.Visitor) {
func (n *StaticPropertyFetch) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -23,29 +23,29 @@ func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) *Terna
}
}
func (n Ternary) Attributes() map[string]interface{} {
func (n *Ternary) Attributes() map[string]interface{} {
return nil
}
func (n Ternary) Position() *node.Position {
func (n *Ternary) Position() *node.Position {
return n.position
}
func (n Ternary) SetPosition(p *node.Position) node.Node {
func (n *Ternary) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Ternary) Comments() *[]comment.Comment {
func (n *Ternary) Comments() *[]comment.Comment {
return n.comments
}
func (n Ternary) SetComments(c *[]comment.Comment) node.Node {
func (n *Ternary) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Ternary) Walk(v node.Visitor) {
func (n *Ternary) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewUnaryMinus(Expression node.Node) *UnaryMinus {
}
}
func (n UnaryMinus) Attributes() map[string]interface{} {
func (n *UnaryMinus) Attributes() map[string]interface{} {
return nil
}
func (n UnaryMinus) Position() *node.Position {
func (n *UnaryMinus) Position() *node.Position {
return n.position
}
func (n UnaryMinus) SetPosition(p *node.Position) node.Node {
func (n *UnaryMinus) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n UnaryMinus) Comments() *[]comment.Comment {
func (n *UnaryMinus) Comments() *[]comment.Comment {
return n.comments
}
func (n UnaryMinus) SetComments(c *[]comment.Comment) node.Node {
func (n *UnaryMinus) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n UnaryMinus) Walk(v node.Visitor) {
func (n *UnaryMinus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewUnaryPlus(Expression node.Node) *UnaryPlus {
}
}
func (n UnaryPlus) Attributes() map[string]interface{} {
func (n *UnaryPlus) Attributes() map[string]interface{} {
return nil
}
func (n UnaryPlus) Position() *node.Position {
func (n *UnaryPlus) Position() *node.Position {
return n.position
}
func (n UnaryPlus) SetPosition(p *node.Position) node.Node {
func (n *UnaryPlus) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n UnaryPlus) Comments() *[]comment.Comment {
func (n *UnaryPlus) Comments() *[]comment.Comment {
return n.comments
}
func (n UnaryPlus) SetComments(c *[]comment.Comment) node.Node {
func (n *UnaryPlus) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n UnaryPlus) Walk(v node.Visitor) {
func (n *UnaryPlus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewVariable(VarName node.Node) *Variable {
}
}
func (n Variable) Attributes() map[string]interface{} {
func (n *Variable) Attributes() map[string]interface{} {
return nil
}
func (n Variable) Position() *node.Position {
func (n *Variable) Position() *node.Position {
return n.position
}
func (n Variable) SetPosition(p *node.Position) node.Node {
func (n *Variable) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Variable) Comments() *[]comment.Comment {
func (n *Variable) Comments() *[]comment.Comment {
return n.comments
}
func (n Variable) SetComments(c *[]comment.Comment) node.Node {
func (n *Variable) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Variable) Walk(v node.Visitor) {
func (n *Variable) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -21,29 +21,29 @@ func NewYield(Key node.Node, Value node.Node) *Yield {
}
}
func (n Yield) Attributes() map[string]interface{} {
func (n *Yield) Attributes() map[string]interface{} {
return nil
}
func (n Yield) Position() *node.Position {
func (n *Yield) Position() *node.Position {
return n.position
}
func (n Yield) SetPosition(p *node.Position) node.Node {
func (n *Yield) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Yield) Comments() *[]comment.Comment {
func (n *Yield) Comments() *[]comment.Comment {
return n.comments
}
func (n Yield) SetComments(c *[]comment.Comment) node.Node {
func (n *Yield) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Yield) Walk(v node.Visitor) {
func (n *Yield) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewYieldFrom(Expression node.Node) *YieldFrom {
}
}
func (n YieldFrom) Attributes() map[string]interface{} {
func (n *YieldFrom) Attributes() map[string]interface{} {
return nil
}
func (n YieldFrom) Position() *node.Position {
func (n *YieldFrom) Position() *node.Position {
return n.position
}
func (n YieldFrom) SetPosition(p *node.Position) node.Node {
func (n *YieldFrom) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n YieldFrom) Comments() *[]comment.Comment {
func (n *YieldFrom) Comments() *[]comment.Comment {
return n.comments
}
func (n YieldFrom) SetComments(c *[]comment.Comment) node.Node {
func (n *YieldFrom) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n YieldFrom) Walk(v node.Visitor) {
func (n *YieldFrom) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -16,31 +16,31 @@ func NewIdentifier(Value string) *Identifier {
}
}
func (n Identifier) Attributes() map[string]interface{} {
func (n *Identifier) Attributes() map[string]interface{} {
return map[string]interface{}{
"Value": n.Value,
}
}
func (n Identifier) Position() *Position {
func (n *Identifier) Position() *Position {
return n.position
}
func (n Identifier) SetPosition(p *Position) Node {
func (n *Identifier) SetPosition(p *Position) Node {
n.position = p
return n
}
func (n Identifier) Comments() *[]comment.Comment {
func (n *Identifier) Comments() *[]comment.Comment {
return n.comments
}
func (n Identifier) SetComments(c *[]comment.Comment) Node {
func (n *Identifier) SetComments(c *[]comment.Comment) Node {
n.comments = c
return n
}
func (n Identifier) Walk(v Visitor) {
func (n *Identifier) Walk(v Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewName(Parts []node.Node) *Name {
}
}
func (n Name) Attributes() map[string]interface{} {
func (n *Name) Attributes() map[string]interface{} {
return nil
}
func (n Name) Position() *node.Position {
func (n *Name) Position() *node.Position {
return n.position
}
func (n Name) SetPosition(p *node.Position) node.Node {
func (n *Name) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Name) Comments() *[]comment.Comment {
func (n *Name) Comments() *[]comment.Comment {
return n.comments
}
func (n Name) SetComments(c *[]comment.Comment) node.Node {
func (n *Name) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Name) Walk(v node.Visitor) {
func (n *Name) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,31 +19,31 @@ func NewNamePart(Value string) *NamePart {
}
}
func (n NamePart) Attributes() map[string]interface{} {
func (n *NamePart) Attributes() map[string]interface{} {
return map[string]interface{}{
"Value": n.Value,
}
}
func (n NamePart) Position() *node.Position {
func (n *NamePart) Position() *node.Position {
return n.position
}
func (n NamePart) SetPosition(p *node.Position) node.Node {
func (n *NamePart) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n NamePart) Comments() *[]comment.Comment {
func (n *NamePart) Comments() *[]comment.Comment {
return n.comments
}
func (n NamePart) SetComments(c *[]comment.Comment) node.Node {
func (n *NamePart) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n NamePart) Walk(v node.Visitor) {
func (n *NamePart) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -16,29 +16,29 @@ func NewNullable(Expression Node) *Nullable {
}
}
func (n Nullable) Attributes() map[string]interface{} {
func (n *Nullable) Attributes() map[string]interface{} {
return nil
}
func (n Nullable) Position() *Position {
func (n *Nullable) Position() *Position {
return n.position
}
func (n Nullable) SetPosition(p *Position) Node {
func (n *Nullable) SetPosition(p *Position) Node {
n.position = p
return n
}
func (n Nullable) Comments() *[]comment.Comment {
func (n *Nullable) Comments() *[]comment.Comment {
return n.comments
}
func (n Nullable) SetComments(c *[]comment.Comment) Node {
func (n *Nullable) SetComments(c *[]comment.Comment) Node {
n.comments = c
return n
}
func (n Nullable) Walk(v Visitor) {
func (n *Nullable) Walk(v Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -24,32 +24,32 @@ func NewParameter(VariableType Node, Variable Node, DefaultValue Node, ByRef boo
}
}
func (n Parameter) Attributes() map[string]interface{} {
func (n *Parameter) Attributes() map[string]interface{} {
return map[string]interface{}{
"ByRef": n.ByRef,
"Variadic": n.Variadic,
}
}
func (n Parameter) Position() *Position {
func (n *Parameter) Position() *Position {
return n.position
}
func (n Parameter) SetPosition(p *Position) Node {
func (n *Parameter) SetPosition(p *Position) Node {
n.position = p
return n
}
func (n Parameter) Comments() *[]comment.Comment {
func (n *Parameter) Comments() *[]comment.Comment {
return n.comments
}
func (n Parameter) SetComments(c *[]comment.Comment) Node {
func (n *Parameter) SetComments(c *[]comment.Comment) Node {
n.comments = c
return n
}
func (n Parameter) Walk(v Visitor) {
func (n *Parameter) Walk(v Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,31 +19,31 @@ func NewDnumber(Value string) *Dnumber {
}
}
func (n Dnumber) Attributes() map[string]interface{} {
func (n *Dnumber) Attributes() map[string]interface{} {
return map[string]interface{}{
"Value": n.Value,
}
}
func (n Dnumber) Position() *node.Position {
func (n *Dnumber) Position() *node.Position {
return n.position
}
func (n Dnumber) SetPosition(p *node.Position) node.Node {
func (n *Dnumber) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Dnumber) Comments() *[]comment.Comment {
func (n *Dnumber) Comments() *[]comment.Comment {
return n.comments
}
func (n Dnumber) SetComments(c *[]comment.Comment) node.Node {
func (n *Dnumber) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Dnumber) Walk(v node.Visitor) {
func (n *Dnumber) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,29 +19,29 @@ func NewEncapsed(Parts []node.Node) *Encapsed {
}
}
func (n Encapsed) Attributes() map[string]interface{} {
func (n *Encapsed) Attributes() map[string]interface{} {
return nil
}
func (n Encapsed) Position() *node.Position {
func (n *Encapsed) Position() *node.Position {
return n.position
}
func (n Encapsed) SetPosition(p *node.Position) node.Node {
func (n *Encapsed) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Encapsed) Comments() *[]comment.Comment {
func (n *Encapsed) Comments() *[]comment.Comment {
return n.comments
}
func (n Encapsed) SetComments(c *[]comment.Comment) node.Node {
func (n *Encapsed) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Encapsed) Walk(v node.Visitor) {
func (n *Encapsed) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,31 +19,31 @@ func NewEncapsedStringPart(Value string) *EncapsedStringPart {
}
}
func (n EncapsedStringPart) Attributes() map[string]interface{} {
func (n *EncapsedStringPart) Attributes() map[string]interface{} {
return map[string]interface{}{
"Value": n.Value,
}
}
func (n EncapsedStringPart) Position() *node.Position {
func (n *EncapsedStringPart) Position() *node.Position {
return n.position
}
func (n EncapsedStringPart) SetPosition(p *node.Position) node.Node {
func (n *EncapsedStringPart) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n EncapsedStringPart) Comments() *[]comment.Comment {
func (n *EncapsedStringPart) Comments() *[]comment.Comment {
return n.comments
}
func (n EncapsedStringPart) SetComments(c *[]comment.Comment) node.Node {
func (n *EncapsedStringPart) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n EncapsedStringPart) Walk(v node.Visitor) {
func (n *EncapsedStringPart) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,31 +19,31 @@ func NewLnumber(Value string) *Lnumber {
}
}
func (n Lnumber) Attributes() map[string]interface{} {
func (n *Lnumber) Attributes() map[string]interface{} {
return map[string]interface{}{
"Value": n.Value,
}
}
func (n Lnumber) Position() *node.Position {
func (n *Lnumber) Position() *node.Position {
return n.position
}
func (n Lnumber) SetPosition(p *node.Position) node.Node {
func (n *Lnumber) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n Lnumber) Comments() *[]comment.Comment {
func (n *Lnumber) Comments() *[]comment.Comment {
return n.comments
}
func (n Lnumber) SetComments(c *[]comment.Comment) node.Node {
func (n *Lnumber) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n Lnumber) Walk(v node.Visitor) {
func (n *Lnumber) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

View File

@ -19,31 +19,31 @@ func NewMagicConstant(Value string) *MagicConstant {
}
}
func (n MagicConstant) Attributes() map[string]interface{} {
func (n *MagicConstant) Attributes() map[string]interface{} {
return map[string]interface{}{
"Value": n.Value,
}
}
func (n MagicConstant) Position() *node.Position {
func (n *MagicConstant) Position() *node.Position {
return n.position
}
func (n MagicConstant) SetPosition(p *node.Position) node.Node {
func (n *MagicConstant) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n MagicConstant) Comments() *[]comment.Comment {
func (n *MagicConstant) Comments() *[]comment.Comment {
return n.comments
}
func (n MagicConstant) SetComments(c *[]comment.Comment) node.Node {
func (n *MagicConstant) SetComments(c *[]comment.Comment) node.Node {
n.comments = c
return n
}
func (n MagicConstant) Walk(v node.Visitor) {
func (n *MagicConstant) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}

Some files were not shown because too many files have changed in this diff Show More