Implemented source tracking and type checking
All checks were successful
/ test (push) Successful in 21s

This commit is contained in:
Eduard Urbach 2025-06-27 00:05:16 +02:00
parent 70c2da4a4d
commit 329fcfff6f
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
30 changed files with 427 additions and 125 deletions

View file

@ -1,11 +1,17 @@
package ssa
import "fmt"
import (
"fmt"
"git.urbach.dev/cli/q/src/types"
)
type Parameter struct {
Index uint8
Name string
Typ types.Type
Liveness
HasToken
Source
}
func (v *Parameter) Dependencies() []Value {
@ -27,5 +33,9 @@ func (v *Parameter) IsConst() bool {
}
func (v *Parameter) String() string {
return fmt.Sprintf("arg[%d]", v.Index)
return fmt.Sprintf("in[%d]", v.Index)
}
func (v *Parameter) Type() types.Type {
return v.Typ
}