Created test case for type section

This commit is contained in:
Sasha Koshka
2022-08-18 16:56:42 -04:00
parent a548dcc585
commit bc9beb0317
3 changed files with 82 additions and 1 deletions

View File

@@ -156,6 +156,27 @@ type DataSection struct {
name string
what Type
value Argument
permission types.Permission
value Argument
}
// TypeMember represents member data
type TypeMember struct {
location file.Location
name string
what Type
permission types.Permission
defaultValue Argument
}
// TypeSection represents a type definition.
type TypeSection struct {
location file.Location
name string
what Type
permission types.Permission
// this should be 1 dimensional for now.
members map[string] TypeMember
}