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 CastArray) Name() string {
return "CastArray"
}
type CastArray struct {
Cast
}
@@ -21,6 +17,14 @@ func NewCastArray(expr node.Node) node.Node {
}
}
func (n CastArray) Name() string {
return "CastArray"
}
func (n CastArray) Attributes() map[string]interface{} {
return nil
}
func (n CastArray) 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 CastBool) Name() string {
return "CastBool"
}
type CastBool struct {
Cast
}
@@ -21,6 +17,14 @@ func NewCastBool(expr node.Node) node.Node {
}
}
func (n CastBool) Name() string {
return "CastBool"
}
func (n CastBool) Attributes() map[string]interface{} {
return nil
}
func (n CastBool) 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 CastDouble) Name() string {
return "CastDouble"
}
type CastDouble struct {
Cast
}
@@ -21,6 +17,14 @@ func NewCastDouble(expr node.Node) node.Node {
}
}
func (n CastDouble) Name() string {
return "CastDouble"
}
func (n CastDouble) Attributes() map[string]interface{} {
return nil
}
func (n CastDouble) 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 CastInt) Name() string {
return "CastInt"
}
type CastInt struct {
Cast
}
@@ -21,6 +17,14 @@ func NewCastInt(expr node.Node) node.Node {
}
}
func (n CastInt) Name() string {
return "CastInt"
}
func (n CastInt) Attributes() map[string]interface{} {
return nil
}
func (n CastInt) 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 CastObject) Name() string {
return "CastObject"
}
type CastObject struct {
Cast
}
@@ -21,6 +17,14 @@ func NewCastObject(expr node.Node) node.Node {
}
}
func (n CastObject) Name() string {
return "CastObject"
}
func (n CastObject) Attributes() map[string]interface{} {
return nil
}
func (n CastObject) 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 CastString) Name() string {
return "CastString"
}
type CastString struct {
Cast
}
@@ -21,6 +17,14 @@ func NewCastString(expr node.Node) node.Node {
}
}
func (n CastString) Name() string {
return "CastString"
}
func (n CastString) Attributes() map[string]interface{} {
return nil
}
func (n CastString) 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 CastUnset) Name() string {
return "CastUnset"
}
type CastUnset struct {
Cast
}
@@ -21,6 +17,14 @@ func NewCastUnset(expr node.Node) node.Node {
}
}
func (n CastUnset) Name() string {
return "CastUnset"
}
func (n CastUnset) Attributes() map[string]interface{} {
return nil
}
func (n CastUnset) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return