12 instantiations of MemberResolutionResult
Microsoft.CodeAnalysis.CSharp (12)
Binder\Semantics\OverloadResolution\MemberResolutionResult.cs (1)
36return new MemberResolutionResult<TMember>(Member, LeastOverriddenMember, result, HasTypeArgumentInferredFromFunctionType);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (11)
928results.Add(new MemberResolutionResult<MethodSymbol>(constructor, constructor, MemberAnalysisResult.UnsupportedMetadata(), hasTypeArgumentInferredFromFunctionType: false)); 950results.Add(new MemberResolutionResult<MethodSymbol>(constructor, constructor, result, hasTypeArgumentInferredFromFunctionType: false)); 1147results.Add(new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.UnsupportedMetadata(), hasTypeArgumentInferredFromFunctionType: false)); 4029return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis), hasTypeArgumentInferredFromFunctionType: false); 4037return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.UseSiteError(), hasTypeArgumentInferredFromFunctionType: false); 4073return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis), hasTypeArgumentInferredFromFunctionType: false); 4099return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis), hasTypeArgumentInferredFromFunctionType: false); 4106return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.UseSiteError(), hasTypeArgumentInferredFromFunctionType: false); 4206return new MemberResolutionResult<TMember>(member, leastOverriddenMember, inferenceError, hasTypeArgumentInferredFromFunctionType: false); 4246return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ConstructedParameterFailedConstraintsCheck(i), hasTypeArgumentsInferredFromFunctionType); 4280return new MemberResolutionResult<TMember>(member, leastOverriddenMember, applicableResult, hasTypeArgumentsInferredFromFunctionType);
126 references to MemberResolutionResult
Microsoft.CodeAnalysis.CSharp (126)
Binder\Binder_Attributes.cs (1)
205out var memberResolutionResult,
Binder\Binder_Expressions.cs (13)
3374MemberResolutionResult<TMember> methodResult, 3500in MemberResolutionResult<TMember> methodResult, 3557in MemberResolutionResult<TMember> methodResult, 3589in MemberResolutionResult<TMember> methodResult, 3663void reportUnsafeIfNeeded(MemberResolutionResult<TMember> methodResult, BindingDiagnosticBag diagnostics, BoundExpression argument, TypeWithAnnotations parameterTypeWithAnnotations) 4881MemberResolutionResult<MethodSymbol> memberResolutionResult; 4915MemberResolutionResult<MethodSymbol> memberResolutionResult, 6695out MemberResolutionResult<MethodSymbol> memberResolutionResult, 6715MemberResolutionResult<MethodSymbol> memberResolutionResult, 6799MemberResolutionResult<MethodSymbol> memberResolutionResult, 7099out MemberResolutionResult<MethodSymbol> memberResolutionResult, 7149default(MemberResolutionResult<MethodSymbol>); // Invalid results are not interesting - we have enough info in candidateConstructors. 9839MemberResolutionResult<PropertySymbol> resolutionResult = overloadResolutionResult.ValidResult;
Binder\Binder_Invocation.cs (13)
55foreach (var result in overloadResolutionResult.Results) 649var applicable = overloadResolutionResult.Results.Single(r => r.IsApplicable); 664private static bool HasApplicableConditionalMethod(ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates) 666foreach (var candidate in finalApplicableCandidates) 677private void ReportMemberNotSupportedByDynamicDispatch<TMember>(SyntaxNode syntax, MemberResolutionResult<TMember> candidate, BindingDiagnosticBag diagnostics) 846private void ReportDynamicInvocationWarnings(SyntaxNode syntax, BoundMethodGroup methodGroup, BindingDiagnosticBag diagnostics, ImmutableArray<MemberResolutionResult<MethodSymbol>> finalApplicableCandidates) 856private bool IsAmbiguousDynamicParamsArgument<TMethodOrPropertySymbol>(ArrayBuilder<BoundExpression> arguments, MemberResolutionResult<TMethodOrPropertySymbol> candidate, out SyntaxNode argumentSyntax) 886MemberResolutionResult<MethodSymbol> methodResolutionResult, 942MemberResolutionResult<MethodSymbol> methodResolutionResult) 970private ImmutableArray<MemberResolutionResult<TMethodOrPropertySymbol>> GetCandidatesPassingFinalValidation<TMethodOrPropertySymbol>( 980var finalCandidates = ArrayBuilder<MemberResolutionResult<TMethodOrPropertySymbol>>.GetInstance(); 1184var methodResult = result.ValidResult; 2390MemberResolutionResult<FunctionPointerMethodSymbol> methodResult = overloadResolutionResult.ValidResult;
Binder\Semantics\OverloadResolution\MemberResolutionResult.cs (3)
34internal MemberResolutionResult<TMember> WithResult(MemberAnalysisResult result) 99internal MemberResolutionResult<TMember> Worse() 104internal MemberResolutionResult<TMember> Worst()
Binder\Semantics\OverloadResolution\OverloadResolution.cs (47)
65private static bool AnyValidResult<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results) 79private static bool SingleValidResult<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results) 319private static bool OverloadResolutionResultIsValid<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, bool hasDynamicArgument) 351ArrayBuilder<MemberResolutionResult<TMember>> results, 427ArrayBuilder<MemberResolutionResult<TMember>> results, 479RemoveLowerPriorityMembers<MemberResolutionResult<TMember>, TMember>(results); 493private static void RemoveHiddenMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results) 580ArrayBuilder<MemberResolutionResult<TMember>> results, 609private static void RemoveStaticInstanceMismatches<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, bool requireStatic) where TMember : Symbol 622private static void RemoveMethodsNotDeclaredStatic<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results) where TMember : Symbol 638private void RemoveConstraintViolations<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, CompoundUseSiteInfo<AssemblySymbol> template) where TMember : Symbol 665private void RemoveCallingConventionMismatches<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, in CallingConventionInfo expectedConvention) where TMember : Symbol 789static MemberResolutionResult<TMember> makeWrongCallingConvention(MemberResolutionResult<TMember> result) 837ArrayBuilder<MemberResolutionResult<TMember>> results, 919private void AddConstructorToCandidateSet(MethodSymbol constructor, ArrayBuilder<MemberResolutionResult<MethodSymbol>> results, 1047ArrayBuilder<MemberResolutionResult<TMember>> results, 1165var normalResult = skipNormalResult 1166? default(MemberResolutionResult<TMember>) 1176var result = normalResult; 1186var expandedResult = IsMemberApplicableInExpandedForm( 1223private static bool PreferExpandedFormOverNormalForm<TMember>(MemberResolutionResult<TMember> normalResult, MemberResolutionResult<TMember> expandedResult) 1266static bool haveBadArgumentForLastParameter(MemberResolutionResult<TMember> result) 1459private void RemoveInaccessibleTypeArguments<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1481private static void RemoveLessDerivedMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1604private static bool IsLessDerivedThanAny<TMember>(int index, TypeSymbol type, ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1647private static void RemoveAllInterfaceMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results) 1723ArrayBuilder<MemberResolutionResult<MethodSymbol>> results, 1753RemoveLowerPriorityMembers<MemberResolutionResult<MethodSymbol>, MethodSymbol>(results); 1765private static void ReportUseSiteInfo<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1768foreach (MemberResolutionResult<TMember> result in results) 1774private int GetTheBestCandidateIndex<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 1914private void RemoveWorseMembers<TMember>(ArrayBuilder<MemberResolutionResult<TMember>> results, AnalyzedArguments arguments, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 2071MemberResolutionResult<TMember> m1, 2072MemberResolutionResult<TMember> m2, 2110MemberResolutionResult<TMember> m1, 2111MemberResolutionResult<TMember> m2, 2574private static bool RequiredFunctionType<TMember>(MemberResolutionResult<TMember> m) 2595MemberResolutionResult<TMember> m1, 2597MemberResolutionResult<TMember> m2, 2658private static void GetParameterCounts<TMember>(MemberResolutionResult<TMember> m, ArrayBuilder<BoundExpression> arguments, out int declaredParameterCount, out int parametersUsedIncludingExpansionAndOptional) where TMember : Symbol 4001private MemberResolutionResult<TMember> IsMemberApplicableInNormalForm<TMember>( 4056var applicableResult = IsApplicable( 4079private MemberResolutionResult<TMember> IsMemberApplicableInExpandedForm<TMember>( 4125var result = IsApplicable( 4142private MemberResolutionResult<TMember> IsApplicable<TMember>(
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (49)
28private MemberResolutionResult<TMember> _bestResult; 30internal readonly ArrayBuilder<MemberResolutionResult<TMember>> ResultsBuilder; 35this.ResultsBuilder = new ArrayBuilder<MemberResolutionResult<TMember>>(); 40_bestResult = default(MemberResolutionResult<TMember>); 62public MemberResolutionResult<TMember> ValidResult 87public MemberResolutionResult<TMember> BestResult 102public ImmutableArray<MemberResolutionResult<TMember>> Results 148private static ThreeState TryGetBestResult(ArrayBuilder<MemberResolutionResult<TMember>> allResults, out MemberResolutionResult<TMember> best) 150best = default(MemberResolutionResult<TMember>); 160best = default(MemberResolutionResult<TMember>); 376MemberResolutionResult<TMember> firstSupported = default(MemberResolutionResult<TMember>); 377MemberResolutionResult<TMember> firstUnsupported = default(MemberResolutionResult<TMember>); 379var supportedInPriorityOrder = new MemberResolutionResult<TMember>[7]; // from highest to lowest priority 388foreach (MemberResolutionResult<TMember> result in this.ResultsBuilder) 461foreach (var supported in supportedInPriorityOrder) 580private static void ReportUnsupportedMetadata(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstUnsupported) 595private static void ReportWrongCallingConvention(Location location, BindingDiagnosticBag diagnostics, ImmutableArray<Symbol> symbols, MemberResolutionResult<TMember> firstSupported, MethodSymbol target) 606var bad = GetFirstMemberKind(MemberResolutionKind.UseSiteError); 625var inaccessible = GetFirstMemberKind(MemberResolutionKind.InaccessibleTypeArgument); 648var staticInstanceMismatch = GetFirstMemberKind(MemberResolutionKind.StaticInstanceMismatch); 699var mismatch = GetFirstMemberKind(MemberResolutionKind.WrongRefKind); 720var constraintFailure = GetFirstMemberKind(MemberResolutionKind.ConstraintFailure); 746var inferenceFailed = GetFirstMemberKind(MemberResolutionKind.TypeInferenceFailed); 790MemberResolutionResult<TMember> bad, 810MemberResolutionResult<TMember> bad, 829private static void ReportDuplicateNamedArgument(MemberResolutionResult<TMember> result, BindingDiagnosticBag diagnostics, AnalyzedArguments arguments) 841MemberResolutionResult<TMember> bad, 878MemberResolutionResult<TMember> bad, 1032var result = GetFirstMemberKind(MemberResolutionKind.ConstructedParameterFailedConstraintCheck); 1090var badArg = GetFirstMemberKind(MemberResolutionKind.BadArgumentConversion); 1155MemberResolutionResult<TMember> badArg, 1377static Symbol unwrapIfParamsCollection(MemberResolutionResult<TMember> badArg, ParameterSymbol parameter, bool isLastParameter) 1391MemberResolutionResult<TMember> worseResult1; 1392MemberResolutionResult<TMember> worseResult2; 1424private int TryGetFirstTwoWorseResults(out MemberResolutionResult<TMember> first, out MemberResolutionResult<TMember> second) 1429first = default(MemberResolutionResult<TMember>); 1430second = default(MemberResolutionResult<TMember>); 1455MemberResolutionResult<TMember> validResult1; 1456MemberResolutionResult<TMember> validResult2; 1476private int TryGetFirstTwoValidResults(out MemberResolutionResult<TMember> first, out MemberResolutionResult<TMember> second) 1481first = default(MemberResolutionResult<TMember>); 1482second = default(MemberResolutionResult<TMember>); 1533private MemberResolutionResult<TMember> GetFirstMemberKind(MemberResolutionKind kind) 1543return default(MemberResolutionResult<TMember>);