7 references to SingleSymbolOrDefault
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder.CapturedParametersFinder.cs (1)
165Debug.Assert(lookupResult.SingleSymbolOrDefault == (object)parameter);
Binder\Binder_Expressions.cs (1)
2100possibleField = 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)
1683Symbol lookupSymbol = lookupResult.SingleSymbolOrDefault;
Binder\LookupResult.cs (2)
296if (isNonGenericVersusGeneric(result.Symbol, this.SingleSymbolOrDefault)) 303if (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)