270 references to LookupOptions
Microsoft.CodeAnalysis.CSharp (270)
Binder\Binder.WithQueryLambdaParametersBinder.cs (5)
94
LookupOptions
options =
LookupOptions
.MustBeInstance;
105
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
109
if ((options &
LookupOptions
.NamespaceAliasesOnly) != 0)
120
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\Binder_Crefs.cs (2)
351
options:
LookupOptions
.AllMethodsOnArityZero |
LookupOptions
.MustNotBeParameter,
Binder\Binder_Expressions.cs (27)
1796
LookupOptions
options =
LookupOptions
.AllMethodsOnArityZero;
1799
options |=
LookupOptions
.MustBeInvocableIfMember;
1804
Debug.Assert((options &
LookupOptions
.NamespacesOrTypesOnly) == 0);
1805
options |=
LookupOptions
.MustNotBeMethodTypeParameter;
2015
options:
LookupOptions
.Default,
2401
this.LookupSymbolsWithFallback(result, labelName, arity: 0, useSiteInfo: ref useSiteInfo, options:
LookupOptions
.LabelsOnly);
7655
LookupOptions
options =
LookupOptions
.AllMethodsOnArityZero;
7658
options |=
LookupOptions
.MustBeInvocableIfMember;
7756
LookupOptions
options,
7830
LookupOptions
options,
7840
this.LookupMembersWithFallback(lookupResult, leftType, rightName, rightArity, ref useSiteInfo, basesBeingResolved: null, options: options |
LookupOptions
.MustNotBeInstance |
LookupOptions
.MustBeAbstractOrVirtual);
8004
LookupOptions
options =
LookupOptions
.AllMethodsOnArityZero;
8007
options |=
LookupOptions
.MustBeInvocableIfMember;
8012
options |=
LookupOptions
.UseBaseReferenceAccessibility;
8498
LookupOptions
options;
8501
options =
LookupOptions
.AllMethodsOnArityZero;
8505
options =
LookupOptions
.Default;
9587
LookupOptions
lookupOptions = expr.Kind == BoundKind.BaseReference ?
LookupOptions
.UseBaseReferenceAccessibility :
LookupOptions
.Default;
10023
LookupOptions
.Default,
10078
LookupOptions
.Default,
10189
LookupOptions
.Default,
Binder\Binder_Invocation.cs (3)
2332
const
LookupOptions
options =
LookupOptions
.AllMethodsOnArityZero |
LookupOptions
.MustBeInvocableIfMember;
Binder\Binder_Lookup.cs (82)
33
LookupOptions
options,
47
internal void LookupExtensionMethods(LookupResult result, string name, int arity,
LookupOptions
options, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
61
private Binder LookupSymbolsWithFallback(LookupResult result, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null,
LookupOptions
options =
LookupOptions
.Default)
82
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
106
if ((options &
LookupOptions
.LabelsOnly) != 0 && scope.IsLastBinderWithinMember())
116
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
131
LookupOptions
options,
148
private void LookupMembersWithFallback(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null,
LookupOptions
options =
LookupOptions
.Default)
164
protected void LookupMembersInternal(LookupResult result, NamespaceOrTypeSymbol nsOrType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
180
protected void LookupMembersInType(LookupResult result, TypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
220
private void LookupMembersInErrorType(LookupResult result, ErrorTypeSymbol errorType, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
256
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
292
if ((options &
LookupOptions
.NamespaceAliasesOnly) == 0 && (object)submission.ScriptClass != null)
343
options = options & ~(
LookupOptions
.MustBeInvocableIfMember |
LookupOptions
.NamespacesOrTypesOnly);
405
LookupOptions
options,
443
private static void LookupMembersInNamespace(LookupResult result, NamespaceSymbol ns, string name, int arity,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
460
private void LookupExtensionMethodsInSingleBinder(ExtensionMethodScope scope, LookupResult result, string name, int arity,
LookupOptions
options, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
493
LookupOptions
options,
757
LookupOptions
options,
764
LookupOptions
options, Binder originalBinder, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved)
784
LookupOptions
options,
799
LookupOptions
options,
878
LookupOptions
options,
1018
LookupOptions
options,
1028
if ((options &
LookupOptions
.NamespaceAliasesOnly) == 0 && !originalBinder.InCrefButNotParameterOrReturnType &&
1029
((options &
LookupOptions
.NamespacesOrTypesOnly) == 0 || !(current.IsSingleViable && TypeSymbol.Equals(current.SingleSymbolOrDefault.ContainingType, type, TypeCompareKind.AllIgnoreOptions)))) // The nested type will shadow everything from bases
1121
LookupOptions
options,
1150
private void LookupMembersInInterface(LookupResult current, NamedTypeSymbol type, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
1168
private void LookupMembersInTypeParameter(LookupResult current, TypeParameterSymbol typeParameter, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
1172
if ((options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.NamespacesOrTypesOnly)) != 0)
1293
internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType, string name,
LookupOptions
options, Binder originalBinder)
1295
if ((options &
LookupOptions
.NamespacesOrTypesOnly) != 0 && nsOrType is TypeSymbol)
1303
else if ((options &
LookupOptions
.LabelsOnly) != 0)
1317
internal static ImmutableArray<Symbol> GetCandidateMembers(NamespaceOrTypeSymbol nsOrType,
LookupOptions
options, Binder originalBinder)
1319
if ((options &
LookupOptions
.NamespacesOrTypesOnly) != 0 && nsOrType is TypeSymbol)
1327
else if ((options &
LookupOptions
.LabelsOnly) != 0)
1385
internal SingleLookupResult CheckViability(Symbol symbol, int arity,
LookupOptions
options, TypeSymbol accessThroughType, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, ConsList<TypeSymbol> basesBeingResolved = null)
1387
Debug.Assert((options &
LookupOptions
.MustBeAbstractOrVirtual) == 0 || (options &
LookupOptions
.MustNotBeInstance) != 0);
1398
if ((options &
LookupOptions
.MustNotBeParameter) != 0 && unwrappedSymbol is ParameterSymbol)
1411
else if ((options & (
LookupOptions
.MustNotBeInstance |
LookupOptions
.MustBeAbstractOrVirtual)) == (
LookupOptions
.MustNotBeInstance |
LookupOptions
.MustBeAbstractOrVirtual) &&
1430
else if ((options &
LookupOptions
.NamespacesOrTypesOnly) != 0 && !(unwrappedSymbol is NamespaceOrTypeSymbol))
1434
else if ((options &
LookupOptions
.MustBeInvocableIfMember) != 0
1476
else if ((options &
LookupOptions
.MustBeInstance) != 0 && !IsInstance(unwrappedSymbol))
1481
else if ((options &
LookupOptions
.MustNotBeInstance) != 0 && IsInstance(unwrappedSymbol))
1486
else if ((options &
LookupOptions
.MustNotBeNamespace) != 0 && unwrappedSymbol.Kind == SymbolKind.Namespace)
1491
else if ((options &
LookupOptions
.LabelsOnly) != 0 && unwrappedSymbol.Kind != SymbolKind.Label)
1579
internal bool CanAddLookupSymbolInfo(Symbol symbol,
LookupOptions
options, LookupSymbolsInfo info, TypeSymbol accessThroughType, AliasSymbol aliasSymbol = null)
1592
if ((options &
LookupOptions
.NamespacesOrTypesOnly) != 0 && !(symbol is NamespaceOrTypeSymbol))
1596
else if ((options &
LookupOptions
.MustBeInvocableIfMember) != 0
1610
else if ((options &
LookupOptions
.MustBeInstance) != 0 && !IsInstance(symbol))
1614
else if ((options &
LookupOptions
.MustNotBeInstance) != 0 && IsInstance(symbol))
1618
else if ((options &
LookupOptions
.MustNotBeNamespace) != 0 && (symbol.Kind == SymbolKind.Namespace))
1631
private static TypeSymbol RefineAccessThroughType(
LookupOptions
options, TypeSymbol accessThroughType)
1636
return ((options &
LookupOptions
.UseBaseReferenceAccessibility) != 0)
1765
private static bool WrongArity(Symbol symbol, int arity, bool diagnose,
LookupOptions
options, out DiagnosticInfo diagInfo)
1770
if (arity != 0 || (options &
LookupOptions
.AllNamedTypesOnArityZero) == 0)
1793
if (arity != 0 || (options &
LookupOptions
.AllMethodsOnArityZero) == 0)
1829
internal void AddLookupSymbolsInfo(LookupSymbolsInfo result,
LookupOptions
options =
LookupOptions
.Default)
1835
if ((options &
LookupOptions
.LabelsOnly) != 0 && scope.IsLastBinderWithinMember())
1843
internal virtual void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo info,
LookupOptions
options, Binder originalBinder)
1851
internal void AddMemberLookupSymbolsInfo(LookupSymbolsInfo result, NamespaceOrTypeSymbol nsOrType,
LookupOptions
options, Binder originalBinder)
1863
private void AddMemberLookupSymbolsInfoInType(LookupSymbolsInfo result, TypeSymbol type,
LookupOptions
options, Binder originalBinder)
1887
protected void AddMemberLookupSymbolsInfoInSubmissions(LookupSymbolsInfo result, TypeSymbol scriptClass, bool inUsings,
LookupOptions
options, Binder originalBinder)
1901
if ((options &
LookupOptions
.LabelsOnly) == 0 && !(isCurrentSubmission && inUsings))
1919
LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
1922
if ((options &
LookupOptions
.LabelsOnly) == 0)
1938
static void addAliasSymbolToResult(LookupSymbolsInfo result, AliasSymbol aliasSymbol,
LookupOptions
options, Binder originalBinder)
1948
private static void AddMemberLookupSymbolsInfoInNamespace(LookupSymbolsInfo result, NamespaceSymbol ns,
LookupOptions
options, Binder originalBinder)
1960
private static void AddMemberLookupSymbolsInfoWithoutInheritance(LookupSymbolsInfo result, TypeSymbol type,
LookupOptions
options, Binder originalBinder, TypeSymbol accessThroughType)
1972
private void AddWinRTMembersLookupSymbolsInfo(LookupSymbolsInfo result, NamedTypeSymbol type,
LookupOptions
options, Binder originalBinder, TypeSymbol accessThroughType)
1987
private void AddMemberLookupSymbolsInfoInClass(LookupSymbolsInfo result, TypeSymbol type,
LookupOptions
options, Binder originalBinder, TypeSymbol accessThroughType)
2018
private void AddMemberLookupSymbolsInfoInInterface(LookupSymbolsInfo result, TypeSymbol type,
LookupOptions
options, Binder originalBinder, TypeSymbol accessThroughType)
2033
private void AddMemberLookupSymbolsInfoInTypeParameter(LookupSymbolsInfo result, TypeParameterSymbol type,
LookupOptions
options, Binder originalBinder)
Binder\Binder_Statements.cs (2)
476
var binder = this.LookupSymbolsWithFallback(result, node.Identifier.ValueText, arity: 0, useSiteInfo: ref useSiteInfo, options:
LookupOptions
.LabelsOnly);
494
binder.Next.LookupSymbolsWithFallback(result, node.Identifier.ValueText, arity: 0, useSiteInfo: ref useSiteInfo, options:
LookupOptions
.LabelsOnly);
Binder\Binder_Symbols.cs (16)
201
this.LookupSymbolsInternal(lookupResult, identifierValueText, arity: 0, useSiteInfo: ref discardedUseSiteInfo, basesBeingResolved: null, options:
LookupOptions
.NamespacesOrTypesOnly, diagnose: false);
365
this.LookupSymbolsWithFallback(result, plainName, 0, ref useSiteInfo, null,
LookupOptions
.NamespaceAliasesOnly);
368
Symbol bindingResult = ResultSymbol(result, plainName, 0, node, diagnostics, false, out wasError, qualifierOpt: null, options:
LookupOptions
.NamespaceAliasesOnly);
872
LookupOptions
options = GetSimpleNameLookupOptions(node, node.Identifier.IsVerbatimIdentifier());
1065
private static
LookupOptions
GetSimpleNameLookupOptions(NameSyntax node, bool isVerbatimIdentifier)
1076
return isVerbatimIdentifier ?
LookupOptions
.VerbatimNameAttributeTypeOnly :
LookupOptions
.AttributeTypeOnly;
1080
return
LookupOptions
.NamespacesOrTypesOnly;
1207
LookupOptions
options = GetSimpleNameLookupOptions(node, isVerbatimIdentifier: false);
1266
LookupOptions
options)
1911
LookupOptions
options = default(
LookupOptions
))
1940
LookupOptions
options)
2545
private CSDiagnosticInfo NotFound(SyntaxNode where, string simpleName, int arity, string whereText, BindingDiagnosticBag diagnostics, string aliasOpt, NamespaceOrTypeSymbol qualifierOpt,
LookupOptions
options)
2559
NotFound(where, simpleName, arity, attributeName, diagnostics, aliasOpt, qualifierOpt, options |
LookupOptions
.VerbatimNameAttributeTypeOnly);
2605
if (options ==
LookupOptions
.NamespaceAliasesOnly)
Binder\ForEachLoopBinder.cs (3)
1365
options:
LookupOptions
.Default,
1631
options:
LookupOptions
.Default, // properties are not invocable - their accessors are
1877
options:
LookupOptions
.Default,
Binder\HostObjectModeBinder.cs (2)
33
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
52
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\InContainerBinder.cs (4)
79
LookupOptions
options,
104
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
109
if ((options &
LookupOptions
.NamespaceAliasesOnly) == 0)
131
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\InMethodBinder.cs (3)
194
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
198
if (_methodSymbol.ParameterCount == 0 || (options &
LookupOptions
.NamespaceAliasesOnly) != 0)
228
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\InSubmissionClassBinder.cs (3)
38
LookupOptions
options,
48
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
55
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\LocalScopeBinder.cs (5)
422
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
427
if ((options &
LookupOptions
.LabelsOnly) != 0)
442
if (localsMap != null && (options &
LookupOptions
.NamespaceAliasesOnly) == 0)
462
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
466
if ((options &
LookupOptions
.LabelsOnly) != 0)
Binder\LookupOptions.cs (41)
131
internal static bool AreValid(this
LookupOptions
options)
133
if (options ==
LookupOptions
.Default)
138
if ((options &
LookupOptions
.LabelsOnly) != 0)
140
return options ==
LookupOptions
.LabelsOnly;
144
LookupOptions
mustBeAndNotBeInstance = (
LookupOptions
.MustBeInstance |
LookupOptions
.MustNotBeInstance);
151
if ((options & (
LookupOptions
.MustNotBeNamespace |
LookupOptions
.MustNotBeMethodTypeParameter)) != 0 &&
152
(options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.NamespacesOrTypesOnly)) != 0)
157
LookupOptions
onlyOptions = options &
158
(
LookupOptions
.NamespaceAliasesOnly
159
|
LookupOptions
.NamespacesOrTypesOnly
160
|
LookupOptions
.AllMethodsOnArityZero);
165
internal static void ThrowIfInvalid(this
LookupOptions
options)
173
private static bool OnlyOneBitSet(
LookupOptions
o)
178
internal static bool CanConsiderMembers(this
LookupOptions
options)
180
return (options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.NamespacesOrTypesOnly |
LookupOptions
.LabelsOnly)) == 0;
183
internal static bool CanConsiderLocals(this
LookupOptions
options)
185
return (options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.NamespacesOrTypesOnly |
LookupOptions
.LabelsOnly)) == 0;
188
internal static bool CanConsiderTypes(this
LookupOptions
options)
190
return (options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.MustBeInvocableIfMember |
LookupOptions
.MustBeInstance |
LookupOptions
.LabelsOnly)) == 0;
193
internal static bool CanConsiderNamespaces(this
LookupOptions
options)
195
return (options & (
LookupOptions
.MustNotBeNamespace |
LookupOptions
.MustBeInvocableIfMember |
LookupOptions
.MustBeInstance |
LookupOptions
.LabelsOnly)) == 0;
198
internal static bool IsAttributeTypeLookup(this
LookupOptions
options)
200
return (options &
LookupOptions
.AttributeTypeOnly) ==
LookupOptions
.AttributeTypeOnly;
203
internal static bool IsVerbatimNameAttributeTypeLookup(this
LookupOptions
options)
205
return (options &
LookupOptions
.VerbatimNameAttributeTypeOnly) ==
LookupOptions
.VerbatimNameAttributeTypeOnly;
Binder\NameofBinder.cs (3)
19
/// in the binder chain and some filtering (<see cref="
LookupOptions
.MustNotBeMethodTypeParameter"/>) to keep
60
internal override void LookupSymbolsInSingleBinder(LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
92
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo info,
LookupOptions
options, Binder originalBinder)
Binder\WithClassTypeParametersBinder.cs (1)
52
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\WithCrefTypeParametersBinder.cs (1)
139
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\WithExternAliasesBinder.cs (3)
33
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
50
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
53
if ((options &
LookupOptions
.LabelsOnly) == 0)
Binder\WithExternAndUsingAliasesBinder.cs (3)
37
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
54
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
57
if ((options &
LookupOptions
.LabelsOnly) == 0)
Binder\WithLambdaParametersBinder.cs (3)
87
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
91
if ((options &
LookupOptions
.NamespaceAliasesOnly) != 0)
102
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\WithMethodTypeParametersBinder.cs (4)
56
protected override
LookupOptions
LookupMask
60
return
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.MustNotBeMethodTypeParameter;
64
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
Binder\WithParametersBinder.cs (4)
31
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
46
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
48
if ((options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.MustBeInvocableIfMember)) != 0)
Binder\WithPrimaryConstructorParametersBinder.cs (4)
27
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
64
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
68
if ((options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.NamespacesOrTypesOnly)) != 0)
Binder\WithTypeParametersBinder.cs (7)
25
protected virtual
LookupOptions
LookupMask
29
return
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.MustBeInvocableIfMember;
33
protected bool CanConsiderTypeParameters(
LookupOptions
options)
35
return (options & (LookupMask |
LookupOptions
.MustBeInstance |
LookupOptions
.LabelsOnly)) == 0;
39
LookupResult result, string name, int arity, ConsList<TypeSymbol> basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Binder\WithUsingNamespacesAndTypesBinder.cs (7)
78
LookupOptions
options,
133
LookupResult result, string name, int arity, ConsList<TypeSymbol>? basesBeingResolved,
LookupOptions
options, Binder originalBinder, bool diagnose, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
198
internal override void AddLookupSymbolsInfoInSingleBinder(LookupSymbolsInfo result,
LookupOptions
options, Binder originalBinder)
201
if ((options &
LookupOptions
.LabelsOnly) == 0)
204
options = (options & ~(
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.NamespacesOrTypesOnly)) |
LookupOptions
.MustNotBeNamespace;
Compilation\CSharpSemanticModel.cs (26)
1419
var
options = includeReducedExtensionMethods ?
LookupOptions
.IncludeExtensionMethods :
LookupOptions
.Default;
1462
return LookupSymbolsInternal(position, container: null, name: name, options:
LookupOptions
.Default, useBaseReferenceAccessibility: true);
1488
return LookupSymbolsInternal(position, container, name,
LookupOptions
.MustNotBeInstance, useBaseReferenceAccessibility: false);
1514
return LookupSymbolsInternal(position, container, name,
LookupOptions
.NamespacesOrTypesOnly, useBaseReferenceAccessibility: false);
1535
return LookupSymbolsInternal(position, container: null, name: name, options:
LookupOptions
.LabelsOnly, useBaseReferenceAccessibility: false);
1562
LookupOptions
options,
1565
Debug.Assert((options &
LookupOptions
.UseBaseReferenceAccessibility) == 0, "Use the useBaseReferenceAccessibility parameter.");
1568
options |=
LookupOptions
.UseBaseReferenceAccessibility;
1579
options &= ~
LookupOptions
.IncludeExtensionMethods;
1610
(options & (
LookupOptions
.NamespaceAliasesOnly |
LookupOptions
.NamespacesOrTypesOnly |
LookupOptions
.LabelsOnly)) == 0)
1620
options |=
LookupOptions
.MustNotBeMethodTypeParameter;
1655
if ((options &
LookupOptions
.IncludeExtensionMethods) != 0)
1659
options |=
LookupOptions
.AllMethodsOnArityZero;
1660
options &= ~
LookupOptions
.MustBeInstance;
1687
private void AppendSymbolsWithName(ArrayBuilder<ISymbol> results, string name, Binder binder, NamespaceOrTypeSymbol container,
LookupOptions
options, LookupSymbolsInfo info)
1726
LookupOptions
options)
1731
Debug.Assert((options &
LookupOptions
.AllMethodsOnArityZero) == 0);
1742
options: options & ~
LookupOptions
.IncludeExtensionMethods,
4094
AppendSymbolsWithNameAndArity(symbols, WellKnownMemberNames.Indexer, 0, binder, type,
LookupOptions
.MustBeInstance);
4613
LookupOptions
options;
4617
options =
LookupOptions
.AllMethodsOnArityZero;
4622
options =
LookupOptions
.Default;
Symbols\MergedNamespaceSymbol.cs (1)
295
internal override void GetExtensionMethods(ArrayBuilder<MethodSymbol> methods, string name, int arity,
LookupOptions
options)
Symbols\NamedTypeSymbol.cs (3)
334
internal void GetExtensionMethods(ArrayBuilder<MethodSymbol> methods, string nameOpt, int arity,
LookupOptions
options)
342
internal void DoGetExtensionMethods(ArrayBuilder<MethodSymbol> methods, string nameOpt, int arity,
LookupOptions
options)
354
((options &
LookupOptions
.AllMethodsOnArityZero) != 0 || arity == method.Arity))
Symbols\NamespaceSymbol.cs (1)
333
internal virtual void GetExtensionMethods(ArrayBuilder<MethodSymbol> methods, string nameOpt, int arity,
LookupOptions
options)
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
234
internal override void GetExtensionMethods(ArrayBuilder<MethodSymbol> methods, string nameOpt, int arity,
LookupOptions
options)