111 references to Result
Microsoft.CodeAnalysis.CSharp (111)
Binder\Binder_Attributes.cs (1)
218
argsToParamsOpt = memberResolutionResult.
Result
.ArgsToParamsOpt;
Binder\Binder_Expressions.cs (11)
3382
var result = methodResult.
Result
;
3509
var result = methodResult.
Result
;
3563
var result = methodResult.
Result
;
3598
Debug.Assert(methodResult.
Result
.ParamsElementTypeOpt.HasType);
3599
Debug.Assert(methodResult.
Result
.ParamsElementTypeOpt.Type != (object)ErrorTypeSymbol.EmptyParamsCollectionElementTypeSentinel);
3605
var result = methodResult.
Result
;
4930
argsToParamsOpt = memberResolutionResult.
Result
.ArgsToParamsOpt;
4968
var expanded = memberResolutionResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm;
6739
argToParams = memberResolutionResult.
Result
.ArgsToParamsOpt;
6764
var expanded = memberResolutionResult.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm;
9869
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)
2077
Debug.Assert(m1.
Result
.IsValid);
2078
Debug.Assert(m2.
Result
.IsValid);
2097
bool hasAnyRefOmittedArgument1 = m1.
Result
.HasAnyRefOmittedArgument;
2098
bool hasAnyRefOmittedArgument2 = m2.
Result
.HasAnyRefOmittedArgument;
2117
Debug.Assert(m1.
Result
.IsValid);
2118
Debug.Assert(m2.
Result
.IsValid);
2159
var type1 = getParameterTypeAndRefKind(i, m1.
Result
, m1LeastOverriddenParameters, m1.
Result
.ParamsElementTypeOpt, out RefKind parameter1RefKind);
2161
var type2 = getParameterTypeAndRefKind(i, m2.
Result
, m2LeastOverriddenParameters, m2.
Result
.ParamsElementTypeOpt, out RefKind parameter2RefKind);
2168
m1.
Result
.ConversionForArg(i),
2171
m2.
Result
.ConversionForArg(i),
2301
var type1 = getParameterTypeAndRefKind(i, m1.
Result
, m1LeastOverriddenParameters, m1.
Result
.ParamsElementTypeOpt, out _);
2303
var type2 = getParameterTypeAndRefKind(i, m2.
Result
, m2LeastOverriddenParameters, m2.
Result
.ParamsElementTypeOpt, out _);
2340
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2342
if (m2.
Result
.Kind != MemberResolutionKind.ApplicableInExpandedForm)
2347
else if (m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2349
Debug.Assert(m1.
Result
.Kind != MemberResolutionKind.ApplicableInExpandedForm);
2386
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInNormalForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2391
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInNormalForm)
2407
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2424
bool hasAll1 = m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm || m1ParameterCount == arguments.Count;
2425
bool hasAll2 = m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm || m2ParameterCount == arguments.Count;
2461
uninst1.Add(getParameterTypeAndRefKind(i, m1.
Result
, m1DefinitionParameters, m1.
Result
.DefinitionParamsElementTypeOpt, out _));
2463
uninst2.Add(getParameterTypeAndRefKind(i, m2.
Result
, m2DefinitionParameters, m2.
Result
.DefinitionParamsElementTypeOpt, out _));
2514
if (m1.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm && m2.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2521
var parameter1 = GetParameter(i, m1.
Result
, m1LeastOverriddenParameters);
2522
var parameter2 = GetParameter(i, m2.
Result
, m2LeastOverriddenParameters);
2577
Debug.Assert(m.
Result
.IsValid);
2584
var conversionsOpt = m.
Result
.ConversionsOpt;
2607
var p1 = GetParameter(i, m1.
Result
, parameters1);
2608
var p2 = GetParameter(i, m2.
Result
, parameters2);
2614
var c1 = m1.
Result
.ConversionForArg(i);
2615
var c2 = m2.
Result
.ConversionForArg(i);
2662
if (m.
Result
.Kind == MemberResolutionKind.ApplicableInExpandedForm)
2666
ImmutableArray<int> argsToParamsOpt = m.
Result
.ArgsToParamsOpt;
4138
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;