make nodes fields public
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user