scala.tools.nsc.typechecker.Contexts
Return the closest enclosing context that defines a subclass of clazz
or a companion object thereof, or NoContext
if no such context exists.
The symbol with name name
imported via the import in imp
,
if any such symbol is accessible from this context.
Is sym
accessible as a member of pre
in current context?
Is sym
defined in package object of package pkg
?
Since sym may be defined in some parent of the package object,
we cannot inspect its owner only; we have to go through the
info of the package object.
Is sym
defined in package object of package pkg
?
Since sym may be defined in some parent of the package object,
we cannot inspect its owner only; we have to go through the
info of the package object. However to avoid cycles we'll check
what other ways we can before pushing that way.
Is sub
a subclass of base
or a companion object of such a subclass?
Find a symbol in this context or one of its outers.
Find a symbol in this context or one of its outers.
Used to find symbols are owned by methods (or fields), they can't be found in some scope.
Examples: companion module of classes owned by a method, default getter methods of nested methods. See NamesDefaults.scala
Find the symbol of a simple name starting from this context.
Find the symbol of a simple name starting from this context. All names are filtered through the "qualifies" predicate, the search continuing as long as no qualifying name is found.
(context: StringAdd).self
(context: StringFormat).self
(context: ArrowAssoc[Analyzer.Context]).x
(Since version 2.10.0) Use leftOfArrow
instead
(context: Ensuring[Analyzer.Context]).x
(Since version 2.10.0) Use resultOfEnsuring
instead