make nodes fields public

This commit is contained in:
z7zmey
2018-01-04 23:26:04 +02:00
parent 02807502d3
commit 469db8f9e2
141 changed files with 1192 additions and 1198 deletions

View File

@@ -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,
}

View File

@@ -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)
}
}

View File

@@ -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,
}

View File

@@ -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,
}

View File

@@ -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,
}

View File

@@ -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,
}