Updated ToString methods to match new tree structure

This commit is contained in:
Sasha Koshka
2022-08-20 12:40:44 -04:00
parent 222c47ced9
commit fc1568aece
2 changed files with 62 additions and 37 deletions

View File

@@ -166,21 +166,11 @@ type TypeSection struct {
location file.Location
name string
what Type
inherits Type
permission types.Permission
defaultValue Argument
}
// ObjtSection represents an object type definition
type ObjtSection struct {
location file.Location
name string
what Type
permission types.Permission
children map[string] ObjtMember
}
// ObjtMember represents a part of an object type definition.
type ObjtMember struct {
location file.Location
@@ -190,3 +180,13 @@ type ObjtMember struct {
permission types.Permission
defaultValue Argument
}
// ObjtSection represents an object type definition
type ObjtSection struct {
location file.Location
name string
inherits Type
permission types.Permission
members map[string] ObjtMember
}