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

@@ -8,12 +8,12 @@ type FullyQualified struct {
Name
}
func NewFullyQualified(parts []node.Node) node.Node {
func NewFullyQualified(Parts []node.Node) node.Node {
return &FullyQualified{
Name{
map[string]interface{}{},
nil,
parts,
Parts,
},
}
}

View File

@@ -7,14 +7,14 @@ import (
type Name struct {
attributes map[string]interface{}
position *node.Position
parts []node.Node
Parts []node.Node
}
func NewName(parts []node.Node) node.Node {
func NewName(Parts []node.Node) node.Node {
return &Name{
map[string]interface{}{},
nil,
parts,
Parts,
}
}
@@ -36,9 +36,9 @@ func (n Name) 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 NamePart struct {
position *node.Position
}
func NewNamePart(value string) node.Node {
func NewNamePart(Value string) node.Node {
return &NamePart{
map[string]interface{}{
"value": value,
"Value": Value,
},
nil,
}

View File

@@ -8,12 +8,12 @@ type Relative struct {
Name
}
func NewRelative(parts []node.Node) node.Node {
func NewRelative(Parts []node.Node) node.Node {
return &Relative{
Name{
map[string]interface{}{},
nil,
parts,
Parts,
},
}
}