Dotty Documentation

0.9.0-bin-SNAPSHOT

object Inliner
extends Object

[-] Constructors

[-] Members

[+] class InlineAccessors
[+] def bodyToInline ( sym: SymDenotation ) ( implicit ctx: Context ) : Tree

The body to inline for method sym.

[+] def dropInlined ( inlined: Inlined ) ( implicit ctx: Context ) : Tree

Replace Inlined node by a block that contains its bindings and expansion

[+] def hasBodyToInline ( sym: SymDenotation ) ( implicit ctx: Context ) : Boolean

sym has an inline method with a known body to inline (note: definitions coming from Scala2x class files might be @inline, but still lack that body.

[+] def inlineCall ( tree: Tree , pt: Type ) ( implicit ctx: Context ) : Tree

Try to inline a call to a @inline method. Fail with error if the maximal inline depth is exceeded.

[+] def isLocal ( sym: Symbol , inlineMethod: Symbol ) ( implicit ctx: Context ) : Boolean
[+] private def qualifier ( tree: Tree ) ( implicit ctx: Context ) : Tree [ Type ]

The qualifier part of a Select or Ident. For an Ident, this is the This of the current class. (TODO: use elsewhere as well?)

[+] def registerInlineInfo ( inlined: Symbol , treeExpr: Context => Tree ) ( implicit ctx: Context ) : Unit

Register inline info for given inline method sym.