remove name field

This commit is contained in:
z7zmey
2018-01-04 20:29:07 +02:00
parent e8655c5f4c
commit 383a245370
159 changed files with 14 additions and 891 deletions

View File

@@ -5,7 +5,6 @@ import (
)
type Cast struct {
name string
attributes map[string]interface{}
position *node.Position
expr node.Node

View File

@@ -11,7 +11,6 @@ type CastArray struct {
func NewCastArray(expr node.Node) node.Node {
return CastArray{
Cast{
"CastArray",
map[string]interface{}{},
nil,
expr,
@@ -19,10 +18,6 @@ func NewCastArray(expr node.Node) node.Node {
}
}
func (n CastArray) Name() string {
return "CastArray"
}
func (n CastArray) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type CastBool struct {
func NewCastBool(expr node.Node) node.Node {
return CastBool{
Cast{
"CastBool",
map[string]interface{}{},
nil,
expr,
@@ -19,10 +18,6 @@ func NewCastBool(expr node.Node) node.Node {
}
}
func (n CastBool) Name() string {
return "CastBool"
}
func (n CastBool) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type CastDouble struct {
func NewCastDouble(expr node.Node) node.Node {
return CastDouble{
Cast{
"CastDouble",
map[string]interface{}{},
nil,
expr,
@@ -19,10 +18,6 @@ func NewCastDouble(expr node.Node) node.Node {
}
}
func (n CastDouble) Name() string {
return "CastDouble"
}
func (n CastDouble) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type CastInt struct {
func NewCastInt(expr node.Node) node.Node {
return CastInt{
Cast{
"CastInt",
map[string]interface{}{},
nil,
expr,
@@ -19,10 +18,6 @@ func NewCastInt(expr node.Node) node.Node {
}
}
func (n CastInt) Name() string {
return "CastInt"
}
func (n CastInt) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type CastObject struct {
func NewCastObject(expr node.Node) node.Node {
return CastObject{
Cast{
"CastObject",
map[string]interface{}{},
nil,
expr,
@@ -19,10 +18,6 @@ func NewCastObject(expr node.Node) node.Node {
}
}
func (n CastObject) Name() string {
return "CastObject"
}
func (n CastObject) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type CastString struct {
func NewCastString(expr node.Node) node.Node {
return CastString{
Cast{
"CastString",
map[string]interface{}{},
nil,
expr,
@@ -19,10 +18,6 @@ func NewCastString(expr node.Node) node.Node {
}
}
func (n CastString) Name() string {
return "CastString"
}
func (n CastString) Attributes() map[string]interface{} {
return n.attributes
}

View File

@@ -11,7 +11,6 @@ type CastUnset struct {
func NewCastUnset(expr node.Node) node.Node {
return CastUnset{
Cast{
"CastUnset",
map[string]interface{}{},
nil,
expr,
@@ -19,10 +18,6 @@ func NewCastUnset(expr node.Node) node.Node {
}
}
func (n CastUnset) Name() string {
return "CastUnset"
}
func (n CastUnset) Attributes() map[string]interface{} {
return n.attributes
}