114 references to Options
Microsoft.CodeAnalysis.CSharp (114)
Binder\Binder.ValueChecks.cs (1)
616
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.
Options
.None);
Binder\Binder_Expressions.cs (28)
7894
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.
Options
.None);
8342
OverloadResolution.
Options
options,
8348
Debug.Assert((options & ~(OverloadResolution.
Options
.IsMethodGroupConversion |
8349
OverloadResolution.
Options
.IsFunctionPointerResolution |
8350
OverloadResolution.
Options
.InferWithDynamic |
8351
OverloadResolution.
Options
.IgnoreNormalFormIfHasValidParamsParameter |
8352
OverloadResolution.
Options
.DisallowExpandedNonArrayParams |
8353
OverloadResolution.
Options
.DynamicResolution |
8354
OverloadResolution.
Options
.DynamicConvertsToAnything)) == 0);
8406
options |= OverloadResolution.
Options
.AllowRefOmittedArguments;
8417
options: options | OverloadResolution.
Options
.IsExtensionMethodResolution,
10240
OverloadResolution.
Options
options,
10245
Debug.Assert((options & ~(OverloadResolution.
Options
.IsMethodGroupConversion |
10246
OverloadResolution.
Options
.IsFunctionPointerResolution |
10247
OverloadResolution.
Options
.InferWithDynamic)) == 0);
10261
OverloadResolution.
Options
options,
10297
options: OverloadResolution.
Options
.IsMethodGroupConversion | OverloadResolution.
Options
.IsFunctionPointerResolution,
10309
OverloadResolution.
Options
options,
10379
OverloadResolution.
Options
options,
10384
Debug.Assert((options & ~(OverloadResolution.
Options
.IsMethodGroupConversion |
10385
OverloadResolution.
Options
.IsFunctionPointerResolution |
10386
OverloadResolution.
Options
.InferWithDynamic |
10387
OverloadResolution.
Options
.IgnoreNormalFormIfHasValidParamsParameter |
10388
OverloadResolution.
Options
.DisallowExpandedNonArrayParams |
10389
OverloadResolution.
Options
.DynamicResolution |
10390
OverloadResolution.
Options
.DynamicConvertsToAnything)) == 0);
10439
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,
3766
Options
options = (isMethodGroupConversion ?
Options
.IsMethodGroupConversion :
Options
.None) |
3767
(allowRefOmittedArguments ?
Options
.AllowRefOmittedArguments :
Options
.None);
3797
Options
options,
3857
Options
options,
3868
if ((options &
Options
.IsMethodGroupConversion) == 0)
3895
if ((options &
Options
.AllowRefOmittedArguments) != 0 && paramRefKind == RefKind.Ref && argRefKind == RefKind.None && !binder.InAttributeArgument)
3938
Options
options) where TMember : Symbol
3949
Options
options,
4006
Options
options,
4013
var argumentAnalysis = (options &
Options
.InferringUniqueMethodGroupSignature) != 0
4015
: AnalyzeArguments(member, arguments, isMethodGroupConversion: (options &
Options
.IsMethodGroupConversion) != 0, expanded: false);
4035
if ((options &
Options
.InferringUniqueMethodGroupSignature) == 0 && member.HasUseSiteError)
4052
Debug.Assert(!hasAnyRefOmittedArgument || (options &
Options
.AllowRefOmittedArguments) != 0);
4063
inferWithDynamic: (options &
Options
.InferWithDynamic) != 0,
4065
dynamicConvertsToAnything: (options &
Options
.DynamicConvertsToAnything) != 0,
4066
isMethodGroupConversion: (options &
Options
.IsMethodGroupConversion) != 0,
4085
Options
options,
4094
var argumentAnalysis = (options &
Options
.InferringUniqueMethodGroupSignature) != 0
4104
if ((options &
Options
.InferringUniqueMethodGroupSignature) == 0 && member.HasUseSiteError)
4117
options: options &
Options
.AllowRefOmittedArguments,
4121
Debug.Assert(!hasAnyRefOmittedArgument || (options &
Options
.AllowRefOmittedArguments) != 0);
4147
Options
options,
4166
if ((options &
Options
.InferringUniqueMethodGroupSignature) == 0 &&