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