scalus.sir
Members list
Type members
Classlikes
Transforms error messages in SIR to abbreviated forms and collects a mapping of abbreviations to original messages.
Transforms error messages in SIR to abbreviated forms and collects a mapping of abbreviations to original messages.
This transformation helps reduce the size of error messages in the IR while maintaining traceability through a mapping of abbreviated forms to their original messages.
Attributes
- Example
-
// Input SIR containing: Error("Failed validation"), Error("Failed execution") // Transforms to: Error("FV"), Error("FE") // With mapping: Map("FV" -> "Failed validation", "FE" -> "Failed execution") val transformer = new AbbreviateErrorTraces val result = transformer.transformSIR(input) val abbrevMap = transformer.getAbbreviationMap - Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
AnnotationsDecl.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Provides optimization functionality for boolean expressions in SIR. Applies standard boolean algebra transformations to reduce the number of nodes and simplify expressions.
Provides optimization functionality for boolean expressions in SIR. Applies standard boolean algebra transformations to reduce the number of nodes and simplify expressions.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BooleanOptimizer.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
EnrichedSIR[P,T] mirrors the structure of SIR trait but allows parameterization with pattern type P and info type T.
EnrichedSIR[P,T] mirrors the structure of SIR trait but allows parameterization with pattern type P and info type T.
For each SIR case class Xxx, there is a sealed trait Xxx[P,T] with two cases:
- XxxPattern[P,T](pattern: P, info: T) representing a pattern node
- XxxInfo[P,T] with the same parameters as origin SIR, but using appropriate traits from EnrichedSIR[P,T] and with additional info: T
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
EnrichedSIR.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
ModuleToExpr.type
Pretty printers.
Pretty printers.
- Use
prettyto pretty print to a org.typelevel.paiges.Doc. - Use
prettyXTermto pretty print to a org.typelevel.paiges.Doc with syntax highlighting for XTerm.
For example:
PrettyPrinter.prettyXTerm(sir).render(80)
// renders a single line if possible
PrettyPrinter.pretty(sir).flatten.render(120)
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PrettyPrinter.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RemoveRecursivity.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RenamingTypeVars.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SIRBuiltins.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SIRChecker.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SIRModuleWithDeps
Default compiler options for SIR processing. Here to have a single place for default options, which is shared between the compiler plugin and the core library.
Default compiler options for SIR processing. Here to have a single place for default options, which is shared between the compiler plugin and the core library.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SIRDefaultOptions.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_SIRHashCodeInRec_FunShow all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SIRHashCodeInRec.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SIRMacro.type
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SIRModuleWithDeps.type
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SIRPattern.type
SIR Position - position in Scala source code.
SIR Position - position in Scala source code.
Value parameters
- file
-
-- fiel of position. Empty file ("") means that position is unknown.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SIRPosition.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class CaseClassobject FreeUnificatorclass Funtrait Primitiveobject BLS12_381_G1_Elementobject BLS12_381_G2_Elementobject BLS12_381_MlResultobject Booleanobject ByteStringobject Dataobject Integerobject Stringobject Unitclass SumCaseClassclass TypeLambdaclass TypeNonCaseModuleobject TypeNothingclass TypeProxyclass TypeVarShow all
Attributes
- Supertypes
- Self type
-
SIRTypeToExpr.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SIRUnify.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SIRVarStorage.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait ToExpr[T]class Objecttrait Matchableclass Any
- Known subtypes
Called from SIRConverter via reflection.
Note, that this hashconsedflat should not be resolved as given. It is used only as parameter to ToExprHS. Given HashConsedFlat[(something other then Module)] is a no-no.
Note, that this hashconsedflat should not be resolved as given. It is used only as parameter to ToExprHS. Given HashConsedFlat[(something other then Module)] is a no-no.
Attributes
- Supertypes
- Self type
-
ToExprHSSIRTypeFlat.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all