52 references to SingleLookupResult
Microsoft.CodeAnalysis.VisualBasic (52)
Binding\Binder_Attributes.vb (1)
226lookupResult.SetFrom(SingleLookupResult.NotAnAttributeType(symbol, diagInfo))
Binding\Binder_Lambda.vb (1)
1128lookupResult.SetFrom(SingleLookupResult.EmptyAndStopLookup)
Binding\Binder_Lookup.vb (17)
121<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As SingleLookupResult 125Return SingleLookupResult.Empty 131Return SingleLookupResult.Good(sym) 135Return SingleLookupResult.Empty 150Return SingleLookupResult.Empty 163Return SingleLookupResult.Empty 172Return SingleLookupResult.Empty 184Return SingleLookupResult.WrongArity(sym, WrongArityErrid(actualArity, arity)) 189Return SingleLookupResult.WrongArity(unwrappedSym, WrongArityErrid(0, arity)) 198Return SingleLookupResult.WrongArity(unwrappedSym, WrongArityErrid(0, arity)) 210Return SingleLookupResult.WrongArityAndStopLookup(sym, WrongArityErrid(actualArity, arity)) 217Return SingleLookupResult.WrongArityAndStopLookup(sym, WrongArityErrid(0, arity)) 226Return SingleLookupResult.Inaccessible(sym, GetInaccessibleErrorInfo(sym)) 236Return SingleLookupResult.Good(sym) 442Dim currentResult As SingleLookupResult = binder.CheckViability(sym, arity, options, Nothing, useSiteInfo) 1184lookupResult.SetFrom(SingleLookupResult.Empty) 1271Dim singleResult As SingleLookupResult
Binding\Binder_Symbols.vb (10)
755suppressUseSiteError As Boolean) As SingleLookupResult 764suppressUseSiteError As Boolean) As SingleLookupResult 804Return SingleLookupResult.Good(sym) 814inGetTypeContext As Boolean) As SingleLookupResult 819Return SingleLookupResult.Good(binder.ApplyArrayRankSpecifiersToType(elementType, arrayTypeSyntax.RankSpecifiers, diagBag)) 828suppressUseSiteError As Boolean) As SingleLookupResult 830Return SingleLookupResult.Good(binder.CreateNullableOf(elementType, nullableTypeSyntax, nullableTypeSyntax.ElementType, diagBag)) 906lookupResult.SetFrom(SingleLookupResult.WrongArity(lookupResult.SingleSymbol, 1109binder As Binder) As SingleLookupResult 1110Return SingleLookupResult.Good(binder.Compilation.GlobalNamespace)
Binding\ExecutableCodeBinder.vb (2)
130lookupResult.SetFrom(SingleLookupResult.Good(labels.Single())) 146lookupResult.SetFrom(SingleLookupResult.Good(bestSymbol))
Binding\LookupResult.vb (21)
115Public Shared Function Good(sym As Symbol) As SingleLookupResult 121generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) As SingleLookupResult 127Public Shared Function WrongArityAndStopLookup(sym As Symbol, err As ERRID) As SingleLookupResult 133Public Shared Function WrongArityAndStopLookup(sym As Symbol, diagInfo As DiagnosticInfo) As SingleLookupResult 138diagInfo As DiagnosticInfo) As SingleLookupResult 143err As ERRID) As SingleLookupResult 148Public Shared Function MustNotBeInstance(sym As Symbol, err As ERRID) As SingleLookupResult 153Public Shared Function MustBeInstance(sym As Symbol) As SingleLookupResult 159diagInfo As DiagnosticInfo) As SingleLookupResult 163Friend Shared Function NotAnAttributeType(sym As Symbol, [error] As DiagnosticInfo) As SingleLookupResult 387Public Sub SetFrom(other As SingleLookupResult) 407SetFrom(SingleLookupResult.Good(s)) 427SetFrom(SingleLookupResult.Good(syms(0))) 444Public Sub MergePrioritized(other As SingleLookupResult) 480Public Sub MergeAmbiguous(other As SingleLookupResult, 534Public Sub MergeOverloadedOrPrioritizedExtensionMethods(other As SingleLookupResult) 595Public Sub MergeOverloadedOrPrioritized(other As SingleLookupResult, checkIfCurrentHasOverloads As Boolean) 626Public Sub MergeMembersOfTheSameType(other As SingleLookupResult, imported As Boolean) 648Private Sub MergeOverloadedOrAmbiguousInTheSameType(other As SingleLookupResult, imported As Boolean) 853Public Sub MergeMembersOfTheSameNamespace(other As SingleLookupResult, sourceModule As ModuleSymbol, options As LookupOptions) 902Private Function ResolveAmbiguityInTheSameNamespace(other As SingleLookupResult, sourceModule As ModuleSymbol, options As LookupOptions) As Integer