make nodes fields public
This commit is contained in:
@@ -9,10 +9,10 @@ type Dnumber struct {
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewDnumber(value string) node.Node {
|
||||
func NewDnumber(Value string) node.Node {
|
||||
return &Dnumber{
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
"Value": Value,
|
||||
},
|
||||
nil,
|
||||
}
|
||||
|
||||
@@ -7,14 +7,14 @@ import (
|
||||
type Encapsed struct {
|
||||
attributes map[string]interface{}
|
||||
position *node.Position
|
||||
parts []node.Node
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
func NewEncapsed(parts []node.Node) node.Node {
|
||||
func NewEncapsed(Parts []node.Node) node.Node {
|
||||
return &Encapsed{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
parts,
|
||||
Parts,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,9 +36,9 @@ func (n Encapsed) Walk(v node.Visitor) {
|
||||
return
|
||||
}
|
||||
|
||||
if n.parts != nil {
|
||||
vv := v.GetChildrenVisitor("parts")
|
||||
for _, nn := range n.parts {
|
||||
if n.Parts != nil {
|
||||
vv := v.GetChildrenVisitor("Parts")
|
||||
for _, nn := range n.Parts {
|
||||
nn.Walk(vv)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ type EncapsedStringPart struct {
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewEncapsedStringPart(value string) node.Node {
|
||||
func NewEncapsedStringPart(Value string) node.Node {
|
||||
return &EncapsedStringPart{
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
"Value": Value,
|
||||
},
|
||||
nil,
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ type Lnumber struct {
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewLnumber(value string) node.Node {
|
||||
func NewLnumber(Value string) node.Node {
|
||||
return &Lnumber{
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
"Value": Value,
|
||||
},
|
||||
nil,
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ type MagicConstant struct {
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewMagicConstant(value string) node.Node {
|
||||
func NewMagicConstant(Value string) node.Node {
|
||||
return &MagicConstant{
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
"Value": Value,
|
||||
},
|
||||
nil,
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@ type String struct {
|
||||
position *node.Position
|
||||
}
|
||||
|
||||
func NewString(value string) node.Node {
|
||||
func NewString(Value string) node.Node {
|
||||
return &String{
|
||||
map[string]interface{}{
|
||||
"value": value,
|
||||
"Value": Value,
|
||||
},
|
||||
nil,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user