remove Attribute SetAttributes methods

This commit is contained in:
z7zmey
2018-01-04 22:09:48 +02:00
parent dc8808a7d6
commit 02807502d3
149 changed files with 35 additions and 1365 deletions

View File

@@ -23,15 +23,6 @@ func (n Assign) Attributes() map[string]interface{} {
return n.attributes
}
func (n Assign) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Assign) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Assign) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n AssignRef) Attributes() map[string]interface{} {
return n.attributes
}
func (n AssignRef) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n AssignRef) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n AssignRef) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n BitwiseAnd) Attributes() map[string]interface{} {
return n.attributes
}
func (n BitwiseAnd) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n BitwiseAnd) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n BitwiseAnd) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n BitwiseOr) Attributes() map[string]interface{} {
return n.attributes
}
func (n BitwiseOr) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n BitwiseOr) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n BitwiseOr) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n BitwiseXor) Attributes() map[string]interface{} {
return n.attributes
}
func (n BitwiseXor) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n BitwiseXor) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n BitwiseXor) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n Concat) Attributes() map[string]interface{} {
return n.attributes
}
func (n Concat) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Concat) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Concat) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n Div) Attributes() map[string]interface{} {
return n.attributes
}
func (n Div) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Div) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Div) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n Minus) Attributes() map[string]interface{} {
return n.attributes
}
func (n Minus) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Minus) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Minus) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n Mod) Attributes() map[string]interface{} {
return n.attributes
}
func (n Mod) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Mod) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Mod) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n Mul) Attributes() map[string]interface{} {
return n.attributes
}
func (n Mul) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Mul) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Mul) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n Plus) Attributes() map[string]interface{} {
return n.attributes
}
func (n Plus) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Plus) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Plus) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n Pow) Attributes() map[string]interface{} {
return n.attributes
}
func (n Pow) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n Pow) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n Pow) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n ShiftLeft) Attributes() map[string]interface{} {
return n.attributes
}
func (n ShiftLeft) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n ShiftLeft) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n ShiftLeft) Position() *node.Position {
return n.position
}

View File

@@ -23,15 +23,6 @@ func (n ShiftRight) Attributes() map[string]interface{} {
return n.attributes
}
func (n ShiftRight) Attribute(key string) interface{} {
return n.attributes[key]
}
func (n ShiftRight) SetAttribute(key string, value interface{}) node.Node {
n.attributes[key] = value
return n
}
func (n ShiftRight) Position() *node.Position {
return n.position
}