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,15 @@
|
|||
package ssa
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.urbach.dev/cli/q/src/types"
|
||||
)
|
||||
|
||||
type Syscall struct {
|
||||
Arguments
|
||||
Liveness
|
||||
HasToken
|
||||
Source
|
||||
}
|
||||
|
||||
func (a *Syscall) Equals(v Value) bool {
|
||||
|
@ -23,5 +27,9 @@ func (v *Syscall) IsConst() bool {
|
|||
}
|
||||
|
||||
func (v *Syscall) String() string {
|
||||
return fmt.Sprintf("syscall%v", v.Args)
|
||||
return fmt.Sprintf("syscall(%v)", v.Arguments)
|
||||
}
|
||||
|
||||
func (v *Syscall) Type() types.Type {
|
||||
return types.Any
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue