remove unused attributes fields
This commit is contained in:
@@ -5,8 +5,7 @@ import (
|
||||
)
|
||||
|
||||
type BinaryOp struct {
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
Left node.Node
|
||||
Right node.Node
|
||||
position *node.Position
|
||||
Left node.Node
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type BitwiseAnd struct {
|
||||
func NewBitwiseAnd(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &BitwiseAnd{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewBitwiseAnd(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n BitwiseAnd) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n BitwiseAnd) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type BitwiseOr struct {
|
||||
func NewBitwiseOr(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &BitwiseOr{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewBitwiseOr(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n BitwiseOr) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n BitwiseOr) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type BitwiseXor struct {
|
||||
func NewBitwiseXor(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &BitwiseXor{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewBitwiseXor(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n BitwiseXor) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n BitwiseXor) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type BooleanAnd struct {
|
||||
func NewBooleanAnd(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &BooleanAnd{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewBooleanAnd(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n BooleanAnd) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n BooleanAnd) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type BooleanOr struct {
|
||||
func NewBooleanOr(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &BooleanOr{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewBooleanOr(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n BooleanOr) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n BooleanOr) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Coalesce struct {
|
||||
func NewCoalesce(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Coalesce{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewCoalesce(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Coalesce) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Coalesce) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Concat struct {
|
||||
func NewConcat(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Concat{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewConcat(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Concat) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Concat) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Div struct {
|
||||
func NewDiv(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Div{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewDiv(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Div) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Div) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Equal struct {
|
||||
func NewEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Equal{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Equal) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Equal) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Greater struct {
|
||||
func NewGreater(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Greater{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewGreater(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Greater) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Greater) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type GreaterOrEqual struct {
|
||||
func NewGreaterOrEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &GreaterOrEqual{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewGreaterOrEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n GreaterOrEqual) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n GreaterOrEqual) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Identical struct {
|
||||
func NewIdentical(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Identical{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewIdentical(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Identical) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Identical) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type LogicalAnd struct {
|
||||
func NewLogicalAnd(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &LogicalAnd{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewLogicalAnd(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n LogicalAnd) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n LogicalAnd) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type LogicalOr struct {
|
||||
func NewLogicalOr(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &LogicalOr{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewLogicalOr(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n LogicalOr) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n LogicalOr) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type LogicalXor struct {
|
||||
func NewLogicalXor(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &LogicalXor{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewLogicalXor(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n LogicalXor) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n LogicalXor) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Minus struct {
|
||||
func NewMinus(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Minus{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewMinus(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Minus) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Minus) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Mod struct {
|
||||
func NewMod(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Mod{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewMod(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Mod) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Mod) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Mul struct {
|
||||
func NewMul(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Mul{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewMul(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Mul) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Mul) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type NotEqual struct {
|
||||
func NewNotEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &NotEqual{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewNotEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n NotEqual) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n NotEqual) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type NotIdentical struct {
|
||||
func NewNotIdentical(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &NotIdentical{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewNotIdentical(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n NotIdentical) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n NotIdentical) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Plus struct {
|
||||
func NewPlus(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Plus{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewPlus(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Plus) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Plus) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Pow struct {
|
||||
func NewPow(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Pow{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewPow(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Pow) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Pow) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type ShiftLeft struct {
|
||||
func NewShiftLeft(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &ShiftLeft{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewShiftLeft(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n ShiftLeft) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n ShiftLeft) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type ShiftRight struct {
|
||||
func NewShiftRight(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &ShiftRight{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewShiftRight(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n ShiftRight) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n ShiftRight) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Smaller struct {
|
||||
func NewSmaller(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Smaller{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewSmaller(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Smaller) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Smaller) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type SmallerOrEqual struct {
|
||||
func NewSmallerOrEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &SmallerOrEqual{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewSmallerOrEqual(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n SmallerOrEqual) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n SmallerOrEqual) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type Spaceship struct {
|
||||
func NewSpaceship(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Spaceship{
|
||||
BinaryOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewSpaceship(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Spaceship) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Spaceship) Position() *node.Position {
|
||||
|
||||
Reference in New Issue
Block a user