remove name field
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
)
|
||||
|
||||
type BinaryOp struct {
|
||||
name string
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
left node.Node
|
||||
|
||||
@@ -11,7 +11,6 @@ type BitwiseAnd struct {
|
||||
func NewBitwiseAnd(variable node.Node, expression node.Node) node.Node {
|
||||
return BitwiseAnd{
|
||||
BinaryOp{
|
||||
"BinaryBitwiseAnd",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewBitwiseAnd(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n BitwiseAnd) Name() string {
|
||||
return "BitwiseAnd"
|
||||
}
|
||||
|
||||
func (n BitwiseAnd) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type BitwiseOr struct {
|
||||
func NewBitwiseOr(variable node.Node, expression node.Node) node.Node {
|
||||
return BitwiseOr{
|
||||
BinaryOp{
|
||||
"BinaryBitwiseOr",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -42,10 +41,6 @@ func (n BitwiseOr) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n BitwiseOr) Name() string {
|
||||
return "BitwiseOr"
|
||||
}
|
||||
|
||||
func (n BitwiseOr) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
|
||||
@@ -11,7 +11,6 @@ type BitwiseXor struct {
|
||||
func NewBitwiseXor(variable node.Node, expression node.Node) node.Node {
|
||||
return BitwiseXor{
|
||||
BinaryOp{
|
||||
"BinaryBitwiseXor",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -42,10 +41,6 @@ func (n BitwiseXor) SetPosition(p *node.Position) node.Node {
|
||||
return n
|
||||
}
|
||||
|
||||
func (n BitwiseXor) Name() string {
|
||||
return "BitwiseXor"
|
||||
}
|
||||
|
||||
func (n BitwiseXor) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
|
||||
@@ -11,7 +11,6 @@ type BooleanAnd struct {
|
||||
func NewBooleanAnd(variable node.Node, expression node.Node) node.Node {
|
||||
return BooleanAnd{
|
||||
BinaryOp{
|
||||
"BinaryBooleanAnd",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewBooleanAnd(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n BooleanAnd) Name() string {
|
||||
return "BooleanAnd"
|
||||
}
|
||||
|
||||
func (n BooleanAnd) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type BooleanOr struct {
|
||||
func NewBooleanOr(variable node.Node, expression node.Node) node.Node {
|
||||
return BooleanOr{
|
||||
BinaryOp{
|
||||
"BinaryBooleanOr",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewBooleanOr(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n BooleanOr) Name() string {
|
||||
return "BooleanOr"
|
||||
}
|
||||
|
||||
func (n BooleanOr) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Coalesce struct {
|
||||
func NewCoalesce(variable node.Node, expression node.Node) node.Node {
|
||||
return Coalesce{
|
||||
BinaryOp{
|
||||
"BinaryCoalesce",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewCoalesce(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Coalesce) Name() string {
|
||||
return "Coalesce"
|
||||
}
|
||||
|
||||
func (n Coalesce) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Concat struct {
|
||||
func NewConcat(variable node.Node, expression node.Node) node.Node {
|
||||
return Concat{
|
||||
BinaryOp{
|
||||
"BinaryConcat",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewConcat(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Concat) Name() string {
|
||||
return "Concat"
|
||||
}
|
||||
|
||||
func (n Concat) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Div struct {
|
||||
func NewDiv(variable node.Node, expression node.Node) node.Node {
|
||||
return Div{
|
||||
BinaryOp{
|
||||
"BinaryDiv",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewDiv(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Div) Name() string {
|
||||
return "Div"
|
||||
}
|
||||
|
||||
func (n Div) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Equal struct {
|
||||
func NewEqual(variable node.Node, expression node.Node) node.Node {
|
||||
return Equal{
|
||||
BinaryOp{
|
||||
"BinaryEqual",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewEqual(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Equal) Name() string {
|
||||
return "Equal"
|
||||
}
|
||||
|
||||
func (n Equal) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Greater struct {
|
||||
func NewGreater(variable node.Node, expression node.Node) node.Node {
|
||||
return Greater{
|
||||
BinaryOp{
|
||||
"BinaryGreater",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewGreater(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Greater) Name() string {
|
||||
return "Greater"
|
||||
}
|
||||
|
||||
func (n Greater) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type GreaterOrEqual struct {
|
||||
func NewGreaterOrEqual(variable node.Node, expression node.Node) node.Node {
|
||||
return GreaterOrEqual{
|
||||
BinaryOp{
|
||||
"BinaryGreaterOrEqual",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewGreaterOrEqual(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n GreaterOrEqual) Name() string {
|
||||
return "GreaterOrEqual"
|
||||
}
|
||||
|
||||
func (n GreaterOrEqual) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Identical struct {
|
||||
func NewIdentical(variable node.Node, expression node.Node) node.Node {
|
||||
return Identical{
|
||||
BinaryOp{
|
||||
"BinaryIdentical",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewIdentical(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Identical) Name() string {
|
||||
return "Identical"
|
||||
}
|
||||
|
||||
func (n Identical) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type LogicalAnd struct {
|
||||
func NewLogicalAnd(variable node.Node, expression node.Node) node.Node {
|
||||
return LogicalAnd{
|
||||
BinaryOp{
|
||||
"BinaryLogicalAnd",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewLogicalAnd(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n LogicalAnd) Name() string {
|
||||
return "LogicalAnd"
|
||||
}
|
||||
|
||||
func (n LogicalAnd) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type LogicalOr struct {
|
||||
func NewLogicalOr(variable node.Node, expression node.Node) node.Node {
|
||||
return LogicalOr{
|
||||
BinaryOp{
|
||||
"BinaryLogicalOr",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewLogicalOr(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n LogicalOr) Name() string {
|
||||
return "LogicalOr"
|
||||
}
|
||||
|
||||
func (n LogicalOr) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type LogicalXor struct {
|
||||
func NewLogicalXor(variable node.Node, expression node.Node) node.Node {
|
||||
return LogicalXor{
|
||||
BinaryOp{
|
||||
"BinaryLogicalXor",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewLogicalXor(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n LogicalXor) Name() string {
|
||||
return "LogicalXor"
|
||||
}
|
||||
|
||||
func (n LogicalXor) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Minus struct {
|
||||
func NewMinus(variable node.Node, expression node.Node) node.Node {
|
||||
return Minus{
|
||||
BinaryOp{
|
||||
"BinaryMinus",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewMinus(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Minus) Name() string {
|
||||
return "Minus"
|
||||
}
|
||||
|
||||
func (n Minus) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Mod struct {
|
||||
func NewMod(variable node.Node, expression node.Node) node.Node {
|
||||
return Mod{
|
||||
BinaryOp{
|
||||
"BinaryMod",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewMod(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Mod) Name() string {
|
||||
return "Mod"
|
||||
}
|
||||
|
||||
func (n Mod) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Mul struct {
|
||||
func NewMul(variable node.Node, expression node.Node) node.Node {
|
||||
return Mul{
|
||||
BinaryOp{
|
||||
"BinaryMul",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewMul(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Mul) Name() string {
|
||||
return "Mul"
|
||||
}
|
||||
|
||||
func (n Mul) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type NotEqual struct {
|
||||
func NewNotEqual(variable node.Node, expression node.Node) node.Node {
|
||||
return NotEqual{
|
||||
BinaryOp{
|
||||
"BinaryNotEqual",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewNotEqual(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n NotEqual) Name() string {
|
||||
return "NotEqual"
|
||||
}
|
||||
|
||||
func (n NotEqual) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type NotIdentical struct {
|
||||
func NewNotIdentical(variable node.Node, expression node.Node) node.Node {
|
||||
return NotIdentical{
|
||||
BinaryOp{
|
||||
"BinaryNotIdentical",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewNotIdentical(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n NotIdentical) Name() string {
|
||||
return "NotIdentical"
|
||||
}
|
||||
|
||||
func (n NotIdentical) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Plus struct {
|
||||
func NewPlus(variable node.Node, expression node.Node) node.Node {
|
||||
return Plus{
|
||||
BinaryOp{
|
||||
"BinaryPlus",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewPlus(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Plus) Name() string {
|
||||
return "Plus"
|
||||
}
|
||||
|
||||
func (n Plus) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Pow struct {
|
||||
func NewPow(variable node.Node, expression node.Node) node.Node {
|
||||
return Pow{
|
||||
BinaryOp{
|
||||
"BinaryPow",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewPow(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Pow) Name() string {
|
||||
return "Pow"
|
||||
}
|
||||
|
||||
func (n Pow) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type ShiftLeft struct {
|
||||
func NewShiftLeft(variable node.Node, expression node.Node) node.Node {
|
||||
return ShiftLeft{
|
||||
BinaryOp{
|
||||
"BinaryShiftLeft",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewShiftLeft(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n ShiftLeft) Name() string {
|
||||
return "ShiftLeft"
|
||||
}
|
||||
|
||||
func (n ShiftLeft) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type ShiftRight struct {
|
||||
func NewShiftRight(variable node.Node, expression node.Node) node.Node {
|
||||
return ShiftRight{
|
||||
BinaryOp{
|
||||
"BinaryShiftRight",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewShiftRight(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n ShiftRight) Name() string {
|
||||
return "ShiftRight"
|
||||
}
|
||||
|
||||
func (n ShiftRight) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Smaller struct {
|
||||
func NewSmaller(variable node.Node, expression node.Node) node.Node {
|
||||
return Smaller{
|
||||
BinaryOp{
|
||||
"BinarySmaller",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewSmaller(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Smaller) Name() string {
|
||||
return "Smaller"
|
||||
}
|
||||
|
||||
func (n Smaller) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type SmallerOrEqual struct {
|
||||
func NewSmallerOrEqual(variable node.Node, expression node.Node) node.Node {
|
||||
return SmallerOrEqual{
|
||||
BinaryOp{
|
||||
"BinarySmallerOrEqual",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewSmallerOrEqual(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n SmallerOrEqual) Name() string {
|
||||
return "SmallerOrEqual"
|
||||
}
|
||||
|
||||
func (n SmallerOrEqual) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ type Spaceship struct {
|
||||
func NewSpaceship(variable node.Node, expression node.Node) node.Node {
|
||||
return Spaceship{
|
||||
BinaryOp{
|
||||
"BinarySpaceship",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
variable,
|
||||
@@ -20,10 +19,6 @@ func NewSpaceship(variable node.Node, expression node.Node) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Spaceship) Name() string {
|
||||
return "Spaceship"
|
||||
}
|
||||
|
||||
func (n Spaceship) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user