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