remove unused attributes fields
This commit is contained in:
@@ -11,13 +11,8 @@ type FullyQualified struct {
|
||||
func NewFullyQualified(Parts []node.Node) node.Node {
|
||||
return &FullyQualified{
|
||||
Name{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Parts,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (n FullyQualified) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -5,21 +5,19 @@ import (
|
||||
)
|
||||
|
||||
type Name struct {
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
Parts []node.Node
|
||||
position *node.Position
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
func NewName(Parts []node.Node) node.Node {
|
||||
return &Name{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Parts,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Name) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Name) Position() *node.Position {
|
||||
|
||||
@@ -5,21 +5,21 @@ import (
|
||||
)
|
||||
|
||||
type NamePart struct {
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
position *node.Position
|
||||
Value string
|
||||
}
|
||||
|
||||
func NewNamePart(Value string) node.Node {
|
||||
return &NamePart{
|
||||
map[string]interface{}{
|
||||
"Value": Value,
|
||||
},
|
||||
nil,
|
||||
Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n NamePart) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
return map[string]interface{}{
|
||||
"Value": n.Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n NamePart) Position() *node.Position {
|
||||
|
||||
@@ -11,13 +11,8 @@ type Relative struct {
|
||||
func NewRelative(Parts []node.Node) node.Node {
|
||||
return &Relative{
|
||||
Name{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
Parts,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (n Relative) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user