111 references to Result
Microsoft.CodeAnalysis.CSharp (111)
Binder\Binder_Attributes.cs (1)
218
argsToParamsOpt = memberResolutionResult.
Result
.ArgsToParamsOpt;
Binder\Binder_Expressions.cs (11)
3385
var result = methodResult.
Result
;
3512
var result = methodResult.
Result
;
3566
var result = methodResult.
Result
;
3601
Debug.Assert(methodResult.
Result
.ParamsElementTypeOpt.HasType);
3602
Debug.Assert(methodResult.
Result
.ParamsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel);
3608
var result = methodResult.
Result
;
4933
argsToParamsOpt = memberResolutionResult.
Result
.ArgsToParamsOpt;
4971
var expanded = memberResolutionResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm;
6742
argToParams = memberResolutionResult.
Result
.ArgsToParamsOpt;
6767
var expanded = memberResolutionResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm;
9872
expanded: resolutionResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm,
Binder\Binder_Invocation.cs (5)
680
if (candidate.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm &&
860
candidate.
Result
.Kind == MemberResolutionKind.ApplicableInNormalForm)
869
candidate.
Result
.ParameterFromArgument(i) == lastParamIndex)
1200
var expanded = methodResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm;
1222
receiverArgument = CreateConversion(receiver, methodResult.
Result
.ConversionForArg(0),
Binder\ForEachLoopBinder.cs (3)
1463
var argsToParams = overloadResolutionResult.ValidResult.
Result
.ArgsToParamsOpt;
1464
var expanded = overloadResolutionResult.ValidResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm;
1547
expanded: overloadResolutionResult.ValidResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm,
Binder\Semantics\OverloadResolution\MemberResolutionResult.cs (3)
76
return
Result
.Kind;
87
return
Result
.IsValid;
95
return
Result
.IsApplicable;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (55)
1177
if (!normalResult.
Result
.IsValid)
1206
if (result.
Result
.IsValid || completeResults || result.HasUseSiteDiagnosticToReport)
1231
switch (normalResult.
Result
.Kind)
1235
switch (expandedResult.
Result
.Kind)
1251
if (expandedResult.
Result
.Kind == MemberResolutionKind.BadArgumentConversion &&
1252
expandedResult.
Result
.ParamsElementTypeOpt.HasType &&
1253
expandedResult.
Result
.ParamsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel)
1270
foreach (int arg in result.
Result
.BadArgumentsOpt.TrueBits())
1272
if (parameterCount == result.
Result
.ParameterFromArgument(arg) + 1)
2085
Debug.Assert(m1.
Result
.IsValid);
2086
Debug.Assert(m2.
Result
.IsValid);
2105
bool hasAnyRefOmittedArgument1 = m1.
Result
.HasAnyRefOmittedArgument;
2106
bool hasAnyRefOmittedArgument2 = m2.
Result
.HasAnyRefOmittedArgument;
2125
Debug.Assert(m1.
Result
.IsValid);
2126
Debug.Assert(m2.
Result
.IsValid);
2167
var type1 = getParameterTypeAndRefKind(i, m1.
Result
, m1LeastOverriddenParameters, m1.
Result
.ParamsElementTypeOpt, out RefKind parameter1RefKind);
2169
var type2 = getParameterTypeAndRefKind(i, m2.
Result
, m2LeastOverriddenParameters, m2.
Result
.ParamsElementTypeOpt, out RefKind parameter2RefKind);
2176
m1.
Result
.ConversionForArg(i),
2179
m2.
Result
.ConversionForArg(i),
2309
var type1 = getParameterTypeAndRefKind(i, m1.
Result
, m1LeastOverriddenParameters, m1.
Result
.ParamsElementTypeOpt, out _);
2311
var type2 = getParameterTypeAndRefKind(i, m2.
Result
, m2LeastOverriddenParameters, m2.
Result
.ParamsElementTypeOpt, out _);
2348
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2350
if (m2.
Result
.Kind != MemberResolutionKind.ApplicableInExpandedForm)
2355
else if (m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2357
Debug.Assert(m1.
Result
.Kind != MemberResolutionKind.ApplicableInExpandedForm);
2394
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInNormalForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2399
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInNormalForm)
2415
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2432
bool hasAll1 = m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm || m1ParameterCount == arguments.Count;
2433
bool hasAll2 = m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm || m2ParameterCount == arguments.Count;
2469
uninst1.Add(getParameterTypeAndRefKind(i, m1.
Result
, m1DefinitionParameters, m1.
Result
.DefinitionParamsElementTypeOpt, out _));
2471
uninst2.Add(getParameterTypeAndRefKind(i, m2.
Result
, m2DefinitionParameters, m2.
Result
.DefinitionParamsElementTypeOpt, out _));
2522
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2529
var parameter1 = GetParameter(i, m1.
Result
, m1LeastOverriddenParameters);
2530
var parameter2 = GetParameter(i, m2.
Result
, m2LeastOverriddenParameters);
2585
Debug.Assert(m.
Result
.IsValid);
2592
var conversionsOpt = m.
Result
.ConversionsOpt;
2615
var p1 = GetParameter(i, m1.
Result
, parameters1);
2616
var p2 = GetParameter(i, m2.
Result
, parameters2);
2622
var c1 = m1.
Result
.ConversionForArg(i);
2623
var c2 = m2.
Result
.ConversionForArg(i);
2670
if (m.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2674
ImmutableArray<int> argsToParamsOpt = m.
Result
.ArgsToParamsOpt;
4159
Debug.Assert(!result.
Result
.IsValid || result.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (33)
54
return _bestResultState == ThreeState.True && _bestResult.
Result
.IsValid;
68
Debug.Assert(_bestResultState == ThreeState.True && _bestResult.
Result
.IsValid);
390
switch (result.
Result
.Kind)
400
result.
Result
.FirstBadArgument > supportedInPriorityOrder[noCorrespondingNamedParameterPriority].
Result
.FirstBadArgument)
424
result.
Result
.FirstBadArgument > supportedInPriorityOrder[nameUsedForPositionalPriority].
Result
.FirstBadArgument)
431
result.
Result
.FirstBadArgument > supportedInPriorityOrder[badNonTrailingNamedArgumentPriority].
Result
.FirstBadArgument)
439
result.
Result
.FirstBadArgument > supportedInPriorityOrder[duplicateNamedArgumentPriority].
Result
.FirstBadArgument)
457
throw ExceptionUtilities.UnexpectedValue(result.
Result
.Kind);
474
&& firstSupported.
Result
.Kind == MemberResolutionKind.NoCorrespondingNamedParameter)
476
int badArg = firstSupported.
Result
.FirstBadArgument;
484
else if (!(firstSupported.
Result
.Kind == MemberResolutionKind.RequiredParameterMissing && supportedRequiredParameterMissingConflicts)
490
switch (firstSupported.
Result
.Kind)
547
else if (firstSupported.
Result
.Kind == MemberResolutionKind.WrongCallingConvention)
597
Debug.Assert(firstSupported.
Result
.Kind == MemberResolutionKind.WrongCallingConvention);
726
foreach (var pair in constraintFailure.
Result
.ConstraintFailureDiagnostics)
795
int badArg = bad.
Result
.FirstBadArgument;
815
int badArg = bad.
Result
.FirstBadArgument;
831
Debug.Assert(result.
Result
.BadArgumentsOpt.TrueBits().Count() == 1);
832
Debug.Assert(arguments.Names[result.
Result
.FirstBadArgument].HasValue);
833
(string name, Location location) = arguments.Names[result.
Result
.FirstBadArgument].GetValueOrDefault();
855
int badArg = bad.
Result
.FirstBadArgument;
899
int badParamIndex = bad.
Result
.BadParameter;
1056
TypeSymbol formalParameterType = method.GetParameterType(result.
Result
.BadParameter);
1141
foreach (var arg in badArg.
Result
.BadArgumentsOpt.TrueBits())
1167
int parm = badArg.
Result
.ParameterFromArgument(arg);
1307
Debug.Assert(!badArg.
Result
.ConversionForArg(parm).IsImplicit);
1380
if (isLastParameter && badArg.
Result
.ParamsElementTypeOpt.HasType)
1382
Debug.Assert(badArg.
Result
.ParamsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel);
1383
return badArg.
Result
.ParamsElementTypeOpt.Type;