7 references to SingleSymbolOrDefault
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder.CapturedParametersFinder.cs (1)
165
Debug.Assert(lookupResult.
SingleSymbolOrDefault
== (object)parameter);
Binder\Binder_Expressions.cs (1)
2100
possibleField = lookupResult.
SingleSymbolOrDefault
as FieldSymbol;
Binder\Binder_Lookup.cs (1)
1103
((options & LookupOptions.NamespacesOrTypesOnly) == 0 || !(current.IsSingleViable && TypeSymbol.Equals(current.
SingleSymbolOrDefault
.ContainingType, type, TypeCompareKind.AllIgnoreOptions)))) // The nested type will shadow everything from bases
Binder\ForEachLoopBinder.cs (1)
1683
Symbol lookupSymbol = lookupResult.
SingleSymbolOrDefault
;
Binder\LookupResult.cs (2)
296
if (isNonGenericVersusGeneric(result.Symbol, this.
SingleSymbolOrDefault
))
303
if (isNonGenericVersusGeneric(this.
SingleSymbolOrDefault
, result.Symbol))
BoundTree\BoundMethodGroup.cs (1)
23
: this(syntax, typeArgumentsOpt, name, methods, lookupResult.
SingleSymbolOrDefault
, lookupResult.Error, flags, functionType: GetFunctionType(binder, syntax), receiverOpt, lookupResult.Kind, hasErrors)