remove name field

This commit is contained in:
z7zmey
2018-01-04 20:29:07 +02:00
parent e8655c5f4c
commit 383a245370
159 changed files with 14 additions and 891 deletions

View File

@@ -11,7 +11,6 @@ type Assign struct {
func NewAssign(variable node.Node, expression node.Node) node.Node {
return Assign{
AssignOp{
"Assign",
map[string]interface{}{},
nil,
variable,
@@ -20,10 +19,6 @@ func NewAssign(variable node.Node, expression node.Node) node.Node {
}
}
func (n Assign) Name() string {
return "Assign"
}
func (n Assign) Attributes() map[string]interface{} {
return n.attributes
}

View File

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

View File

@@ -11,7 +11,6 @@ type AssignRef struct {
func NewAssignRef(variable node.Node, expression node.Node) node.Node {
return AssignRef{
AssignOp{
"AssignRef",
map[string]interface{}{},
nil,
variable,
@@ -20,10 +19,6 @@ func NewAssignRef(variable node.Node, expression node.Node) node.Node {
}
}
func (n AssignRef) Name() string {
return "AssignRef"
}
func (n AssignRef) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type BitwiseAnd struct {
func NewBitwiseAnd(variable node.Node, expression node.Node) node.Node {
return BitwiseAnd{
AssignOp{
"AssignBitwiseAnd",
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
}

View File

@@ -11,7 +11,6 @@ type BitwiseOr struct {
func NewBitwiseOr(variable node.Node, expression node.Node) node.Node {
return BitwiseOr{
AssignOp{
"AssignBitwiseOr",
map[string]interface{}{},
nil,
variable,
@@ -20,10 +19,6 @@ func NewBitwiseOr(variable node.Node, expression node.Node) node.Node {
}
}
func (n BitwiseOr) Name() string {
return "BitwiseOr"
}
func (n BitwiseOr) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type BitwiseXor struct {
func NewBitwiseXor(variable node.Node, expression node.Node) node.Node {
return BitwiseXor{
AssignOp{
"AssignBitwiseXor",
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

View File

@@ -11,7 +11,6 @@ type Concat struct {
func NewConcat(variable node.Node, expression node.Node) node.Node {
return Concat{
AssignOp{
"AssignConcat",
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
}

View File

@@ -11,7 +11,6 @@ type Div struct {
func NewDiv(variable node.Node, expression node.Node) node.Node {
return Div{
AssignOp{
"AssignDiv",
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
}

View File

@@ -11,7 +11,6 @@ type Minus struct {
func NewMinus(variable node.Node, expression node.Node) node.Node {
return Minus{
AssignOp{
"AssignMinus",
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
}

View File

@@ -11,7 +11,6 @@ type Mod struct {
func NewMod(variable node.Node, expression node.Node) node.Node {
return Mod{
AssignOp{
"AssignMod",
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
}

View File

@@ -11,7 +11,6 @@ type Mul struct {
func NewMul(variable node.Node, expression node.Node) node.Node {
return Mul{
AssignOp{
"AssignMul",
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
}

View File

@@ -11,7 +11,6 @@ type Plus struct {
func NewPlus(variable node.Node, expression node.Node) node.Node {
return Plus{
AssignOp{
"AssignPlus",
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
}

View File

@@ -11,7 +11,6 @@ type Pow struct {
func NewPow(variable node.Node, expression node.Node) node.Node {
return Pow{
AssignOp{
"AssignPow",
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
}

View File

@@ -11,7 +11,6 @@ type ShiftLeft struct {
func NewShiftLeft(variable node.Node, expression node.Node) node.Node {
return ShiftLeft{
AssignOp{
"AssignShiftLeft",
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
}

View File

@@ -11,7 +11,6 @@ type ShiftRight struct {
func NewShiftRight(variable node.Node, expression node.Node) node.Node {
return ShiftRight{
AssignOp{
"AssignShiftRight",
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
}