type-section-rework #6

Merged
sashakoshka merged 46 commits from type-section-rework into main 2022-09-17 10:36:27 -06:00
Showing only changes of commit 6e7a38a7a9 - Show all commits

View File

@ -125,26 +125,6 @@ func (member TypeMember) BitWidth () (width uint64) {
return
}
// Values returns an iterator for the initialization values.
func (values ObjectDefaultValues) Sections () (
iterator types.Iterator[Argument],
) {
iterator = types.NewIterator(values.attributes)
return
}
// Length returns the amount of values.
func (values ArrayDefaultValues) Length () (length int) {
length = len(values.values)
return
}
// Item returns the value at index.
func (values ArrayDefaultValues) Value (index int) (value Argument) {
value = values.values[index]
return
}
// Kind returns what kind of argument it is.
func (argument Argument) Kind () (kind ArgumentKind) {
kind = argument.kind