8 instantiations of ArgumentAnalysisResult
Microsoft.CodeAnalysis.CSharp (8)
Binder\Semantics\OverloadResolution\ArgumentAnalysisResult.cs (8)
51
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.NameUsedForPositional, argumentPosition, 0, default(ImmutableArray<int>));
56
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.NoCorrespondingParameter, argumentPosition, 0, default(ImmutableArray<int>));
61
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.NoCorrespondingNamedParameter, argumentPosition, 0, default(ImmutableArray<int>));
66
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.DuplicateNamedArgument, argumentPosition, 0, default(ImmutableArray<int>));
71
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.RequiredParameterMissing, 0, parameterPosition, default(ImmutableArray<int>));
76
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.BadNonTrailingNamedArgument, argumentPosition, 0, default(ImmutableArray<int>));
81
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.Normal, 0, 0, argsToParamsOpt);
86
return new
ArgumentAnalysisResult
(ArgumentAnalysisResultKind.Expanded, 0, 0, argsToParamsOpt);
29 references to ArgumentAnalysisResult
Microsoft.CodeAnalysis.CSharp (29)
Binder\Semantics\OverloadResolution\ArgumentAnalysisResult.cs (8)
49
public static
ArgumentAnalysisResult
NameUsedForPositional(int argumentPosition)
54
public static
ArgumentAnalysisResult
NoCorrespondingParameter(int argumentPosition)
59
public static
ArgumentAnalysisResult
NoCorrespondingNamedParameter(int argumentPosition)
64
public static
ArgumentAnalysisResult
DuplicateNamedArgument(int argumentPosition)
69
public static
ArgumentAnalysisResult
RequiredParameterMissing(int parameterPosition)
74
public static
ArgumentAnalysisResult
BadNonTrailingNamedArgument(int argumentPosition)
79
public static
ArgumentAnalysisResult
NormalForm(ImmutableArray<int> argsToParamsOpt)
84
public static
ArgumentAnalysisResult
ExpandedForm(ImmutableArray<int> argsToParamsOpt)
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (1)
241
public static MemberAnalysisResult ArgumentParameterMismatch(
ArgumentAnalysisResult
argAnalysis)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
960
var
argumentAnalysis = AnalyzeArguments(constructor, arguments, isMethodGroupConversion: false, expanded: false); // Constructors are never involved in method group conversion.
1004
var
argumentAnalysis = AnalyzeArguments(constructor, arguments, isMethodGroupConversion: false, expanded: true);
4034
var
argumentAnalysis = (options & Options.InferringUniqueMethodGroupSignature) != 0
4035
?
ArgumentAnalysisResult
.NormalForm(argsToParamsOpt: default)
4115
var
argumentAnalysis = (options & Options.InferringUniqueMethodGroupSignature) != 0
4116
?
ArgumentAnalysisResult
.ExpandedForm(argsToParamsOpt: default)
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (14)
58
private static
ArgumentAnalysisResult
AnalyzeArguments(
139
return
ArgumentAnalysisResult
.BadNonTrailingNamedArgument(badNonTrailingNamedArgument.Value);
148
return
ArgumentAnalysisResult
.NoCorrespondingNamedParameter(unmatchedArgumentIndex.Value);
152
return
ArgumentAnalysisResult
.NoCorrespondingParameter(unmatchedArgumentIndex.Value);
162
return
ArgumentAnalysisResult
.NameUsedForPositional(nameUsedForPositional.Value);
170
return
ArgumentAnalysisResult
.RequiredParameterMissing(requiredParameterMissing.Value);
176
return
ArgumentAnalysisResult
.RequiredParameterMissing(parameters.Length);
184
return
ArgumentAnalysisResult
.DuplicateNamedArgument(duplicateNamedArgument.Value);
190
ArgumentAnalysisResult
.ExpandedForm(argsToParameters.ToImmutableArray()) :
191
ArgumentAnalysisResult
.NormalForm(argsToParameters.ToImmutableArray());
340
private static
ArgumentAnalysisResult
AnalyzeArgumentsForNormalFormNoNamedArguments(
367
return
ArgumentAnalysisResult
.RequiredParameterMissing(parameterPosition);
373
return
ArgumentAnalysisResult
.NoCorrespondingParameter(parameterCount);
378
return
ArgumentAnalysisResult
.NormalForm(default(ImmutableArray<int>));