trait NamerContextOps

Constructors

Members

def adjustModuleCompleter ( completer: LazyType , name: Name ) : LazyType

Add moduleClass or sourceModule functionality to completer for a module or module class

Add moduleClass or sourceModule functionality to completer for a module or module class

def defContext ( sym: Symbol ) : Context

Context where sym is defined, assuming we are in a nested context.

Context where sym is defined, assuming we are in a nested context.

def denotNamed ( name: Name ) : Denotation

The denotation with the given name in current context

The denotation with the given name in current context

def effectiveResultType ( sym: Symbol , typeParams: List [ Symbol ] , given: Type ) : Type

The given type, unless sym is a constructor, in which case the type of the constructed instance is returned

The given type, unless sym is a constructor, in which case the type of the constructed instance is returned

def effectiveScope : Scope

Either the current scope, or, if the current context owner is a class, the declarations of the current class.

Either the current scope, or, if the current context owner is a class, the declarations of the current class.

[+] def enter ( sym: Symbol ) : Symbol

Enter symbol into current class, if current class is owner of current context, or into current scope, if not. Should always be called instead of scope....

Enter symbol into current class, if current class is owner of current context, or into current scope, if not. Should always be called instead of scope.enter in order to make sure that updates to class members are reflected in finger prints.

def methodType ( typeParams: List [ Symbol ] , valueParamss: List [ List [ Symbol ] ] , resultType: Type , isJava: Boolean ) ( implicit ctx: Context ) : Type

The method type corresponding to given parameters and result type

The method type corresponding to given parameters and result type

def methodType$default$4 : Boolean

The method type corresponding to given parameters and result type

The method type corresponding to given parameters and result type

def normalizeIfConstructor ( paramSymss: List [ List [ Symbol ] ] , isConstructor: Boolean ) : List [ A ]

if isConstructor, make sure it has one non-implicit parameter list

if isConstructor, make sure it has one non-implicit parameter list

def symOfContextTree ( tree: Tree ) : Symbol

The symbol (stored in some typer's symTree) of an enclosing context definition

The symbol (stored in some typer's symTree) of an enclosing context definition