remove Attribute SetAttributes methods
This commit is contained in:
@@ -22,15 +22,6 @@ func (n CastArray) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
func (n CastArray) Attribute(key string) interface{} {
|
||||
return n.attributes[key]
|
||||
}
|
||||
|
||||
func (n CastArray) SetAttribute(key string, value interface{}) node.Node {
|
||||
n.attributes[key] = value
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastArray) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
@@ -22,15 +22,6 @@ func (n CastBool) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
func (n CastBool) Attribute(key string) interface{} {
|
||||
return n.attributes[key]
|
||||
}
|
||||
|
||||
func (n CastBool) SetAttribute(key string, value interface{}) node.Node {
|
||||
n.attributes[key] = value
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastBool) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
@@ -22,15 +22,6 @@ func (n CastDouble) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
func (n CastDouble) Attribute(key string) interface{} {
|
||||
return n.attributes[key]
|
||||
}
|
||||
|
||||
func (n CastDouble) SetAttribute(key string, value interface{}) node.Node {
|
||||
n.attributes[key] = value
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastDouble) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
@@ -22,15 +22,6 @@ func (n CastInt) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
func (n CastInt) Attribute(key string) interface{} {
|
||||
return n.attributes[key]
|
||||
}
|
||||
|
||||
func (n CastInt) SetAttribute(key string, value interface{}) node.Node {
|
||||
n.attributes[key] = value
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastInt) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
@@ -22,15 +22,6 @@ func (n CastObject) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
func (n CastObject) Attribute(key string) interface{} {
|
||||
return n.attributes[key]
|
||||
}
|
||||
|
||||
func (n CastObject) SetAttribute(key string, value interface{}) node.Node {
|
||||
n.attributes[key] = value
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastObject) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
@@ -22,15 +22,6 @@ func (n CastString) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
func (n CastString) Attribute(key string) interface{} {
|
||||
return n.attributes[key]
|
||||
}
|
||||
|
||||
func (n CastString) SetAttribute(key string, value interface{}) node.Node {
|
||||
n.attributes[key] = value
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastString) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
@@ -22,15 +22,6 @@ func (n CastUnset) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
func (n CastUnset) Attribute(key string) interface{} {
|
||||
return n.attributes[key]
|
||||
}
|
||||
|
||||
func (n CastUnset) SetAttribute(key string, value interface{}) node.Node {
|
||||
n.attributes[key] = value
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastUnset) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user