The referencing symbol, or NoSymbol is none exists
The denotation made up from the alternatives of this denotation that
are accessible from prefix pre
, or NoDenotation if no accessible alternative exists.
The alternatives of this denotation that satisfy the predicate p
.
Resolve overloaded denotation to pick the ones with the given signature
when seen from prefix site
.
Resolve overloaded denotation to pick the ones with the given signature
when seen from prefix site
.
When true, consider only parameter signatures for a match.
The variant of this denotation that's current in the given context.
The variant of this denotation that's current in the given context. If no such denotation exists, returns the denotation with each alternative at its first point of definition.
Does this denotation have an alternative that satisfies the predicate p
?
The type info of the denotation, exists only for non-overloaded denotations
The type info, or, if this is a SymDenotation where the symbol is not yet completed, the completer
Is this a reference to a type symbol?
A denotation with the info of this denotation transformed using f
The signature of the denotation.
The unique alternative of this denotation that satisfies the predicate p
,
or NoDenotation if no satisfying alternative exists.
The unique alternative of this denotation that satisfies the predicate p
,
or NoDenotation if no satisfying alternative exists.
TypeError
if there is at more than one alternative that satisfies p
.
The period during which this denotation is valid.
Form a denotation by conjoining with denotation that
.
Form a denotation by conjoining with denotation that
.
NoDenotations are dropped. MultiDenotations are handled by merging parts with same signatures. SingleDenotations with equal signatures are joined as follows:
In a first step, consider only those denotations which have symbols
that are accessible from prefix pre
.
If there are several such denotations, try to pick one by applying the following three precedence rules in decreasing order of priority:
If there is exactly one (preferred) accessible denotation, return it.
If there is no preferred accessible denotation, return a JointRefDenotation
with one of the operand symbols (unspecified which one), and an info which
is the intersection (using &
or safe_&
if safeIntersection
is true)
of the infos of the operand denotations.
If SingleDenotations with different signatures are joined, return NoDenotation.
The set of alternative single-denotations making up this denotation
If this is a SingleDenotation, return it, otherwise throw a TypeError
If this denotation is overloaded, filter with given predicate.
If this denotation is overloaded, filter with given predicate. If result is still overloaded throw a TypeError. Note: disambiguate is slightly different from suchThat in that single-denotations that do not satisfy the predicate are left alone (whereas suchThat would map them to NoDenotation).
Is this denotation different from NoDenotation or an ErrorDenotation?
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
Find member of this denotation with given name and
produce a denotation that contains the type of the member
as seen from given prefix pre
.
Find member of this denotation with given name and
produce a denotation that contains the type of the member
as seen from given prefix pre
. Exclude all members that have
flags in excluded
from consideration.
Is this denotation overloaded?
Is this a reference to a term symbol?
The alternative of this denotation that has a type matching targetType
when seen
as a member of type site
, NoDenotation
if none exists.
Merge two lists of names.
Merge two lists of names. If names in corresponding positions match, keep them, otherwise generate new synthetic names.
If this denotation does not exist, fallback to alternative
Return symbol in this denotation that satisfies the given predicate.
Return symbol in this denotation that satisfies the given predicate.
if generateStubs is specified, return a stubsymbol if denotation is a missing ref.
Throw a TypeError
if predicate fails to disambiguate symbol or no alternative matches.
The string representation of this showable element.
The string representation of this showable element.
The summarized string representation of this showable element.
The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.
The referencing symbol, or NoSymbol is none exists
The text representation of this showable element.
The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.
Throws an UnsupportedOperationException
with the given method name.
Throws an UnsupportedOperationException
with the given method name.
Form a choice between this denotation and that one.
Form a choice between this denotation and that one.
The prefix type of the members of the denotation, used to determine an accessible symbol if it exists.
A denotation is the result of resolving a name (either simple identifier or select) during a given period.
Denotations can be combined with
&
and|
. & is conjunction, | is disjunction.&
will create an overloaded denotation from two non-overloaded denotations if their signatures differ. Analogously|
of two denotations with different signatures will give an empty denotationNoDenotation
.A denotation might refer to
NoSymbol
. This is the case if the denotation was produced from a disjunction of two denotations with different symbols and there was no common symbol in a superclass that could substitute for both symbols. Here is an example:Say, we have:
class A { def f: A } class B { def f: B } val x: A | B = if (test) new A else new B val y = x.f
Then the denotation of
y
isSingleDenotation(NoSymbol, A | B)
.