trait LiveVariables extends ExprBuilder
- Alphabetic
- By Inheritance
- LiveVariables
- 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, andnestedClassetc 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
- Implicit
- This member is added by an implicit conversion from LiveVariables to any2stringadd[LiveVariables] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (LiveVariables, B)
- Implicit
- This member is added by an implicit conversion from LiveVariables to ArrowAssoc[LiveVariables] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
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
AsyncBlockBuilderto create an instance ofAsyncBlock.Uses
AsyncBlockBuilderto create an instance ofAsyncBlock.- block
a
Blocktree 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
twith 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
twith 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: (LiveVariables) ⇒ Boolean, msg: ⇒ Any): LiveVariables
- Implicit
- This member is added by an implicit conversion from LiveVariables to Ensuring[LiveVariables] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (LiveVariables) ⇒ Boolean): LiveVariables
- Implicit
- This member is added by an implicit conversion from LiveVariables to Ensuring[LiveVariables] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): LiveVariables
- Implicit
- This member is added by an implicit conversion from LiveVariables to Ensuring[LiveVariables] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): LiveVariables
- Implicit
- This member is added by an implicit conversion from LiveVariables to Ensuring[LiveVariables] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fieldsToNullOut(asyncStates: List[AsyncState], finalState: AsyncState, liftables: List[Global.Tree]): LinkedHashMap[Int, (LinkedHashSet[Global.Symbol], LinkedHashSet[Global.Symbol])]
Live variables data-flow analysis.
Live variables data-flow analysis.
Find, for each lifted field, the last state where the field is used.
- asyncStates
the states of an
asyncblock- liftables
the lifted fields
- returns
a map which indicates fields which are used for the final time in each state.
-
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
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
asyncblock in order to: - Report unsupportedawaitcalls under nested templates, functions, by-name arguments.Analyze the contents of an
asyncblock in order to: - Report unsupportedawaitcalls 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): (LiveVariables, B)
- Implicit
- This member is added by an implicit conversion from LiveVariables to ArrowAssoc[LiveVariables] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
-
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 LiveVariables to StringFormat[LiveVariables] 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,formattedresolves to the new method in String which has reversed parameters.
The Scala compiler and reflection APIs.