remove unused attributes fields

This commit is contained in:
z7zmey
2018-01-05 00:12:01 +02:00
parent 469db8f9e2
commit 17bca8d1dc
156 changed files with 739 additions and 996 deletions

View File

@@ -5,7 +5,6 @@ import (
)
type Cast struct {
attributes map[string]interface{}
position *node.Position
expr node.Node
position *node.Position
Expr node.Node
}

View File

@@ -8,18 +8,17 @@ type CastArray struct {
Cast
}
func NewCastArray(expr node.Node) node.Node {
func NewCastArray(Expr node.Node) node.Node {
return &CastArray{
Cast{
map[string]interface{}{},
nil,
expr,
Expr,
},
}
}
func (n CastArray) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n CastArray) Position() *node.Position {
@@ -36,9 +35,9 @@ func (n CastArray) Walk(v node.Visitor) {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
if n.Expr != nil {
vv := v.GetChildrenVisitor("Expr")
n.Expr.Walk(vv)
}
v.LeaveNode(n)

View File

@@ -8,18 +8,17 @@ type CastBool struct {
Cast
}
func NewCastBool(expr node.Node) node.Node {
func NewCastBool(Expr node.Node) node.Node {
return &CastBool{
Cast{
map[string]interface{}{},
nil,
expr,
Expr,
},
}
}
func (n CastBool) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n CastBool) Position() *node.Position {
@@ -36,9 +35,9 @@ func (n CastBool) Walk(v node.Visitor) {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
if n.Expr != nil {
vv := v.GetChildrenVisitor("Expr")
n.Expr.Walk(vv)
}
v.LeaveNode(n)

View File

@@ -8,18 +8,17 @@ type CastDouble struct {
Cast
}
func NewCastDouble(expr node.Node) node.Node {
func NewCastDouble(Expr node.Node) node.Node {
return &CastDouble{
Cast{
map[string]interface{}{},
nil,
expr,
Expr,
},
}
}
func (n CastDouble) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n CastDouble) Position() *node.Position {
@@ -36,9 +35,9 @@ func (n CastDouble) Walk(v node.Visitor) {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
if n.Expr != nil {
vv := v.GetChildrenVisitor("Expr")
n.Expr.Walk(vv)
}
v.LeaveNode(n)

View File

@@ -8,18 +8,17 @@ type CastInt struct {
Cast
}
func NewCastInt(expr node.Node) node.Node {
func NewCastInt(Expr node.Node) node.Node {
return &CastInt{
Cast{
map[string]interface{}{},
nil,
expr,
Expr,
},
}
}
func (n CastInt) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n CastInt) Position() *node.Position {
@@ -36,9 +35,9 @@ func (n CastInt) Walk(v node.Visitor) {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
if n.Expr != nil {
vv := v.GetChildrenVisitor("Expr")
n.Expr.Walk(vv)
}
v.LeaveNode(n)

View File

@@ -8,18 +8,17 @@ type CastObject struct {
Cast
}
func NewCastObject(expr node.Node) node.Node {
func NewCastObject(Expr node.Node) node.Node {
return &CastObject{
Cast{
map[string]interface{}{},
nil,
expr,
Expr,
},
}
}
func (n CastObject) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n CastObject) Position() *node.Position {
@@ -36,9 +35,9 @@ func (n CastObject) Walk(v node.Visitor) {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
if n.Expr != nil {
vv := v.GetChildrenVisitor("Expr")
n.Expr.Walk(vv)
}
v.LeaveNode(n)

View File

@@ -8,18 +8,17 @@ type CastString struct {
Cast
}
func NewCastString(expr node.Node) node.Node {
func NewCastString(Expr node.Node) node.Node {
return &CastString{
Cast{
map[string]interface{}{},
nil,
expr,
Expr,
},
}
}
func (n CastString) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n CastString) Position() *node.Position {
@@ -36,9 +35,9 @@ func (n CastString) Walk(v node.Visitor) {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
if n.Expr != nil {
vv := v.GetChildrenVisitor("Expr")
n.Expr.Walk(vv)
}
v.LeaveNode(n)

View File

@@ -8,18 +8,17 @@ type CastUnset struct {
Cast
}
func NewCastUnset(expr node.Node) node.Node {
func NewCastUnset(Expr node.Node) node.Node {
return &CastUnset{
Cast{
map[string]interface{}{},
nil,
expr,
Expr,
},
}
}
func (n CastUnset) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n CastUnset) Position() *node.Position {
@@ -36,9 +35,9 @@ func (n CastUnset) Walk(v node.Visitor) {
return
}
if n.expr != nil {
vv := v.GetChildrenVisitor("expr")
n.expr.Walk(vv)
if n.Expr != nil {
vv := v.GetChildrenVisitor("Expr")
n.Expr.Walk(vv)
}
v.LeaveNode(n)