PrepareInlineable

class Object
trait Matchable
class Any

Type members

Classlikes

Value members

Concrete methods

def dropInlineIfError(sym: Symbol, op: => Tree)(using Context): Tree

Return result of evaluating op, but drop Inline flag and Body annotation of sym in case that leads to errors.

Return result of evaluating op, but drop Inline flag and Body annotation of sym in case that leads to errors.

def isLocal(sym: Symbol, inlineMethod: Symbol)(using Context): Boolean
def isLocalOrParam(sym: Symbol, inlineMethod: Symbol)(using Context): Boolean
def registerInlineInfo(inlined: Symbol, treeExpr: Context => Tree)(using Context): Unit

Register inline info for given inlineable method sym.

Register inline info for given inlineable method sym.

Value Params
ctx

The context to use for evaluating treeExpr. It needs to have the inline method as owner.

sym

The symbol denotation of the inlineable method for which info is registered

treeExpr

A function that computes the tree to be inlined, given a context This tree may still refer to non-public members.

def wrapRHS(original: DefDef, tpt: Tree, rhs: Tree)(using Context): Tree

The type ascription rhs: tpt, unless original is transparent.

The type ascription rhs: tpt, unless original is transparent.