114 references to Options
Microsoft.CodeAnalysis.CSharp (114)
Binder\Binder.ValueChecks.cs (1)
593
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.
Options
.None);
Binder\Binder_Expressions.cs (28)
7897
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.
Options
.None);
8345
OverloadResolution.
Options
options,
8351
Debug.Assert((options & ~(OverloadResolution.
Options
.IsMethodGroupConversion |
8352
OverloadResolution.
Options
.IsFunctionPointerResolution |
8353
OverloadResolution.
Options
.InferWithDynamic |
8354
OverloadResolution.
Options
.IgnoreNormalFormIfHasValidParamsParameter |
8355
OverloadResolution.
Options
.DisallowExpandedNonArrayParams |
8356
OverloadResolution.
Options
.DynamicResolution |
8357
OverloadResolution.
Options
.DynamicConvertsToAnything)) == 0);
8409
options |= OverloadResolution.
Options
.AllowRefOmittedArguments;
8420
options: options | OverloadResolution.
Options
.IsExtensionMethodResolution,
10243
OverloadResolution.
Options
options,
10248
Debug.Assert((options & ~(OverloadResolution.
Options
.IsMethodGroupConversion |
10249
OverloadResolution.
Options
.IsFunctionPointerResolution |
10250
OverloadResolution.
Options
.InferWithDynamic)) == 0);
10264
OverloadResolution.
Options
options,
10300
options: OverloadResolution.
Options
.IsMethodGroupConversion | OverloadResolution.
Options
.IsFunctionPointerResolution,
10312
OverloadResolution.
Options
options,
10382
OverloadResolution.
Options
options,
10387
Debug.Assert((options & ~(OverloadResolution.
Options
.IsMethodGroupConversion |
10388
OverloadResolution.
Options
.IsFunctionPointerResolution |
10389
OverloadResolution.
Options
.InferWithDynamic |
10390
OverloadResolution.
Options
.IgnoreNormalFormIfHasValidParamsParameter |
10391
OverloadResolution.
Options
.DisallowExpandedNonArrayParams |
10392
OverloadResolution.
Options
.DynamicResolution |
10393
OverloadResolution.
Options
.DynamicConvertsToAnything)) == 0);
10442
options |= OverloadResolution.
Options
.AllowRefOmittedArguments;
Binder\Binder_Invocation.cs (9)
642
options: analyzedArguments.HasDynamicArgument ? OverloadResolution.
Options
.DynamicResolution : OverloadResolution.
Options
.None);
714
options: (ignoreNormalFormIfHasValidParamsParameter ? OverloadResolution.
Options
.IgnoreNormalFormIfHasValidParamsParameter : OverloadResolution.
Options
.None) |
715
(disallowExpandedNonArrayParams ? OverloadResolution.
Options
.DisallowExpandedNonArrayParams : OverloadResolution.
Options
.None) |
716
(analyzedArguments.HasDynamicArgument ? OverloadResolution.
Options
.DynamicResolution : OverloadResolution.
Options
.None));
2254
var resolution = ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.
Options
.None);
Binder\Binder_Query.cs (1)
960
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.
Options
.None);
Binder\ForEachLoopBinder.cs (2)
1435
options: OverloadResolution.
Options
.None);
1507
options: OverloadResolution.
Options
.None,
Binder\Semantics\Conversions\Conversions.cs (6)
256
options: OverloadResolution.
Options
.InferWithDynamic | OverloadResolution.
Options
.IsMethodGroupConversion |
257
(isFunctionPointer ? OverloadResolution.
Options
.IsFunctionPointerResolution : OverloadResolution.
Options
.None),
265
return binder.ResolveMethodGroup(source, analyzedArguments: null, ref useSiteInfo, options: OverloadResolution.
Options
.IsMethodGroupConversion);
392
options: OverloadResolution.
Options
.IsMethodGroupConversion,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
1488
options: OverloadResolution.
Options
.IsMethodGroupConversion |
1489
(isFunctionPointerResolution ? OverloadResolution.
Options
.IsFunctionPointerResolution : OverloadResolution.
Options
.None),
Binder\Semantics\OverloadResolution\OverloadResolution.cs (64)
143
Options
options,
148
Debug.Assert((options &
Options
.DynamicResolution) == 0 || arguments.HasDynamicArgument);
149
Debug.Assert((options &
Options
.InferWithDynamic) == 0 || (options &
Options
.DynamicResolution) == 0);
150
Debug.Assert((options &
Options
.IsFunctionPointerResolution) == 0 || (options &
Options
.DynamicResolution) == 0);
151
Debug.Assert((options &
Options
.IsMethodGroupConversion) == 0 || (options &
Options
.DynamicResolution) == 0);
152
Debug.Assert((options &
Options
.InferWithDynamic) == 0 || (options &
Options
.IsMethodGroupConversion) != 0);
178
options: (allowRefOmittedArguments ?
Options
.AllowRefOmittedArguments :
Options
.None) |
179
(dynamicResolution ?
Options
.DynamicResolution :
Options
.None),
191
Options
options,
202
bool checkOverriddenOrHidden = !((options &
Options
.IsExtensionMethodResolution) != 0 &&
262
Options
.InferringUniqueMethodGroupSignature |
Options
.IgnoreNormalFormIfHasValidParamsParameter,
357
Options
options,
402
if ((options &
Options
.DynamicResolution) != 0 ||
403
(options &
Options
.InferringUniqueMethodGroupSignature) != 0)
437
Options
options,
453
if ((options &
Options
.IsMethodGroupConversion) != 0)
455
RemoveDelegateConversionsWithWrongReturnType(results, ref useSiteInfo, returnRefKind, returnType, isFunctionPointerConversion: (options &
Options
.IsFunctionPointerResolution) != 0);
459
if ((options &
Options
.IsFunctionPointerResolution) != 0)
477
if ((options &
Options
.DynamicResolution) == 0)
572
options:
Options
.None,
977
options:
Options
.None,
1021
options:
Options
.None);
1054
Options
options,
1059
Debug.Assert((options &
Options
.IgnoreNormalFormIfHasValidParamsParameter) == 0 || (options &
Options
.IsMethodGroupConversion) == 0);
1142
if ((options &
Options
.InferringUniqueMethodGroupSignature) == 0 && member.HasUnsupportedMetadata)
1163
bool disallowExpandedNonArrayParams = (options &
Options
.DisallowExpandedNonArrayParams) != 0;
1164
bool skipNormalResult = ((options &
Options
.IgnoreNormalFormIfHasValidParamsParameter) != 0 && IsValidParams(_binder, leastOverriddenMember, disallowExpandedNonArrayParams, out _));
1184
if ((options &
Options
.IsMethodGroupConversion) == 0 && IsValidParams(_binder, leastOverriddenMember, disallowExpandedNonArrayParams, out TypeWithAnnotations definitionElementType))
1194
dynamicConvertsToAnything: (options &
Options
.DynamicConvertsToAnything) != 0,
1195
isMethodGroupConversion: (options &
Options
.IsMethodGroupConversion) != 0,
3787
Options
options = (isMethodGroupConversion ?
Options
.IsMethodGroupConversion :
Options
.None) |
3788
(allowRefOmittedArguments ?
Options
.AllowRefOmittedArguments :
Options
.None);
3818
Options
options,
3878
Options
options,
3889
if ((options &
Options
.IsMethodGroupConversion) == 0)
3916
if ((options &
Options
.AllowRefOmittedArguments) != 0 && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.InAttributeArgument)
3959
Options
options) where TMember : Symbol
3970
Options
options,
4027
Options
options,
4034
var argumentAnalysis = (options &
Options
.InferringUniqueMethodGroupSignature) != 0
4036
: AnalyzeArguments(member, arguments, isMethodGroupConversion: (options &
Options
.IsMethodGroupConversion) != 0, expanded: false);
4056
if ((options &
Options
.InferringUniqueMethodGroupSignature) == 0 && member.HasUseSiteError)
4073
Debug.Assert(!hasAnyRefOmittedArgument || (options &
Options
.AllowRefOmittedArguments) != 0);
4084
inferWithDynamic: (options &
Options
.InferWithDynamic) != 0,
4086
dynamicConvertsToAnything: (options &
Options
.DynamicConvertsToAnything) != 0,
4087
isMethodGroupConversion: (options &
Options
.IsMethodGroupConversion) != 0,
4106
Options
options,
4115
var argumentAnalysis = (options &
Options
.InferringUniqueMethodGroupSignature) != 0
4125
if ((options &
Options
.InferringUniqueMethodGroupSignature) == 0 && member.HasUseSiteError)
4138
options: options &
Options
.AllowRefOmittedArguments,
4142
Debug.Assert(!hasAnyRefOmittedArgument || (options &
Options
.AllowRefOmittedArguments) != 0);
4168
Options
options,
4187
if ((options &
Options
.InferringUniqueMethodGroupSignature) == 0 &&