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