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