Added enum sections to tree
This commit is contained in:
@@ -13,6 +13,7 @@ type SyntaxTree struct {
|
||||
requires []string
|
||||
typeSections map[string] *TypeSection
|
||||
objtSections map[string] *ObjtSection
|
||||
enumSections map[string] *EnumSection
|
||||
dataSections map[string] *DataSection
|
||||
}
|
||||
|
||||
@@ -191,3 +192,13 @@ type ObjtSection struct {
|
||||
permission types.Permission
|
||||
members map[string] ObjtMember
|
||||
}
|
||||
|
||||
// EnumSection represents an enumerated type section.
|
||||
type EnumSection struct {
|
||||
location file.Location
|
||||
name string
|
||||
|
||||
what Type
|
||||
permission types.Permission
|
||||
members map[string] Argument
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user