SumBuiltinList

scalus.compiler.sir.lowering.SumCaseClassRepresentation.SumBuiltinList
See theSumBuiltinList companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def retrieveListElementTypeOrThrow(tp: SIRType, pos: SIRPosition, context: String): SIRType

Throwing variant for call sites whose invariant says tp must be list-shaped (e.g. the caller has just asserted isPairListConversion, or it's converting from a SumBuiltinList-shaped source). Silent getOrElse(SIRType.Data.tp) masks the bug — the wrong elem type then drives downstream conversions in the wrong shape.

Throwing variant for call sites whose invariant says tp must be list-shaped (e.g. the caller has just asserted isPairListConversion, or it's converting from a SumBuiltinList-shaped source). Silent getOrElse(SIRType.Data.tp) masks the bug — the wrong elem type then drives downstream conversions in the wrong shape.

Attributes