CompilerState

slick.compiler.CompilerState

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.

Attributes

Source:
QueryCompiler.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Constructors

def this(compiler: QueryCompiler, tree: Node)

Attributes

Source:
QueryCompiler.scala

Concrete methods

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

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

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

Attributes

Source:
QueryCompiler.scala
def get[P <: Phase](p: P): Option[State]

Get the phase state for a phase

Get the phase state for a phase

Attributes

Source:
QueryCompiler.scala

Return a new CompilerState with a transformed AST

Return a new CompilerState with a transformed AST

Attributes

Source:
QueryCompiler.scala

Return a new CompilerState which encapsulates the specified AST

Return a new CompilerState which encapsulates the specified AST

Attributes

Source:
QueryCompiler.scala
def withWellTyped(wellTyped: Boolean): CompilerState

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

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

Attributes

Source:
QueryCompiler.scala

Concrete fields

val tree: Node

Attributes

Source:
QueryCompiler.scala
val wellTyped: Boolean

Attributes

Source:
QueryCompiler.scala