Implemented source tracking and type checking
All checks were successful
/ test (push) Successful in 21s
All checks were successful
/ test (push) Successful in 21s
This commit is contained in:
parent
70c2da4a4d
commit
329fcfff6f
30 changed files with 427 additions and 125 deletions
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue