2 overrides of CandidateSymbols
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ErrorTypeSymbol.cs (1)
633
public override ImmutableArray<Symbol>
CandidateSymbols
Symbols\ExtendedErrorTypeSymbol.cs (1)
115
public override ImmutableArray<Symbol>
CandidateSymbols
=> _candidateSymbols.NullToEmpty();
16 references to CandidateSymbols
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Attributes.cs (3)
174
if (errorType.
CandidateSymbols
.Length == 1 && errorType.
CandidateSymbols
[0] is NamedTypeSymbol)
176
attributeTypeForBinding = (NamedTypeSymbol)errorType.
CandidateSymbols
[0];
Binder\Binder_Lookup.cs (3)
222
if (!errorType.
CandidateSymbols
.IsDefault && errorType.
CandidateSymbols
.Length == 1)
229
TypeSymbol candidateType = errorType.
CandidateSymbols
.First() as TypeSymbol;
Compilation\CSharpSemanticModel.cs (5)
1981
return new SymbolInfo(originalErrorType.
CandidateSymbols
.GetPublicSymbols(), originalErrorType.ResultKind.ToCandidateReason());
1997
builder.AddRange(originalErrorSymbol.
CandidateSymbols
);
2329
symbols = OneOrMany.Create(originalErrorSymbol.
CandidateSymbols
);
3412
symbols = OneOrMany.Create(originalErrorType.
CandidateSymbols
);
3595
var candidateSymbols = errorType.
CandidateSymbols
;
Symbols\ErrorTypeSymbol.cs (2)
70
if (!
CandidateSymbols
.IsEmpty)
635
get { return _originalDefinition.
CandidateSymbols
; }
Symbols\ExtendedErrorTypeSymbol.cs (2)
91
return ((object?)candidate != null && !candidate.
CandidateSymbols
.IsEmpty) ? candidate.
CandidateSymbols
: candidateSymbols;
Symbols\PublicModel\ErrorTypeSymbol.cs (1)
34
ImmutableArray<ISymbol> IErrorTypeSymbol.CandidateSymbols => _underlying.
CandidateSymbols
.SelectAsArray(s => s.GetPublicSymbol());