Reduced interface bloat
All checks were successful
/ test (push) Successful in 32s

This commit is contained in:
Eduard Urbach 2025-07-03 20:12:11 +02:00
parent ba2314db4a
commit b77d876ebb
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
11 changed files with 36 additions and 37 deletions

View file

@ -1,29 +1,16 @@
package ssa
import (
"git.urbach.dev/cli/q/src/token"
"git.urbach.dev/cli/q/src/types"
)
type Value interface {
// Essentials
Debug(bool) string
Dependencies() []Value
Equals(Value) bool
ID() int
IsConst() bool
SetID(int)
String() string
Type() types.Type
// Arguments
Dependencies() []Value
Equals(Value) bool
// Liveness
AddUser(Value)
CountUsers() int
// Source
SetSource(token.List)
Start() token.Position
End() token.Position
}