fix poiner receiver at nodes
This commit is contained in:
@@ -19,29 +19,29 @@ func NewCastArray(Expr node.Node) *CastArray {
|
||||
}
|
||||
}
|
||||
|
||||
func (n CastArray) Attributes() map[string]interface{} {
|
||||
func (n *CastArray) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n CastArray) Position() *node.Position {
|
||||
func (n *CastArray) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n CastArray) SetPosition(p *node.Position) node.Node {
|
||||
func (n *CastArray) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastArray) Comments() *[]comment.Comment {
|
||||
func (n *CastArray) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastArray) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastArray) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastArray) Walk(v node.Visitor) {
|
||||
func (n *CastArray) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewCastBool(Expr node.Node) *CastBool {
|
||||
}
|
||||
}
|
||||
|
||||
func (n CastBool) Attributes() map[string]interface{} {
|
||||
func (n *CastBool) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n CastBool) Position() *node.Position {
|
||||
func (n *CastBool) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n CastBool) SetPosition(p *node.Position) node.Node {
|
||||
func (n *CastBool) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastBool) Comments() *[]comment.Comment {
|
||||
func (n *CastBool) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastBool) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastBool) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastBool) Walk(v node.Visitor) {
|
||||
func (n *CastBool) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewCastDouble(Expr node.Node) *CastDouble {
|
||||
}
|
||||
}
|
||||
|
||||
func (n CastDouble) Attributes() map[string]interface{} {
|
||||
func (n *CastDouble) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n CastDouble) Position() *node.Position {
|
||||
func (n *CastDouble) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n CastDouble) SetPosition(p *node.Position) node.Node {
|
||||
func (n *CastDouble) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastDouble) Comments() *[]comment.Comment {
|
||||
func (n *CastDouble) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastDouble) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastDouble) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastDouble) Walk(v node.Visitor) {
|
||||
func (n *CastDouble) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewCastInt(Expr node.Node) *CastInt {
|
||||
}
|
||||
}
|
||||
|
||||
func (n CastInt) Attributes() map[string]interface{} {
|
||||
func (n *CastInt) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n CastInt) Position() *node.Position {
|
||||
func (n *CastInt) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n CastInt) SetPosition(p *node.Position) node.Node {
|
||||
func (n *CastInt) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastInt) Comments() *[]comment.Comment {
|
||||
func (n *CastInt) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastInt) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastInt) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastInt) Walk(v node.Visitor) {
|
||||
func (n *CastInt) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewCastObject(Expr node.Node) *CastObject {
|
||||
}
|
||||
}
|
||||
|
||||
func (n CastObject) Attributes() map[string]interface{} {
|
||||
func (n *CastObject) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n CastObject) Position() *node.Position {
|
||||
func (n *CastObject) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n CastObject) SetPosition(p *node.Position) node.Node {
|
||||
func (n *CastObject) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastObject) Comments() *[]comment.Comment {
|
||||
func (n *CastObject) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastObject) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastObject) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastObject) Walk(v node.Visitor) {
|
||||
func (n *CastObject) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewCastString(Expr node.Node) *CastString {
|
||||
}
|
||||
}
|
||||
|
||||
func (n CastString) Attributes() map[string]interface{} {
|
||||
func (n *CastString) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n CastString) Position() *node.Position {
|
||||
func (n *CastString) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n CastString) SetPosition(p *node.Position) node.Node {
|
||||
func (n *CastString) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastString) Comments() *[]comment.Comment {
|
||||
func (n *CastString) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastString) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastString) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastString) Walk(v node.Visitor) {
|
||||
func (n *CastString) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewCastUnset(Expr node.Node) *CastUnset {
|
||||
}
|
||||
}
|
||||
|
||||
func (n CastUnset) Attributes() map[string]interface{} {
|
||||
func (n *CastUnset) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n CastUnset) Position() *node.Position {
|
||||
func (n *CastUnset) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n CastUnset) SetPosition(p *node.Position) node.Node {
|
||||
func (n *CastUnset) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastUnset) Comments() *[]comment.Comment {
|
||||
func (n *CastUnset) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n CastUnset) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *CastUnset) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n CastUnset) Walk(v node.Visitor) {
|
||||
func (n *CastUnset) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user