c

slick.compiler

CompilerState

class CompilerState extends AnyRef

The current state of a compiler run, consisting of the current AST and additional immutable state of individual phases. Mutability is confined to the SymbolNamer. The state is tied to a specific compiler instance so that phases can call back into the compiler.

Source
QueryCompiler.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CompilerState
  2. AnyRef
  3. Any
Implicitly
  1. by StringFormat
  2. by Ensuring
  3. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CompilerState(compiler: QueryCompiler, tree: Node)

Value Members

  1. def +[S, P <: Phase { type State = S }](t: (P, S)): CompilerState

    Return a new CompilerState with the given mapping of phase to phase state

  2. val compiler: QueryCompiler
  3. def get[P <: Phase](p: P): Option[get.P.State]

    Get the phase state for a phase

  4. def map(f: (Node) => Node): CompilerState

    Return a new CompilerState with a transformed AST

  5. val symbolNamer: SymbolNamer
  6. val tree: Node
  7. val wellTyped: Boolean
  8. def withNode(tree: Node): CompilerState

    Return a new CompilerState which encapsulates the specified AST

  9. def withWellTyped(wellTyped: Boolean): CompilerState

    Return a new CompilerState which indicates whether or not the AST should be well-typed after every phase.