56 references to Member
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Attributes.cs (2)
221attributeConstructor = memberResolutionResult.Member; 228memberResolutionResult.IsValid && !binder.IsConstructorAccessible(memberResolutionResult.Member, ref useSiteInfo) ?
Binder\Binder_Expressions.cs (6)
3666if (!methodResult.Member.IsIndexer() && !argument.HasAnyErrors && parameterTypeWithAnnotations.Type.ContainsPointer()) 4935MethodSymbol resultMember = memberResolutionResult.Member; 6742var method = memberResolutionResult.Member; 6826else if (memberResolutionResult.IsValid && !IsConstructorAccessible(memberResolutionResult.Member, ref useSiteInfo)) 7181diagnostics.Add(ErrorCode.ERR_BadAccess, errorLocation, result.ValidResult.Member); 9840PropertySymbol property = resolutionResult.Member;
Binder\Binder_Invocation.cs (6)
57builder.Add(result.Member); 668if (candidate.Member.IsConditional) 681!candidate.Member.GetParameters().Last().Type.IsSZArray()) 862var parameters = candidate.Member.GetParameters(); 1185var returnType = methodResult.Member.ReturnType; 1186var method = methodResult.Member;
Binder\ForEachLoopBinder.cs (2)
1443result = overloadResolutionResult.ValidResult.Member; 1517var result = overloadResolutionResult.ValidResult.Member;
Binder\Semantics\Conversions\Conversions.cs (2)
324var method = result.BestResult.Member; 450MethodSymbol method = result.BestResult.Member;
Binder\Semantics\OverloadResolution\MemberResolutionResult.cs (1)
36return new MemberResolutionResult<TMember>(Member, LeastOverriddenMember, result, HasTypeArgumentInferredFromFunctionType);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
1503type = _extensions.GetMethodGroupResultType(source, result.BestResult.Member);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (17)
1212result.Member.AddUseSiteInfo(ref useSiteInfo, addDiagnostics: false); 1268int parameterCount = result.Member.GetParameterCount(); 1770result.Member.AddUseSiteInfo(ref useSiteInfo, addDiagnostics: result.HasUseSiteDiagnosticToReport); 2155Debug.Assert(m1.Member.GetIsVararg() && m2.Member.GetIsVararg()); 2297Debug.Assert(m1.Member.GetIsVararg() && m2.Member.GetIsVararg()); 2371if (m1.Member.GetMemberArity() == 0) 2373if (m2.Member.GetMemberArity() > 0) 2378else if (m2.Member.GetMemberArity() == 0) 2457Debug.Assert(m1.Member.GetIsVararg() && m2.Member.GetIsVararg()); 2478if (m1.Member.ContainingType.TypeKind == TypeKind.Submission && m2.Member.ContainingType.TypeKind == TypeKind.Submission) 2481var compilation1 = m1.Member.DeclaringCompilation; 2482var compilation2 = m2.Member.DeclaringCompilation; 2660declaredParameterCount = m.Member.GetParameterCount();
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (19)
473if (firstSupported.Member is FunctionPointerMethodSymbol 488&& (firstSupported.Member is not FunctionPointerMethodSymbol)) 512Debug.Assert(firstSupported.Member is MethodSymbol { MethodKind: MethodKind.Constructor }); 521Debug.Assert(firstSupported.Member is MethodSymbol { Name: "Add" }); 582DiagnosticInfo diagInfo = firstUnsupported.Member.GetUseSiteInfo().DiagnosticInfo; 600new object[] { firstSupported.Member, target.CallingConvention }, 612Debug.Assert(bad.Member.GetUseSiteInfo().DiagnosticInfo.Severity == DiagnosticSeverity.Error, 634new object[] { inaccessible.Member }, 656Symbol symbol = staticInstanceMismatch.Member; 703location, mismatch.Member, delegateOrFunctionPointerType); 710var method = (MethodSymbol)(Symbol)mismatch.Member; 751Binder.ReportQueryInferenceFailed(queryClause, inferenceFailed.Member.Name, receiver, arguments, symbols, diagnostics); 759new object[] { inferenceFailed.Member }, 773binder.ReportQueryLookupFailed(queryClause, instanceArgument, inferenceFailed.Member.Name, symbols, diagnostics); 779new object[] { instanceArgument.Type, inferenceFailed.Member.Name }, 897TMember badMember = bad.Member; 1045MethodSymbol method = (MethodSymbol)(Symbol)result.Member; 1101var method = badArg.Member; 1557sb.AppendLine("Overload resolution succeeded and chose " + this.ValidResult.Member.ToString());