node attributes

This commit is contained in:
vadim
2017-12-29 17:20:24 +02:00
parent 722fa00fa3
commit 70a4ef18ab
159 changed files with 2214 additions and 1682 deletions

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n BitwiseAnd) Name() string {
return "BitwiseAnd"
}
type BitwiseAnd struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewBitwiseAnd(variable node.Node, expression node.Node) node.Node {
}
}
func (n BitwiseAnd) Name() string {
return "BitwiseAnd"
}
func (n BitwiseAnd) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseAnd) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -18,6 +18,10 @@ func NewBitwiseOr(variable node.Node, expression node.Node) node.Node {
}
}
func (n BitwiseOr) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseOr) Name() string {
return "BitwiseOr"
}

View File

@@ -18,6 +18,10 @@ func NewBitwiseXor(variable node.Node, expression node.Node) node.Node {
}
}
func (n BitwiseXor) Attributes() map[string]interface{} {
return nil
}
func (n BitwiseXor) Name() string {
return "BitwiseXor"
}

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n BooleanAnd) Name() string {
return "BooleanAnd"
}
type BooleanAnd struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewBooleanAnd(variable node.Node, expression node.Node) node.Node {
}
}
func (n BooleanAnd) Name() string {
return "BooleanAnd"
}
func (n BooleanAnd) Attributes() map[string]interface{} {
return nil
}
func (n BooleanAnd) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n BooleanOr) Name() string {
return "BooleanOr"
}
type BooleanOr struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewBooleanOr(variable node.Node, expression node.Node) node.Node {
}
}
func (n BooleanOr) Name() string {
return "BooleanOr"
}
func (n BooleanOr) Attributes() map[string]interface{} {
return nil
}
func (n BooleanOr) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Coalesce) Name() string {
return "Coalesce"
}
type Coalesce struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewCoalesce(variable node.Node, expression node.Node) node.Node {
}
}
func (n Coalesce) Name() string {
return "Coalesce"
}
func (n Coalesce) Attributes() map[string]interface{} {
return nil
}
func (n Coalesce) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Concat) Name() string {
return "Concat"
}
type Concat struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewConcat(variable node.Node, expression node.Node) node.Node {
}
}
func (n Concat) Name() string {
return "Concat"
}
func (n Concat) Attributes() map[string]interface{} {
return nil
}
func (n Concat) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Div) Name() string {
return "Div"
}
type Div struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewDiv(variable node.Node, expression node.Node) node.Node {
}
}
func (n Div) Name() string {
return "Div"
}
func (n Div) Attributes() map[string]interface{} {
return nil
}
func (n Div) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Equal) Name() string {
return "Equal"
}
type Equal struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewEqual(variable node.Node, expression node.Node) node.Node {
}
}
func (n Equal) Name() string {
return "Equal"
}
func (n Equal) Attributes() map[string]interface{} {
return nil
}
func (n Equal) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Greater) Name() string {
return "Greater"
}
type Greater struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewGreater(variable node.Node, expression node.Node) node.Node {
}
}
func (n Greater) Name() string {
return "Greater"
}
func (n Greater) Attributes() map[string]interface{} {
return nil
}
func (n Greater) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n GreaterOrEqual) Name() string {
return "GreaterOrEqual"
}
type GreaterOrEqual struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewGreaterOrEqual(variable node.Node, expression node.Node) node.Node {
}
}
func (n GreaterOrEqual) Name() string {
return "GreaterOrEqual"
}
func (n GreaterOrEqual) Attributes() map[string]interface{} {
return nil
}
func (n GreaterOrEqual) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Identical) Name() string {
return "Identical"
}
type Identical struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewIdentical(variable node.Node, expression node.Node) node.Node {
}
}
func (n Identical) Name() string {
return "Identical"
}
func (n Identical) Attributes() map[string]interface{} {
return nil
}
func (n Identical) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n LogicalAnd) Name() string {
return "LogicalAnd"
}
type LogicalAnd struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewLogicalAnd(variable node.Node, expression node.Node) node.Node {
}
}
func (n LogicalAnd) Name() string {
return "LogicalAnd"
}
func (n LogicalAnd) Attributes() map[string]interface{} {
return nil
}
func (n LogicalAnd) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n LogicalOr) Name() string {
return "LogicalOr"
}
type LogicalOr struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewLogicalOr(variable node.Node, expression node.Node) node.Node {
}
}
func (n LogicalOr) Name() string {
return "LogicalOr"
}
func (n LogicalOr) Attributes() map[string]interface{} {
return nil
}
func (n LogicalOr) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n LogicalXor) Name() string {
return "LogicalXor"
}
type LogicalXor struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewLogicalXor(variable node.Node, expression node.Node) node.Node {
}
}
func (n LogicalXor) Name() string {
return "LogicalXor"
}
func (n LogicalXor) Attributes() map[string]interface{} {
return nil
}
func (n LogicalXor) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Minus) Name() string {
return "Minus"
}
type Minus struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewMinus(variable node.Node, expression node.Node) node.Node {
}
}
func (n Minus) Name() string {
return "Minus"
}
func (n Minus) Attributes() map[string]interface{} {
return nil
}
func (n Minus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Mod) Name() string {
return "Mod"
}
type Mod struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewMod(variable node.Node, expression node.Node) node.Node {
}
}
func (n Mod) Name() string {
return "Mod"
}
func (n Mod) Attributes() map[string]interface{} {
return nil
}
func (n Mod) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Mul) Name() string {
return "Mul"
}
type Mul struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewMul(variable node.Node, expression node.Node) node.Node {
}
}
func (n Mul) Name() string {
return "Mul"
}
func (n Mul) Attributes() map[string]interface{} {
return nil
}
func (n Mul) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n NotEqual) Name() string {
return "NotEqual"
}
type NotEqual struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewNotEqual(variable node.Node, expression node.Node) node.Node {
}
}
func (n NotEqual) Name() string {
return "NotEqual"
}
func (n NotEqual) Attributes() map[string]interface{} {
return nil
}
func (n NotEqual) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n NotIdentical) Name() string {
return "NotIdentical"
}
type NotIdentical struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewNotIdentical(variable node.Node, expression node.Node) node.Node {
}
}
func (n NotIdentical) Name() string {
return "NotIdentical"
}
func (n NotIdentical) Attributes() map[string]interface{} {
return nil
}
func (n NotIdentical) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Plus) Name() string {
return "Plus"
}
type Plus struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewPlus(variable node.Node, expression node.Node) node.Node {
}
}
func (n Plus) Name() string {
return "Plus"
}
func (n Plus) Attributes() map[string]interface{} {
return nil
}
func (n Plus) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Pow) Name() string {
return "Pow"
}
type Pow struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewPow(variable node.Node, expression node.Node) node.Node {
}
}
func (n Pow) Name() string {
return "Pow"
}
func (n Pow) Attributes() map[string]interface{} {
return nil
}
func (n Pow) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n ShiftLeft) Name() string {
return "ShiftLeft"
}
type ShiftLeft struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewShiftLeft(variable node.Node, expression node.Node) node.Node {
}
}
func (n ShiftLeft) Name() string {
return "ShiftLeft"
}
func (n ShiftLeft) Attributes() map[string]interface{} {
return nil
}
func (n ShiftLeft) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n ShiftRight) Name() string {
return "ShiftRight"
}
type ShiftRight struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewShiftRight(variable node.Node, expression node.Node) node.Node {
}
}
func (n ShiftRight) Name() string {
return "ShiftRight"
}
func (n ShiftRight) Attributes() map[string]interface{} {
return nil
}
func (n ShiftRight) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Smaller) Name() string {
return "Smaller"
}
type Smaller struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewSmaller(variable node.Node, expression node.Node) node.Node {
}
}
func (n Smaller) Name() string {
return "Smaller"
}
func (n Smaller) Attributes() map[string]interface{} {
return nil
}
func (n Smaller) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n SmallerOrEqual) Name() string {
return "SmallerOrEqual"
}
type SmallerOrEqual struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewSmallerOrEqual(variable node.Node, expression node.Node) node.Node {
}
}
func (n SmallerOrEqual) Name() string {
return "SmallerOrEqual"
}
func (n SmallerOrEqual) Attributes() map[string]interface{} {
return nil
}
func (n SmallerOrEqual) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -4,10 +4,6 @@ import (
"github.com/z7zmey/php-parser/node"
)
func (n Spaceship) Name() string {
return "Spaceship"
}
type Spaceship struct {
BinaryOp
}
@@ -22,6 +18,14 @@ func NewSpaceship(variable node.Node, expression node.Node) node.Node {
}
}
func (n Spaceship) Name() string {
return "Spaceship"
}
func (n Spaceship) Attributes() map[string]interface{} {
return nil
}
func (n Spaceship) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return