extract positions package

This commit is contained in:
z7zmey
2018-01-09 15:51:32 +02:00
parent 23d938df99
commit 2078a6cde6
166 changed files with 2060 additions and 3030 deletions

View File

@@ -5,6 +5,5 @@ import (
)
type Cast struct {
position *node.Position
Expr node.Node
Expr node.Node
}

View File

@@ -11,7 +11,6 @@ type CastArray struct {
func NewCastArray(Expr node.Node) *CastArray {
return &CastArray{
Cast{
nil,
Expr,
},
}
@@ -21,15 +20,6 @@ func (n *CastArray) Attributes() map[string]interface{} {
return nil
}
func (n *CastArray) Position() *node.Position {
return n.position
}
func (n *CastArray) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n *CastArray) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -11,7 +11,6 @@ type CastBool struct {
func NewCastBool(Expr node.Node) *CastBool {
return &CastBool{
Cast{
nil,
Expr,
},
}
@@ -21,15 +20,6 @@ func (n *CastBool) Attributes() map[string]interface{} {
return nil
}
func (n *CastBool) Position() *node.Position {
return n.position
}
func (n *CastBool) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n *CastBool) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -11,7 +11,6 @@ type CastDouble struct {
func NewCastDouble(Expr node.Node) *CastDouble {
return &CastDouble{
Cast{
nil,
Expr,
},
}
@@ -21,15 +20,6 @@ func (n *CastDouble) Attributes() map[string]interface{} {
return nil
}
func (n *CastDouble) Position() *node.Position {
return n.position
}
func (n *CastDouble) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n *CastDouble) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -11,7 +11,6 @@ type CastInt struct {
func NewCastInt(Expr node.Node) *CastInt {
return &CastInt{
Cast{
nil,
Expr,
},
}
@@ -21,15 +20,6 @@ func (n *CastInt) Attributes() map[string]interface{} {
return nil
}
func (n *CastInt) Position() *node.Position {
return n.position
}
func (n *CastInt) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n *CastInt) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -11,7 +11,6 @@ type CastObject struct {
func NewCastObject(Expr node.Node) *CastObject {
return &CastObject{
Cast{
nil,
Expr,
},
}
@@ -21,15 +20,6 @@ func (n *CastObject) Attributes() map[string]interface{} {
return nil
}
func (n *CastObject) Position() *node.Position {
return n.position
}
func (n *CastObject) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n *CastObject) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -11,7 +11,6 @@ type CastString struct {
func NewCastString(Expr node.Node) *CastString {
return &CastString{
Cast{
nil,
Expr,
},
}
@@ -21,15 +20,6 @@ func (n *CastString) Attributes() map[string]interface{} {
return nil
}
func (n *CastString) Position() *node.Position {
return n.position
}
func (n *CastString) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n *CastString) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return

View File

@@ -11,7 +11,6 @@ type CastUnset struct {
func NewCastUnset(Expr node.Node) *CastUnset {
return &CastUnset{
Cast{
nil,
Expr,
},
}
@@ -21,15 +20,6 @@ func (n *CastUnset) Attributes() map[string]interface{} {
return nil
}
func (n *CastUnset) Position() *node.Position {
return n.position
}
func (n *CastUnset) SetPosition(p *node.Position) node.Node {
n.position = p
return n
}
func (n *CastUnset) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return