Improved type system checks

This commit is contained in:
Eduard Urbach 2025-02-10 14:09:27 +01:00
parent f1c8b2daf5
commit e2f607805c
Signed by: eduard
GPG key ID: 49226B848C78F6C8
9 changed files with 49 additions and 61 deletions

View file

@ -11,19 +11,20 @@ import (
// Function represents the smallest unit of code.
type Function struct {
register.Machine
Package string
Name string
UniqueName string
File *fs.File
Body token.List
Input []*Input
Output []*Output
Functions map[string]*Function
Structs map[string]*types.Struct
DLLs dll.List
Err error
deferred []func()
count counter
Package string
Name string
UniqueName string
File *fs.File
Body token.List
Input []*Input
Output []*Output
OutputTypes []types.Type
Functions map[string]*Function
Structs map[string]*types.Struct
DLLs dll.List
Err error
deferred []func()
count counter
}
// counter stores how often a certain statement appeared so we can generate a unique label from it.