fix poiner receiver at nodes
This commit is contained in:
@@ -19,31 +19,31 @@ func NewDnumber(Value string) *Dnumber {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Dnumber) Attributes() map[string]interface{} {
|
||||
func (n *Dnumber) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"Value": n.Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Dnumber) Position() *node.Position {
|
||||
func (n *Dnumber) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Dnumber) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Dnumber) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n Dnumber) Comments() *[]comment.Comment {
|
||||
func (n *Dnumber) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Dnumber) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Dnumber) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n Dnumber) Walk(v node.Visitor) {
|
||||
func (n *Dnumber) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,29 +19,29 @@ func NewEncapsed(Parts []node.Node) *Encapsed {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Encapsed) Attributes() map[string]interface{} {
|
||||
func (n *Encapsed) Attributes() map[string]interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (n Encapsed) Position() *node.Position {
|
||||
func (n *Encapsed) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Encapsed) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Encapsed) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n Encapsed) Comments() *[]comment.Comment {
|
||||
func (n *Encapsed) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Encapsed) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Encapsed) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n Encapsed) Walk(v node.Visitor) {
|
||||
func (n *Encapsed) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,31 +19,31 @@ func NewEncapsedStringPart(Value string) *EncapsedStringPart {
|
||||
}
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) Attributes() map[string]interface{} {
|
||||
func (n *EncapsedStringPart) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"Value": n.Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) Position() *node.Position {
|
||||
func (n *EncapsedStringPart) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) SetPosition(p *node.Position) node.Node {
|
||||
func (n *EncapsedStringPart) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) Comments() *[]comment.Comment {
|
||||
func (n *EncapsedStringPart) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *EncapsedStringPart) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n EncapsedStringPart) Walk(v node.Visitor) {
|
||||
func (n *EncapsedStringPart) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,31 +19,31 @@ func NewLnumber(Value string) *Lnumber {
|
||||
}
|
||||
}
|
||||
|
||||
func (n Lnumber) Attributes() map[string]interface{} {
|
||||
func (n *Lnumber) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"Value": n.Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n Lnumber) Position() *node.Position {
|
||||
func (n *Lnumber) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n Lnumber) SetPosition(p *node.Position) node.Node {
|
||||
func (n *Lnumber) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n Lnumber) Comments() *[]comment.Comment {
|
||||
func (n *Lnumber) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n Lnumber) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *Lnumber) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n Lnumber) Walk(v node.Visitor) {
|
||||
func (n *Lnumber) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,31 +19,31 @@ func NewMagicConstant(Value string) *MagicConstant {
|
||||
}
|
||||
}
|
||||
|
||||
func (n MagicConstant) Attributes() map[string]interface{} {
|
||||
func (n *MagicConstant) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"Value": n.Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n MagicConstant) Position() *node.Position {
|
||||
func (n *MagicConstant) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n MagicConstant) SetPosition(p *node.Position) node.Node {
|
||||
func (n *MagicConstant) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n MagicConstant) Comments() *[]comment.Comment {
|
||||
func (n *MagicConstant) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n MagicConstant) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *MagicConstant) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n MagicConstant) Walk(v node.Visitor) {
|
||||
func (n *MagicConstant) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -19,31 +19,31 @@ func NewString(Value string) *String {
|
||||
}
|
||||
}
|
||||
|
||||
func (n String) Attributes() map[string]interface{} {
|
||||
func (n *String) Attributes() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"Value": n.Value,
|
||||
}
|
||||
}
|
||||
|
||||
func (n String) Position() *node.Position {
|
||||
func (n *String) Position() *node.Position {
|
||||
return n.position
|
||||
}
|
||||
|
||||
func (n String) SetPosition(p *node.Position) node.Node {
|
||||
func (n *String) SetPosition(p *node.Position) node.Node {
|
||||
n.position = p
|
||||
return n
|
||||
}
|
||||
|
||||
func (n String) Comments() *[]comment.Comment {
|
||||
func (n *String) Comments() *[]comment.Comment {
|
||||
return n.comments
|
||||
}
|
||||
|
||||
func (n String) SetComments(c *[]comment.Comment) node.Node {
|
||||
func (n *String) SetComments(c *[]comment.Comment) node.Node {
|
||||
n.comments = c
|
||||
return n
|
||||
}
|
||||
|
||||
func (n String) Walk(v node.Visitor) {
|
||||
func (n *String) Walk(v node.Visitor) {
|
||||
if v.EnterNode(n) == false {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user