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,13 +1,18 @@
|
|||
package ssa
|
||||
|
||||
import "git.urbach.dev/cli/q/src/token"
|
||||
import (
|
||||
"git.urbach.dev/cli/q/src/token"
|
||||
"git.urbach.dev/cli/q/src/types"
|
||||
)
|
||||
|
||||
type Value interface {
|
||||
AddUse(Value)
|
||||
Alive() int
|
||||
Dependencies() []Value
|
||||
End() token.Position
|
||||
Equals(Value) bool
|
||||
IsConst() bool
|
||||
String() string
|
||||
Token() token.Token
|
||||
Start() token.Position
|
||||
Type() types.Type
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue