remove unused attributes fields
This commit is contained in:
@@ -11,7 +11,6 @@ type Assign struct {
|
||||
func NewAssign(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Assign{
|
||||
AssignOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewAssign(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n Assign) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Assign) Position() *node.Position {
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
)
|
||||
|
||||
type AssignOp struct {
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
Variable node.Node
|
||||
Expression node.Node
|
||||
|
||||
@@ -11,7 +11,6 @@ type AssignRef struct {
|
||||
func NewAssignRef(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &AssignRef{
|
||||
AssignOp{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Variable,
|
||||
Expression,
|
||||
@@ -20,7 +19,7 @@ func NewAssignRef(Variable node.Node, Expression node.Node) node.Node {
|
||||
}
|
||||
|
||||
func (n AssignRef) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n AssignRef) Position() *node.Position {
|
||||
|
||||
@@ -11,7 +11,6 @@ type BitwiseAnd struct {
|
||||
func NewBitwiseAnd(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &BitwiseAnd{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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 Concat struct {
|
||||
func NewConcat(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Concat{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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 Minus struct {
|
||||
func NewMinus(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Minus{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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 Plus struct {
|
||||
func NewPlus(Variable node.Node, Expression node.Node) node.Node {
|
||||
return &Plus{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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{
|
||||
AssignOp{
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user