remove name field
This commit is contained in:
@@ -5,14 +5,12 @@ import (
|
||||
)
|
||||
|
||||
type Dnumber struct {
|
||||
name string
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewDnumber(value string) node.Node {
|
||||
return Dnumber{
|
||||
"Dnumber",
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
},
|
||||
@@ -20,10 +18,6 @@ func NewDnumber(value string) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Dnumber) Name() string {
|
||||
return "Dnumber"
|
||||
}
|
||||
|
||||
func (n Dnumber) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
)
|
||||
|
||||
type Encapsed struct {
|
||||
name string
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
parts []node.Node
|
||||
@@ -13,17 +12,12 @@ type Encapsed struct {
|
||||
|
||||
func NewEncapsed(parts []node.Node) node.Node {
|
||||
return Encapsed{
|
||||
"Encapsed",
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
parts,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Encapsed) Name() string {
|
||||
return "Encapsed"
|
||||
}
|
||||
|
||||
func (n Encapsed) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -5,14 +5,12 @@ import (
|
||||
)
|
||||
|
||||
type EncapsedStringPart struct {
|
||||
name string
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewEncapsedStringPart(value string) node.Node {
|
||||
return EncapsedStringPart{
|
||||
"EncapsedStringPart",
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
},
|
||||
@@ -20,10 +18,6 @@ func NewEncapsedStringPart(value string) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) Name() string {
|
||||
return "EncapsedStringPart"
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -5,14 +5,12 @@ import (
|
||||
)
|
||||
|
||||
type Lnumber struct {
|
||||
name string
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewLnumber(value string) node.Node {
|
||||
return Lnumber{
|
||||
"Lnumber",
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
},
|
||||
@@ -20,10 +18,6 @@ func NewLnumber(value string) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Lnumber) Name() string {
|
||||
return "Lnumber"
|
||||
}
|
||||
|
||||
func (n Lnumber) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -5,14 +5,12 @@ import (
|
||||
)
|
||||
|
||||
type MagicConstant struct {
|
||||
name string
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewMagicConstant(value string) node.Node {
|
||||
return MagicConstant{
|
||||
"MagicConstant",
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
},
|
||||
@@ -20,10 +18,6 @@ func NewMagicConstant(value string) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n MagicConstant) Name() string {
|
||||
return "MagicConstant"
|
||||
}
|
||||
|
||||
func (n MagicConstant) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
@@ -5,14 +5,12 @@ import (
|
||||
)
|
||||
|
||||
type String struct {
|
||||
name string
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewString(value string) node.Node {
|
||||
return String{
|
||||
"String",
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
},
|
||||
@@ -20,10 +18,6 @@ func NewString(value string) node.Node {
|
||||
}
|
||||
}
|
||||
|
||||
func (n String) Name() string {
|
||||
return "String"
|
||||
}
|
||||
|
||||
func (n String) Attributes() map[string]interface{} {
|
||||
return n.attributes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user