trait Lifter extends ExprBuilder
- Alphabetic
- By Inheritance
- Lifter
- ExprBuilder
- AsyncAnalysis
- TransformUtils
- AsyncTransformStates
- TypingTransformers
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
ThicketTransformer extends TypingTransformer
A base class for typing transformers that need to perform "thicket expansion".
A base class for typing transformers that need to perform "thicket expansion". A thicket is the output of a transformation that is flattened into the enclosing block.
- Definition Classes
- TypingTransformers
-
abstract
class
TypingTransformer extends Global.Transformer
- Definition Classes
- TypingTransformers
-
class
AsyncTransformState extends AnyRef
- Definition Classes
- AsyncTransformStates
-
trait
AsyncBlock extends AnyRef
- Definition Classes
- ExprBuilder
-
final
class
AsyncState extends AnyRef
- Definition Classes
- ExprBuilder
-
trait
AsyncTraverser extends Global.Traverser
Descends into the regions of the tree that are subject to the translation to a state machine by
async
.Descends into the regions of the tree that are subject to the translation to a state machine by
async
. When a nested template, function, or by-name argument is encountered, the descent stops, andnestedClass
etc are invoked.- Definition Classes
- TransformUtils
Abstract Value Members
-
abstract
val
global: Global
- Definition Classes
- AsyncTransformStates → TypingTransformers
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Lifter, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
lazy val
IllegalStateExceptionClass: Global.Symbol
- Definition Classes
- TransformUtils
-
lazy val
IllegalStateExceptionClass_NEW_String: Global.Symbol
- Definition Classes
- TransformUtils
-
def
adaptToUnit(rhs: List[Global.Tree]): Global.Block
- Definition Classes
- TransformUtils
-
def
addLabelState(label: Global.Symbol): Int
- Definition Classes
- ExprBuilder
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assignUnitType(t: Global.Tree): t.type
- Definition Classes
- TransformUtils
-
def
buildAsyncBlock(block: Global.Block): AsyncBlock
Uses
AsyncBlockBuilder
to create an instance ofAsyncBlock
.Uses
AsyncBlockBuilder
to create an instance ofAsyncBlock
.- block
a
Block
tree in ANF- returns
an
AsyncBlock
- Definition Classes
- ExprBuilder
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
containsAwait(t: Global.Tree): Boolean
Efficiently decorate each subtree within
t
with the result oft exists isAwait
, and return a function that can be used on derived trees to efficiently test the same condition.Efficiently decorate each subtree within
t
with the result oft exists isAwait
, and return a function that can be used on derived trees to efficiently test the same condition.If the derived tree contains synthetic wrapper trees, these will be recursed into in search of a sub tree that was decorated with the cached answer.
Requires markContainsAwaitTraverser has previously traversed
t
.- Definition Classes
- TransformUtils
-
final
def
deriveTree(tree: Global.Tree, exprType: Global.Type)(deriveExpr: (Global.Tree) ⇒ Global.Tree): Global.Tree
- Definition Classes
- TransformUtils
- def ensuring(cond: (Lifter) ⇒ Boolean, msg: ⇒ Any): Lifter
- def ensuring(cond: (Lifter) ⇒ Boolean): Lifter
- def ensuring(cond: Boolean, msg: ⇒ Any): Lifter
- def ensuring(cond: Boolean): Lifter
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
flattenBlock(tree: Global.Tree)(f: (Global.Tree) ⇒ Unit): Unit
- Definition Classes
- TransformUtils
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isAwait(fun: Global.Tree): Boolean
- Definition Classes
- TransformUtils
-
def
isBooleanAnd(sym: Global.Symbol): Boolean
- Definition Classes
- TransformUtils
-
def
isBooleanOr(sym: Global.Symbol): Boolean
- Definition Classes
- TransformUtils
-
def
isCaseLabel(sym: Global.Symbol): Boolean
- Definition Classes
- TransformUtils
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLabel(sym: Global.Symbol): Boolean
- Definition Classes
- TransformUtils
-
def
isLiteralUnit(t: Global.Tree): Boolean
- Definition Classes
- TransformUtils
-
val
isMatchEnd: (Global.Tree) ⇒ Boolean
- Definition Classes
- TransformUtils
-
def
isMatchEndLabel(sym: Global.Symbol): Boolean
- Definition Classes
- TransformUtils
-
def
isUnitType(tp: Global.Type): Boolean
- Definition Classes
- TransformUtils
-
def
liftables(asyncStates: List[AsyncState]): List[Global.Tree]
Identify which DefTrees are used (including transitively) which are declared in some state but used (including transitively) in another state.
Identify which DefTrees are used (including transitively) which are declared in some state but used (including transitively) in another state.
These will need to be lifted to class members of the state machine.
-
def
listToBlock(trees: List[Global.Tree]): Global.Block
- Definition Classes
- TransformUtils
-
def
literalBool(b: Boolean): Global.Tree
- Definition Classes
- TransformUtils
-
def
literalBoxedUnit: Global.Tree
- Definition Classes
- TransformUtils
-
def
literalUnit: Global.Tree
- Definition Classes
- TransformUtils
-
def
markContainsAwait(t: Global.Tree): Unit
- Definition Classes
- TransformUtils
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newRootLocalTyper(unit: Global.CompilationUnit): (analyzer)#Typer
- Attributes
- protected
- Definition Classes
- TypingTransformers
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
reportUnsupportedAwaits(tree: Global.Tree): Unit
Analyze the contents of an
async
block in order to: - Report unsupportedawait
calls under nested templates, functions, by-name arguments.Analyze the contents of an
async
block in order to: - Report unsupportedawait
calls under nested templates, functions, by-name arguments.Must be called on the original tree, not on the ANF transformed tree.
- Definition Classes
- AsyncAnalysis
-
def
statsAndExpr(tree: Global.Tree): (List[Global.Tree], Global.Tree)
- Definition Classes
- TransformUtils
-
def
substituteTrees(t: Global.Tree, from: List[Global.Symbol], to: List[Global.Tree]): Global.Tree
- Definition Classes
- TransformUtils
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toMultiMap[A, B](abs: Iterable[(A, B)]): LinkedHashMap[A, List[B]]
- Definition Classes
- TransformUtils
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typed(tree: Global.Tree): Global.Tree
- Definition Classes
- TransformUtils
-
def
typedPos(pos: Global.Position)(tree: Global.Tree): Global.Tree
- Definition Classes
- TransformUtils
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def →[B](y: B): (Lifter, B)
-
object
MatchEnd
- Definition Classes
- TransformUtils
-
object
UnwrapBoxedUnit
- Definition Classes
- TransformUtils
-
object
cleanupContainsAwaitAttachments extends Global.Traverser
- Definition Classes
- TransformUtils
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Lifter to StringFormat[Lifter] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
The Scala compiler and reflection APIs.