PrepareInlineable

dotty.tools.dotc.inlines.PrepareInlineable

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def addAccessorDefs(cls: Symbol, body: List[Tree])(using Context): List[Tree]
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.

Attributes

def isLocal(sym: Symbol, inlineMethod: Symbol)(using Context): Boolean
def isLocalOrParam(sym: Symbol, inlineMethod: Symbol)(using Context): Boolean
def makeInlineable(tree: Tree)(using Context): Tree
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 parameters

ctx

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

inlined

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.

Attributes

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.

Attributes