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