remove unused attributes fields
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
)
|
||||
|
||||
type Cast struct {
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
expr node.Node
|
||||
position *node.Position
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user