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

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

View File

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

View File

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

View File

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

View File

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

View File

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