class ExpandSums extends Phase
Expand sum types and their catamorphisms to equivalent product type operations.
- Source
- ExpandSums.scala
- Alphabetic
- By Inheritance
- ExpandSums
- Phase
- Logging
- Function1
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ExpandSums()
Type Members
Value Members
- val Disc1: LiteralNode
- val DiscNone: LiteralNode
- def andThen[A](g: (CompilerState) => A): (CompilerState) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(state: CompilerState): CompilerState
Run the phase
Run the phase
- Definition Classes
- ExpandSums → Phase → Function1
- def buildMultiColumnNone(tpe: Type): Node
Create a Node representing a structure of null values of the given Type
- def collectDiscriminatorCandidates(n: Node): Set[(TypeSymbol, List[TermSymbol])]
Collect discriminator candidate fields in a predicate.
Collect discriminator candidate fields in a predicate. These are all paths below an OptionApply, which indicates their future use under a discriminator guard.
- def compose[A](g: (A) => CompilerState): (A) => CompilerState
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def expandConditionals(n: Node): Node
Expand multi-column conditional expressions and SilentCasts.
Expand multi-column conditional expressions and SilentCasts. Single-column conditionals involving NULL values are optimized away where possible.
- def expandSums(n: Node): Node
- def fuse(n: Node): Node
Fuse unnecessary Option operations
- val name: String
The unique name of the phase
The unique name of the phase
- Definition Classes
- ExpandSums → Phase
- def silentCast(tpe: Type, n: Node): Node
Create a SilentCast call unless the type already matches
- def toOptionColumns(tpe: Type): Type
Strip nominal types and convert all atomic types to OptionTypes
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- def trType(tpe: Type): Type
Perform the sum expansion on a Type
- def translateJoin(bind: Bind, discCandidates: Set[(TypeSymbol, List[TermSymbol])]): Bind
Translate an Option-extended left outer, right outer or full outer join
- object PathOnTypeSymbol
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...