5 references to SingleSymbolOrDefault
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder.CapturedParametersFinder.cs (1)
165Debug.Assert(lookupResult.SingleSymbolOrDefault == (object)parameter);
Binder\Binder_Expressions.cs (1)
2017possibleField = lookupResult.SingleSymbolOrDefault as FieldSymbol;
Binder\Binder_Lookup.cs (1)
1029((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)
1646Symbol lookupSymbol = lookupResult.SingleSymbolOrDefault;
BoundTree\BoundMethodGroup.cs (1)
23: this(syntax, typeArgumentsOpt, name, methods, lookupResult.SingleSymbolOrDefault, lookupResult.Error, flags, functionType: GetFunctionType(binder, syntax), receiverOpt, lookupResult.Kind, hasErrors)