remove unused attributes fields

This commit is contained in:
z7zmey
2018-01-05 00:12:01 +02:00
parent 469db8f9e2
commit 17bca8d1dc
156 changed files with 739 additions and 996 deletions

View File

@@ -5,21 +5,21 @@ import (
)
type Dnumber struct {
attributes map[string]interface{}
position *node.Position
position *node.Position
Value string
}
func NewDnumber(Value string) node.Node {
return &Dnumber{
map[string]interface{}{
"Value": Value,
},
nil,
Value,
}
}
func (n Dnumber) Attributes() map[string]interface{} {
return n.attributes
return map[string]interface{}{
"Value": n.Value,
}
}
func (n Dnumber) Position() *node.Position {

View File

@@ -5,21 +5,19 @@ import (
)
type Encapsed struct {
attributes map[string]interface{}
position *node.Position
Parts []node.Node
position *node.Position
Parts []node.Node
}
func NewEncapsed(Parts []node.Node) node.Node {
return &Encapsed{
map[string]interface{}{},
nil,
Parts,
}
}
func (n Encapsed) Attributes() map[string]interface{} {
return n.attributes
return nil
}
func (n Encapsed) Position() *node.Position {

View File

@@ -5,21 +5,21 @@ import (
)
type EncapsedStringPart struct {
attributes map[string]interface{}
position *node.Position
position *node.Position
Value string
}
func NewEncapsedStringPart(Value string) node.Node {
return &EncapsedStringPart{
map[string]interface{}{
"Value": Value,
},
nil,
Value,
}
}
func (n EncapsedStringPart) Attributes() map[string]interface{} {
return n.attributes
return map[string]interface{}{
"Value": n.Value,
}
}
func (n EncapsedStringPart) Position() *node.Position {

View File

@@ -5,21 +5,21 @@ import (
)
type Lnumber struct {
attributes map[string]interface{}
position *node.Position
position *node.Position
Value string
}
func NewLnumber(Value string) node.Node {
return &Lnumber{
map[string]interface{}{
"Value": Value,
},
nil,
Value,
}
}
func (n Lnumber) Attributes() map[string]interface{} {
return n.attributes
return map[string]interface{}{
"Value": n.Value,
}
}
func (n Lnumber) Position() *node.Position {

View File

@@ -5,21 +5,21 @@ import (
)
type MagicConstant struct {
attributes map[string]interface{}
position *node.Position
position *node.Position
Value string
}
func NewMagicConstant(Value string) node.Node {
return &MagicConstant{
map[string]interface{}{
"Value": Value,
},
nil,
Value,
}
}
func (n MagicConstant) Attributes() map[string]interface{} {
return n.attributes
return map[string]interface{}{
"Value": n.Value,
}
}
func (n MagicConstant) Position() *node.Position {

View File

@@ -5,21 +5,21 @@ import (
)
type String struct {
attributes map[string]interface{}
position *node.Position
position *node.Position
Value string
}
func NewString(Value string) node.Node {
return &String{
map[string]interface{}{
"Value": Value,
},
nil,
Value,
}
}
func (n String) Attributes() map[string]interface{} {
return n.attributes
return map[string]interface{}{
"Value": n.Value,
}
}
func (n String) Position() *node.Position {