Did the same thing with default values

This commit is contained in:
2022-09-04 03:31:35 -04:00
parent e0a04e68e3
commit 899f4815bc
6 changed files with 34 additions and 23 deletions

View File

@@ -161,8 +161,7 @@ type TypeSection struct {
nameable
typeable
permissionable
defaultValue Argument
valuable
}
// ObjtMember represents a part of an object type definition.
@@ -171,9 +170,9 @@ type ObjtMember struct {
nameable
typeable
permissionable
valuable
bitWidth uint64
defaultValue Argument
}
// ObjtSection represents an object type definition.
@@ -190,7 +189,7 @@ type ObjtSection struct {
type EnumMember struct {
locatable
nameable
value Argument
valuable
}
// EnumSection represents an enumerated type section.
@@ -262,7 +261,7 @@ type Block []Phrase
// that it can have a default value.
type FuncOutput struct {
Declaration
defaultValue Argument
valuable
}
// FuncSection represents a function section.