Binding\Binder_Expressions.vb (20)
2471Dim options As LookupOptions = LookupOptions.AllMethodsOfAnyArity ' overload resolution filters methods by arity.
2473options = options Or LookupOptions.MustNotBeReturnValueVariable
2477options = options Or LookupOptions.MustNotBeLocalOrParameter
2484options = options Or LookupOptions.AllowIntrinsicAliases
2549options As LookupOptions,
2875Dim options As LookupOptions = LookupOptions.AllMethodsOfAnyArity
2890options = options Or LookupOptions.AllowIntrinsicAliases
2936options Or LookupOptions.UseBaseReferenceAccessibility)
2938effectiveOptions = effectiveOptions Or LookupOptions.EventsOnly
3072lookupOptionsUsed As LookupOptions,
3578Me.Lookup(result, labelName, arity:=0, options:=LookupOptions.LabelsOnly, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded)
4736LookupMember(lookupResult, awaitableInstancePlaceholder.Type, WellKnownMemberNames.GetAwaiter, 0, LookupOptions.AllMethodsOfAnyArity, useSiteInfo)
4744LookupOptions.Default,
4790LookupOptions.AllMethodsOfAnyArity Or LookupOptions.IgnoreExtensionMethods, useSiteInfo)
4836LookupOptions.AllMethodsOfAnyArity Or LookupOptions.IgnoreExtensionMethods, useSiteInfo)
4842LookupOptions.Default,
Binding\Binder_Lookup.vb (81)
26options As LookupOptions,
38options As LookupOptions,
52options As LookupOptions,
64options As LookupOptions,
77options As LookupOptions,
90options As LookupOptions,
100options As LookupOptions)
119options As LookupOptions,
128If (options And LookupOptions.LabelsOnly) <> 0 Then
130If options = LookupOptions.LabelsOnly AndAlso sym.Kind = SymbolKind.Label Then
138If (options And LookupOptions.MustNotBeReturnValueVariable) <> 0 Then
209Not ((options And LookupOptions.AllMethodsOfAnyArity) <> 0) Then
222If (options And LookupOptions.IgnoreAccessibility) = 0 Then
223Dim accessCheckResult = CheckAccessibility(unwrappedSym, useSiteInfo, If((options And LookupOptions.UseBaseReferenceAccessibility) <> 0, Nothing, accessThroughType))
277options As LookupOptions,
288If (options And LookupOptions.MethodsOnly) <> 0 AndAlso
337options As LookupOptions,
353options As LookupOptions,
372options As LookupOptions,
403options As LookupOptions,
413If (options And LookupOptions.AllowIntrinsicAliases) <> 0 AndAlso arity = 0 Then
481options As LookupOptions,
490options = options Or LookupOptions.IgnoreExtensionMethods Or LookupOptions.NoBaseClassLookup
538options As LookupOptions,
573options As LookupOptions,
603options As LookupOptions,
610AddLookupSymbolsInfoInClass(nameSet, container, options Or LookupOptions.NoBaseClassLookup, binder)
640options As LookupOptions,
699If (options And LookupOptions.NoBaseClassLookup) <> 0 OrElse binder.IgnoreBaseClassesInLookup Then
740Optional options As LookupOptions = Nothing)
862options As LookupOptions,
898options = options And Not LookupOptions.NamespacesOrTypesOnly
1098options:=LookupOptions.Default,
1111options:=LookupOptions.Default,
1148options As LookupOptions,
1154((options And LookupOptions.EagerlyLookupExtensionMethods) = 0 OrElse
1165Private Shared Function ShouldLookupExtensionMethods(options As LookupOptions, container As TypeSymbol) As Boolean
1177options As LookupOptions,
1214((options And LookupOptions.IgnoreAccessibility) <> 0 OrElse
1255options As LookupOptions,
1265If (options And LookupOptions.NamespacesOrTypesOnly) <> 0 OrElse
1294LookupOptions.AllMethodsOfAnyArity Or LookupOptions.IgnoreAccessibility,
1309options As LookupOptions,
1448options As LookupOptions,
1469If Not lookupResult.IsGoodOrAmbiguous AndAlso (options And LookupOptions.NoSystemObjectLookupForInterfaces) = 0 Then
1475name, arity, options Or LookupOptions.IgnoreExtensionMethods, obj, binder,
1497options As LookupOptions,
1506Dim isEventsOnlySpecified As Boolean = (options And LookupOptions.EventsOnly) <> 0
1518If (options And LookupOptions.NoBaseClassLookup) = 0 AndAlso Not binder.IgnoreBaseClassesInLookup Then
1611options As LookupOptions,
1627options As LookupOptions,
1631Debug.Assert((options And LookupOptions.MethodsOnly) = 0)
1633options = options Or LookupOptions.IgnoreExtensionMethods
1657Debug.Assert((options And LookupOptions.MethodsOnly) = 0)
1674Private Shared Function CheckAndClearMethodsOnlyOption(ByRef options As LookupOptions) As Boolean
1675If (options And LookupOptions.MethodsOnly) <> 0 Then
1676options = CType(options And (Not LookupOptions.MethodsOnly), LookupOptions)
1924options As LookupOptions,
1946If (options And LookupOptions.NoBaseClassLookup) <> 0 OrElse binder.IgnoreBaseClassesInLookup Then
1972options As LookupOptions,
1991options As LookupOptions,
2007options Or LookupOptions.IgnoreExtensionMethods, binder)
2017options As LookupOptions,
2028If (options And LookupOptions.NoBaseClassLookup) = 0 AndAlso Not binder.IgnoreBaseClassesInLookup Then
2038options As LookupOptions,
2052options As LookupOptions,
2054options = options Or LookupOptions.IgnoreExtensionMethods
2087options As LookupOptions,
2094If (options And (LookupOptions.NamespacesOrTypesOnly Or LookupOptions.LabelsOnly)) = LookupOptions.NamespacesOrTypesOnly Then
2100ElseIf (options And LookupOptions.LabelsOnly) = 0 Then
2120options As LookupOptions,
2125If (options And (LookupOptions.NamespacesOrTypesOnly Or LookupOptions.LabelsOnly)) = LookupOptions.NamespacesOrTypesOnly Then
2135ElseIf (options And LookupOptions.LabelsOnly) = 0 Then
2148options As LookupOptions,
Binding\Binder_Statements.vb (6)
933Lookup(result, labelName, 0, LookupOptions.LabelsOnly, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded)
2989Lookup(result, name, 0, LookupOptions.AllMethodsOfAnyArity, useSiteInfo)
4118LookupOptions.AllMethodsOfAnyArity,
4154LookupOptions.AllMethodsOfAnyArity,
4277LookupMember(result, container, name, 0, LookupOptions.AllMethodsOfAnyArity, useSiteInfo)
4298LookupOptions.AllMethodsOfAnyArity,
Binding\Binder_Symbols.vb (6)
855binder.LookupAttributeType(lookupResult, Nothing, idText, LookupOptions.AttributeTypeOnly, useSiteInfo)
857binder.Lookup(lookupResult, idText, 0, LookupOptions.NamespacesOrTypesOnly, useSiteInfo)
886binder.Lookup(lookupResult, idText, arity, LookupOptions.NamespacesOrTypesOnly, useSiteInfo)
973LookupOptions.AttributeTypeOnly,
989LookupOptions.NamespacesOrTypesOnly,
1072LookupOptions.NamespacesOrTypesOnly,
Binding\NamespaceBinder.vb (5)
73options As LookupOptions,
77originalBinder.LookupMember(lookupResult, _nsSymbol, name, arity, options Or LookupOptions.IgnoreExtensionMethods, useSiteInfo)
93options As LookupOptions,
98Friend Overrides Sub AddLookupSymbolsInfoInSingleBinder(nameSet As LookupSymbolsInfo, options As LookupOptions, originalBinder As Binder)
100originalBinder.AddMemberLookupSymbolsInfo(nameSet, _nsSymbol, options Or LookupOptions.IgnoreExtensionMethods)
Compilation\SemanticModel.vb (23)
1602Dim options = If(includeReducedExtensionMethods, LookupOptions.Default, LookupOptions.IgnoreExtensionMethods)
1652Dim result = LookupSymbolsInternal(position, Nothing, name, LookupOptions.Default, useBaseReferenceAccessibility:=True)
1685Dim result = LookupSymbolsInternal(position, ToLanguageSpecific(container), name, LookupOptions.MustNotBeInstance Or LookupOptions.IgnoreExtensionMethods, useBaseReferenceAccessibility:=False)
1717Dim result = LookupSymbolsInternal(position, ToLanguageSpecific(container), name, LookupOptions.NamespacesOrTypesOnly, useBaseReferenceAccessibility:=False)
1745Dim result = LookupSymbolsInternal(position, container:=Nothing, name:=name, options:=LookupOptions.LabelsOnly, useBaseReferenceAccessibility:=False)
1819options As LookupOptions,
1822Debug.Assert((options And LookupOptions.UseBaseReferenceAccessibility) = 0, "Use the useBaseReferenceAccessibility parameter.")
1824options = options Or LookupOptions.UseBaseReferenceAccessibility
1898Private Sub AppendSymbolsWithName(results As ArrayBuilder(Of Symbol), name As String, binder As Binder, container As NamespaceOrTypeSymbol, options As LookupOptions, info As LookupSymbolsInfo)
1926options As LookupOptions,
1952options As LookupOptions,
1964options = CType(options Or LookupOptions.EagerlyLookupExtensionMethods, LookupOptions)
2001options As LookupOptions,
2010(options And (LookupOptions.LabelsOnly Or LookupOptions.NamespacesOrTypesOnly Or LookupOptions.MustNotBeInstance)) = 0 Then
2011If (options And LookupOptions.IgnoreAccessibility) <> 0 Then
2041Optional options As LookupOptions = LookupOptions.Default)
3621Friend Function GetMessage(name As String, [option] As LookupOptions, position As Integer) As String