Something went wrong. Try again.
🌱 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
123456789101112131415161718192021222324252627package ssa
import "git.urbach.dev/cli/q/src/types"
// Enum is an enum type reference.type Enum struct { Typ *types.Enum Independent Void Source}
// Equals returns true if the enums are equal.func (a *Enum) Equals(v Value) bool { b, sameType := v.(*Enum)
if !sameType { return false }
return a.Typ == b.Typ}
// String returns the name of the enum type.func (e *Enum) String() string { return e.Typ.Name()}