object Apply extends Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Apply
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def makeProtected(fun: Tree, args: List[Tree])(implicit pos: Position): Apply

    Builds an Apply that is protected against accidental this binding and lexically-scoped eval.

    Builds an Apply that is protected against accidental this binding and lexically-scoped eval.

    By default, if the fun is syntactically a DotSelect or BracketSelect, an Apply node binds this to the qualifier of the selection.

    Likewise, by default, if the fun happens to be a bare eval identifier, the Apply node executes the eval'ed code in the current lexical scope, as opposed to the global scope.

    This builder method protects the fun against both of those accidental semantic quirks.