21 instantiations of MemberAnalysisResult
Microsoft.CodeAnalysis.CSharp (21)
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (21)
264return new MemberAnalysisResult( 271return new MemberAnalysisResult( 278return new MemberAnalysisResult( 285return new MemberAnalysisResult( 292return new MemberAnalysisResult( 306return new MemberAnalysisResult( 313return new MemberAnalysisResult(MemberResolutionKind.UseSiteError); 318return new MemberAnalysisResult(MemberResolutionKind.UnsupportedMetadata); 325return new MemberAnalysisResult( 336return new MemberAnalysisResult(MemberResolutionKind.InaccessibleTypeArgument); 341return new MemberAnalysisResult(MemberResolutionKind.TypeInferenceFailed); 346return new MemberAnalysisResult(MemberResolutionKind.TypeInferenceExtensionInstanceArgument); 351return new MemberAnalysisResult(MemberResolutionKind.StaticInstanceMismatch); 356return new MemberAnalysisResult( 363return new MemberAnalysisResult(MemberResolutionKind.WrongRefKind); 368return new MemberAnalysisResult(MemberResolutionKind.WrongReturnType); 373return new MemberAnalysisResult(MemberResolutionKind.LessDerived); 390return new MemberAnalysisResult(MemberResolutionKind.Worse); 395return new MemberAnalysisResult(MemberResolutionKind.Worst); 400return new MemberAnalysisResult(MemberResolutionKind.ConstraintFailure, constraintFailureDiagnosticsOpt: constraintFailureDiagnostics); 405return new MemberAnalysisResult(MemberResolutionKind.WrongCallingConvention);
81 references to MemberAnalysisResult
Microsoft.CodeAnalysis.CSharp (81)
Binder\Binder_Expressions.cs (6)
3385var result = methodResult.Result; 3512var result = methodResult.Result; 3566var result = methodResult.Result; 3608var result = methodResult.Result; 3677static ParameterSymbol getCorrespondingParameter(in MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters, int arg) 3688in MemberAnalysisResult memberAnalysisResult,
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (24)
241public static MemberAnalysisResult ArgumentParameterMismatch(ArgumentAnalysisResult argAnalysis) 262public static MemberAnalysisResult NameUsedForPositional(int argumentPosition) 269public static MemberAnalysisResult BadNonTrailingNamedArgument(int argumentPosition) 276public static MemberAnalysisResult NoCorrespondingParameter(int argumentPosition) 283public static MemberAnalysisResult NoCorrespondingNamedParameter(int argumentPosition) 290public static MemberAnalysisResult DuplicateNamedArgument(int argumentPosition) 304public static MemberAnalysisResult RequiredParameterMissing(int parameterPosition) 311public static MemberAnalysisResult UseSiteError() 316public static MemberAnalysisResult UnsupportedMetadata() 321public static MemberAnalysisResult BadArgumentConversions(ImmutableArray<int> argsToParamsOpt, BitVector badArguments, ImmutableArray<Conversion> conversions, TypeWithAnnotations definitionParamsElementTypeOpt, TypeWithAnnotations paramsElementTypeOpt) 334public static MemberAnalysisResult InaccessibleTypeArgument() 339public static MemberAnalysisResult TypeInferenceFailed() 344public static MemberAnalysisResult TypeInferenceExtensionInstanceArgumentFailed() 349public static MemberAnalysisResult StaticInstanceMismatch() 354public static MemberAnalysisResult ConstructedParameterFailedConstraintsCheck(int parameterPosition) 361public static MemberAnalysisResult WrongRefKind() 366public static MemberAnalysisResult WrongReturnType() 371public static MemberAnalysisResult LessDerived() 376public static MemberAnalysisResult NormalForm(ImmutableArray<int> argsToParamsOpt, ImmutableArray<Conversion> conversions, bool hasAnyRefOmittedArgument) 381public static MemberAnalysisResult ExpandedForm(ImmutableArray<int> argsToParamsOpt, ImmutableArray<Conversion> conversions, bool hasAnyRefOmittedArgument, TypeWithAnnotations definitionParamsElementType, TypeWithAnnotations paramsElementType) 388public static MemberAnalysisResult Worse() 393public static MemberAnalysisResult Worst() 398internal static MemberAnalysisResult ConstraintFailure(ImmutableArray<TypeParameterDiagnosticInfo> constraintFailureDiagnostics) 403internal static MemberAnalysisResult WrongCallingConvention()
Binder\Semantics\OverloadResolution\MemberResolutionResult.cs (6)
19private readonly MemberAnalysisResult _result; 26internal MemberResolutionResult(TMember member, TMember leastOverriddenMember, MemberAnalysisResult result, bool hasTypeArgumentInferredFromFunctionType) 34internal MemberResolutionResult<TMember> WithResult(MemberAnalysisResult result) 101return WithResult(MemberAnalysisResult.Worse()); 106return WithResult(MemberAnalysisResult.Worst()); 120internal MemberAnalysisResult Result
Binder\Semantics\OverloadResolution\OverloadResolution.cs (45)
532results[f] = result.WithResult(MemberAnalysisResult.LessDerived()); 617results[f] = result.WithResult(MemberAnalysisResult.StaticInstanceMismatch()); 633results[f] = result.WithResult(MemberAnalysisResult.StaticInstanceMismatch()); 659MemberAnalysisResult.ConstraintFailure(constraintFailureDiagnosticsOpt.ToImmutableAndFree())); 790=> result.WithResult(MemberAnalysisResult.WrongCallingConvention()); 880results[f] = result.WithResult(MemberAnalysisResult.WrongReturnType()); 884results[f] = result.WithResult(MemberAnalysisResult.WrongRefKind()); 925Debug.Assert(!MemberAnalysisResult.UnsupportedMetadata().HasUseSiteDiagnosticToReportFor(constructor)); 928results.Add(new MemberResolutionResult<MethodSymbol>(constructor, constructor, MemberAnalysisResult.UnsupportedMetadata(), hasTypeArgumentInferredFromFunctionType: false)); 933var normalResult = IsConstructorApplicableInNormalForm(constructor, arguments, completeResults, ref useSiteInfo); 934var result = normalResult; 939var expandedResult = IsConstructorApplicableInExpandedForm(constructor, arguments, definitionElementType, completeResults, ref useSiteInfo); 954private MemberAnalysisResult IsConstructorApplicableInNormalForm( 963return MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis); 969return MemberAnalysisResult.UseSiteError(); 997private MemberAnalysisResult IsConstructorApplicableInExpandedForm( 1007return MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis); 1013return MemberAnalysisResult.UseSiteError(); 1026var result = IsApplicable( 1144Debug.Assert(!MemberAnalysisResult.UnsupportedMetadata().HasUseSiteDiagnosticToReportFor(member)); 1147results.Add(new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.UnsupportedMetadata(), hasTypeArgumentInferredFromFunctionType: false)); 1467results[f] = result.WithResult(MemberAnalysisResult.InaccessibleTypeArgument()); 1598results[f] = result.WithResult(MemberAnalysisResult.LessDerived()); 1714results[f] = result.WithResult(MemberAnalysisResult.LessDerived()); 2071private static ParameterSymbol GetParameter(int argIndex, MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters) 2558static TypeSymbol getParameterTypeAndRefKind(int i, MemberAnalysisResult result, ImmutableArray<ParameterSymbol> parameters, TypeWithAnnotations paramsElementTypeOpt, out RefKind parameter1RefKind) 4050return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis), hasTypeArgumentInferredFromFunctionType: false); 4058return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.UseSiteError(), hasTypeArgumentInferredFromFunctionType: false); 4094return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis), hasTypeArgumentInferredFromFunctionType: false); 4120return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ArgumentParameterMismatch(argumentAnalysis), hasTypeArgumentInferredFromFunctionType: false); 4127return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.UseSiteError(), hasTypeArgumentInferredFromFunctionType: false); 4217MemberAnalysisResult inferenceError; 4267return new MemberResolutionResult<TMember>(member, leastOverriddenMember, MemberAnalysisResult.ConstructedParameterFailedConstraintsCheck(i), hasTypeArgumentsInferredFromFunctionType); 4287var applicableResult = IsApplicable( 4310out MemberAnalysisResult error, 4333error = default(MemberAnalysisResult); 4349error = MemberAnalysisResult.TypeInferenceExtensionInstanceArgumentFailed(); 4355error = MemberAnalysisResult.TypeInferenceFailed(); 4359private MemberAnalysisResult IsApplicable( 4503return MemberAnalysisResult.BadArgumentConversions(argsToParameters, MemberAnalysisResult.CreateBadArgumentsWithPosition(argumentPosition), ImmutableArray.Create(conversion), 4535MemberAnalysisResult result; 4539result = MemberAnalysisResult.BadArgumentConversions(argsToParameters, badArguments, conversionsArray, 4546result = MemberAnalysisResult.ExpandedForm(argsToParameters, conversionsArray, hasAnyRefOmittedArgument, 4552result = MemberAnalysisResult.NormalForm(argsToParameters, conversionsArray, hasAnyRefOmittedArgument);