Dotty Documentation

0.6.0-bin-SNAPSHOT

trait NamerContextOps
extends Object

[-] Constructors

[-] Members

[+] def adjustModuleCompleter ( completer: LazyType , name: Name ) : LazyType

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.

[+] def denotNamed ( name: Name ) : Denotation

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

[+] def effectiveScope : Scope

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 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

[+] def normalizeIfConstructor ( termParamss: List [ List [ Symbol ] ] , isConstructor: Boolean ) : List [ List [ Symbol ] ]

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