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