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.
Return the closest enclosing context that defines a subclass of clazz
or a companion object thereof, or NoContext
if no such context exists.
Return closest enclosing context that defines a superclass of clazz
, or a
companion module of a superclass of clazz
, or NoContext if none exists
Return closest enclosing context that defines a superclass of clazz
, or a
companion module of a superclass of clazz
, or NoContext if none exists
Is sym
accessible as a member of tree site
with type
pre
in current context?
Is sym
accessible as a member of tree site
with type
pre
in current context?
Fast path for some slow checks (ambiguous assignment in Refchecks, and existence of match for MatchTranslation in virtpatmat.) This logic probably needs improvement.
Fast path for some slow checks (ambiguous assignment in Refchecks, and existence of match for MatchTranslation in virtpatmat.) This logic probably needs improvement.
Is sub
a subclass of base
or a companion object of such a subclass?
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