Altered tree so that object members are stored in an array
This commit is contained in:
@@ -327,8 +327,8 @@ func (section *ObjtSection) ToString (indent int) (output string) {
|
||||
section.name, ":",
|
||||
section.inherits.ToString(), "\n")
|
||||
|
||||
for _, name := range sortMapKeysAlphabetically(section.members) {
|
||||
output += section.members[name].ToString(indent + 1)
|
||||
for _, member := range section.members {
|
||||
output += member.ToString(indent + 1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -192,8 +192,7 @@ type ObjtSection struct {
|
||||
|
||||
inherits Identifier
|
||||
permission types.Permission
|
||||
// TODO: order matters here we need to store these in an array
|
||||
members map[string] ObjtMember
|
||||
members []ObjtMember
|
||||
}
|
||||
|
||||
type EnumMember struct {
|
||||
|
||||
Reference in New Issue
Block a user