342 references to LookupResultKind
Microsoft.CodeAnalysis.VisualBasic (342)
Binding\Binder.vb (2)
646resultKind As LookupResultKind, 653Return GetErrorSymbol(name, errorInfo, ImmutableArray(Of Symbol).Empty, LookupResultKind.Empty, reportErrorWhenReferenced)
Binding\Binder_Attributes.vb (8)
176Dim resultKind As LookupResultKind 186resultKind = LookupResultKind.NotATypeOrNamespace 241Dim resultKind = LookupResultKind.Good 281resultKind = LookupResult.WorseResultKind(resultKind, LookupResultKind.Empty) 283resultKind = LookupResult.WorseResultKind(resultKind, LookupResultKind.Inaccessible) 286Dim constructorsGroup = New BoundMethodGroup(node.Name, Nothing, accessibleConstructors, LookupResultKind.Good, Nothing, QualificationKind.QualifiedViaTypeName) 297resultKind = LookupResult.WorseResultKind(resultKind, LookupResultKind.OverloadResolutionFailure) 372Return New BoundAttribute(node, methodSym, boundArguments, defaultArguments, boundNamedArguments, resultKind, type, hasErrors:=resultKind <> LookupResultKind.Good)
Binding\Binder_Conversions.vb (1)
1460LookupResultKind.Good,
Binding\Binder_Delegates.vb (10)
60Return BadExpression(addressOfSyntax, boundOperand, LookupResultKind.NotAValue, ErrorTypeSymbol.UnknownResultType) 155LookupResultKind.Empty, 184LookupResultKind.Empty, 511If addressOfExpression.MethodGroup.ResultKind <> LookupResultKind.Inaccessible Then 577If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Inaccessible Then 582Debug.Assert(addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good) 691If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good Then 707If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Inaccessible Then 712Debug.Assert(addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good) 1108LookupResultKind.Good,
Binding\Binder_Expressions.vb (31)
289Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, resultType, hasErrors:=True) 297Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), resultType, hasErrors:=True) 304Private Shared Function BadExpression(node As SyntaxNode, expr As BoundExpression, resultKind As LookupResultKind, resultType As TypeSymbol) As BoundBadExpression 313Return New BoundBadExpression(node, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, exprs, resultType, hasErrors:=True) 317Return BadExpression(LookupResultKind.Empty, expr) 321Private Shared Function BadExpression(resultKind As LookupResultKind, wrappedExpression As BoundExpression) As BoundBadExpression 730If group.ResultKind = LookupResultKind.Inaccessible Then 737ElseIf group.ResultKind = LookupResultKind.Good AndAlso group.TypeArgumentsOpt IsNot Nothing Then 749If group.ResultKind = LookupResultKind.Inaccessible Then 953Return BadExpression(node, receiver, LookupResultKind.NotAValue, ErrorTypeSymbol.UnknownResultType) 1261Return BadExpression(syntax, expr, LookupResultKind.NotAValue, ErrorTypeSymbol.UnknownResultType) 1269Return BadExpression(syntax, expr, LookupResultKind.NotAValue, ErrorTypeSymbol.UnknownResultType) 1297Return BadExpression(syntax, expr, LookupResultKind.NotAValue, propertySymbol.Type) 1304Return BadExpression(syntax, expr, LookupResultKind.NotAValue, ErrorTypeSymbol.UnknownResultType) 1456If address.MethodGroup.ResultKind = LookupResultKind.Inaccessible Then 1464Debug.Assert(address.MethodGroup.ResultKind = LookupResultKind.Good) 1724expression = BadExpression(node, expression, LookupResultKind.NotAVariable, ErrorTypeSymbol.UnknownResultType) 2850Return New BoundMethodGroup(node, Nothing, accessibleConstructors, LookupResultKind.Good, left, 3089Dim resultKind As LookupResultKind = lookupResult.Kind 3093resultKind <> LookupResultKind.Inaccessible) Then 3094Debug.Assert(resultKind <> LookupResultKind.Good) 3101(lookupResult.Kind = LookupResultKind.WrongArity OrElse lookupResult.Kind = LookupResultKind.WrongArityAndStopLookup) Then 3125Debug.Assert(lookupResult.Kind = LookupResultKind.Ambiguous) 3155Debug.Assert(lookupResult.Kind = LookupResultKind.Good OrElse lookupResult.Kind = LookupResultKind.Inaccessible) 3386Debug.Assert(lookupResult.Kind = LookupResultKind.Ambiguous) 3599LookupResultKind.Empty, 4740If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Method Then 4792If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Property Then 4838If lookupResult.Kind = LookupResultKind.Good AndAlso lookupResult.Symbols(0).Kind = SymbolKind.Method Then
Binding\Binder_Initializers.vb (1)
530LookupResultKind.Empty,
Binding\Binder_InterpolatedString.vb (1)
159If lookup.Kind = LookupResultKind.Inaccessible Then
Binding\Binder_Invocation.vb (19)
30Debug.Assert(lookupResult.Kind = LookupResultKind.Good OrElse lookupResult.Kind = LookupResultKind.Inaccessible) 308LookupResultKind.Good, 740Debug.Assert(group.ResultKind = LookupResultKind.Good OrElse group.ResultKind = LookupResultKind.Inaccessible) 749If group.ResultKind <> LookupResultKind.Inaccessible Then 789Return New BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, 837If group.ResultKind = LookupResultKind.Inaccessible Then 840Debug.Assert(group.ResultKind = LookupResultKind.Good) 854If group.ResultKind = LookupResultKind.Good Then 1219lookupResult As LookupResultKind, 1341lookupResult As LookupResultKind, 1391If lookupResult = LookupResultKind.Inaccessible Then 1403Debug.Assert(lookupResult = LookupResultKind.Good) 1647Dim resultKind = LookupResultKind.OverloadResolutionFailure 1826lookupResult As LookupResultKind, 1980lookupResult As LookupResultKind, 2005If lookupResult <> LookupResultKind.Inaccessible Then 2006Debug.Assert(lookupResult = LookupResultKind.Good)
Binding\Binder_Lambda.vb (1)
1127If lookupResult.Kind = LookupResultKind.Empty Then
Binding\Binder_Lookup.vb (3)
815New SingleLookupResult(LookupResultKind.Good, sym, Nothing), 1275singleResult = New SingleLookupResult(LookupResultKind.NotReferencable, binder.GetErrorSymbol(name, useSiteError), useSiteError) 1579lookupResult.SetFrom(New SingleLookupResult(LookupResultKind.Ambiguous, symbols.First, ambiguityDiagnostics))
Binding\Binder_ObjectInitializer.vb (19)
130ImmutableArray.Create(constructorSymbol), LookupResultKind.Good, Nothing, 204Dim resultKind As LookupResultKind = LookupResultKind.Good 214resultKind = LookupResultKind.NotCreatable 292resultKind = LookupResultKind.NotCreatable 298Return New BoundBadExpression(node, LookupResultKind.Empty, 322resultKind = LookupResultKind.NotCreatable 332resultKind = LookupResultKind.NotCreatable 338resultKind = LookupResultKind.NotCreatable 363Dim groupResultKind As LookupResultKind = LookupResultKind.Good 367groupResultKind = LookupResultKind.Inaccessible 377If constructorsGroup Is Nothing OrElse constructorsGroup.ResultKind = LookupResultKind.Inaccessible Then 387resultExpression = New BoundBadExpression(node, LookupResult.WorseResultKind(resultKind, LookupResultKind.Empty), 394Debug.Assert(constructorsGroup.ResultKind = LookupResultKind.Good OrElse constructorsGroup.ResultKind = LookupResultKind.Inaccessible) 405If constructorsGroup.ResultKind <> LookupResultKind.Inaccessible Then 484If resultKind <> LookupResultKind.Good Then 1001LookupResultKind.Empty,
Binding\Binder_Operators.vb (5)
606LookupResultKind.Good, Nothing, 617result = ReportOverloadResolutionFailureAndProduceBoundNode(node, LookupResultKind.Good, 755LookupResultKind.Good, Nothing, 1257LookupResultKind.Good, Nothing, 1268result = ReportOverloadResolutionFailureAndProduceBoundNode(node, LookupResultKind.Good,
Binding\Binder_Query.vb (10)
1958Debug.Assert(methodGroup Is Nothing OrElse methodGroup.ResultKind = LookupResultKind.Good OrElse methodGroup.ResultKind = LookupResultKind.Inaccessible) 2036Debug.Assert(methodGroup Is Nothing OrElse methodGroup.ResultKind = LookupResultKind.Good OrElse methodGroup.ResultKind = LookupResultKind.Inaccessible) 4570If Not lookupResult.IsClear AndAlso (lookupResult.Kind = LookupResultKind.Good OrElse lookupResult.Kind = LookupResultKind.Inaccessible) Then 4637(methodGroup.ResultKind = LookupResultKind.Good OrElse methodGroup.ResultKind = LookupResultKind.Inaccessible))) 4648If methodGroup.ResultKind <> LookupResultKind.Inaccessible Then 4706Dim resultKind = LookupResultKind.OverloadResolutionFailure
Binding\Binder_Statements.vb (8)
436New BoundBadExpression(methodSymbol.Syntax, LookupResultKind.OverloadResolutionFailure, 2590LookupResultKind.Good, 3609LookupResultKind.NotAVariable, 3800LookupResultKind.Empty, 3853LookupResultKind.Empty, 3904LookupResultKind.Good, 3927LookupResultKind.Good, 3960LookupResultKind.Good,
Binding\Binder_Symbols.vb (4)
291Return Binder.GetErrorSymbol(GetBaseNamesForDiagnostic(typeSyntax), diagInfo, ImmutableArray.Create(Of Symbol)(sym), LookupResultKind.NotATypeOrNamespace) 741If result.Kind = LookupResultKind.Ambiguous AndAlso result.HasSingleSymbol AndAlso TypeOf result.Diagnostic Is AmbiguousSymbolDiagnostic Then 893If lookupResult.Kind = LookupResultKind.Empty Then 1077If lookupResult.Kind = LookupResultKind.Empty Then
Binding\DocumentationCommentCrefBinder.vb (1)
873Debug.Assert(lookupResult.Kind = LookupResultKind.Ambiguous)
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
427Debug.Assert(lookupResult.Kind = LookupResultKind.Ambiguous)
Binding\LookupResult.vb (69)
43Public Function ToCandidateReason(resultKind As LookupResultKind) As CandidateReason 45Case LookupResultKind.Empty, LookupResultKind.EmptyAndStopLookup 47Case LookupResultKind.OverloadResolutionFailure 49Case LookupResultKind.NotATypeOrNamespace 51Case LookupResultKind.NotAnEvent 53Case LookupResultKind.LateBound 55Case LookupResultKind.NotAnAttributeType 57Case LookupResultKind.NotAWithEventsMember 59Case LookupResultKind.WrongArity, LookupResultKind.WrongArityAndStopLookup 61Case LookupResultKind.NotCreatable 63Case LookupResultKind.Inaccessible 65Case LookupResultKind.NotAValue 67Case LookupResultKind.NotAVariable 69Case LookupResultKind.NotReferencable 71Case LookupResultKind.MustNotBeInstance, LookupResultKind.MustBeInstance 73Case LookupResultKind.Ambiguous 75Case LookupResultKind.MemberGroup 93Friend ReadOnly Kind As LookupResultKind 99Friend Sub New(kind As LookupResultKind, symbol As Symbol, diagInfo As DiagnosticInfo) 113Public Shared ReadOnly Empty As New SingleLookupResult(LookupResultKind.Empty, Nothing, Nothing) 116Return New SingleLookupResult(LookupResultKind.Good, sym, Nothing) 124Return New SingleLookupResult(LookupResultKind.Ambiguous, syms.First(), diagInfo) 128Return New SingleLookupResult(LookupResultKind.WrongArityAndStopLookup, sym, New BadSymbolDiagnostic(sym, err)) 131Public Shared ReadOnly EmptyAndStopLookup As New SingleLookupResult(LookupResultKind.EmptyAndStopLookup, Nothing, Nothing) 134Return New SingleLookupResult(LookupResultKind.WrongArityAndStopLookup, sym, diagInfo) 139Return New SingleLookupResult(LookupResultKind.WrongArity, sym, diagInfo) 144Return New SingleLookupResult(LookupResultKind.WrongArity, sym, New BadSymbolDiagnostic(sym, err)) 149Return New SingleLookupResult(LookupResultKind.MustNotBeInstance, sym, New BadSymbolDiagnostic(sym, err, Array.Empty(Of Object))) 154Return New SingleLookupResult(LookupResultKind.MustBeInstance, sym, Nothing) 160Return New SingleLookupResult(LookupResultKind.Inaccessible, sym, diagInfo) 164Return New SingleLookupResult(LookupResultKind.NotAnAttributeType, sym, [error]) 170Return Kind >= LookupResultKind.WrongArityAndStopLookup 176Return Kind = LookupResultKind.Good OrElse Kind = LookupResultKind.Ambiguous 182Return Kind = LookupResultKind.Good 188Return Kind = LookupResultKind.Ambiguous 237Private _kind As LookupResultKind 252Public ReadOnly Property Kind As LookupResultKind 261Return _kind >= LookupResultKind.EmptyAndStopLookup 268Return _kind = LookupResultKind.Good 274Return _kind = LookupResultKind.Good OrElse _kind = LookupResultKind.Ambiguous 280Return _kind = LookupResultKind.Ambiguous 286Return _kind = LookupResultKind.WrongArity OrElse _kind = LookupResultKind.WrongArityAndStopLookup 347_kind = LookupResultKind.Empty 364_kind = LookupResultKind.Empty 371Return _kind = LookupResultKind.Empty AndAlso _symList.Count = 0 AndAlso _diagInfo Is Nothing 375Private Sub SetFrom(kind As LookupResultKind, sym As Symbol, diagInfo As DiagnosticInfo) 424SetFrom(LookupResultKind.Ambiguous, syms(0), diagInfo) 437If other.Kind > Me.Kind AndAlso Me.Kind < LookupResultKind.Ambiguous Then 445If other.Kind > Me.Kind AndAlso Me.Kind < LookupResultKind.Ambiguous Then 543ElseIf Me.Kind <> LookupResultKind.Inaccessible OrElse Me.Kind > other.Kind Then 574ElseIf Me.Kind <> LookupResultKind.Inaccessible OrElse Me.Kind > other.Kind OrElse 614ElseIf Me.Kind <> LookupResultKind.Inaccessible OrElse Me.Kind > other.Kind OrElse 635ElseIf Me.Kind <> LookupResultKind.Inaccessible OrElse Me.Kind > other.Kind Then 638Debug.Assert(Me.Kind = LookupResultKind.Inaccessible) 1042Friend Shared Function WorseResultKind(resultKind1 As LookupResultKind, resultKind2 As LookupResultKind) As LookupResultKind 1043If resultKind1 = LookupResultKind.Empty Then 1044Return If(resultKind2 = LookupResultKind.Good, LookupResultKind.Empty, resultKind2) 1047If resultKind2 = LookupResultKind.Empty Then 1048Return If(resultKind1 = LookupResultKind.Good, LookupResultKind.Empty, resultKind1)
BoundTree\BoundAggregateClause.vb (1)
18Public Overrides ReadOnly Property ResultKind As LookupResultKind
BoundTree\BoundBadVariable.vb (2)
28Public Overrides ReadOnly Property ResultKind As LookupResultKind 30Return LookupResultKind.NotAValue
BoundTree\BoundCall.vb (1)
138Public Overrides ReadOnly Property ResultKind As LookupResultKind
BoundTree\BoundExpression.vb (2)
32Public Overridable ReadOnly Property ResultKind As LookupResultKind 34Return LookupResultKind.Good
BoundTree\BoundMethodGroup.vb (1)
20resultKind As LookupResultKind,
BoundTree\BoundNamespaceExpression.vb (2)
26Public Overrides ReadOnly Property ResultKind As LookupResultKind 29Return LookupResult.WorseResultKind(LookupResultKind.Ambiguous, MyBase.ResultKind)
BoundTree\BoundOrdering.vb (1)
19Public Overrides ReadOnly Property ResultKind As LookupResultKind
BoundTree\BoundPropertyAccess.vb (1)
97Public Overrides ReadOnly Property ResultKind As LookupResultKind
BoundTree\BoundQueryableSource.vb (1)
24Public Overrides ReadOnly Property ResultKind As LookupResultKind
BoundTree\BoundQueryClause.vb (1)
18Public Overrides ReadOnly Property ResultKind As LookupResultKind
BoundTree\BoundQuerySource.vb (1)
24Public Overrides ReadOnly Property ResultKind As LookupResultKind
BoundTree\BoundToQueryableCollectionConversion.vb (1)
22Public Overrides ReadOnly Property ResultKind As LookupResultKind
Compilation\MethodCompiler.vb (1)
2105resultKind:=LookupResultKind.Good,
Compilation\SemanticModel.vb (39)
276Dim resultKind As LookupResultKind = LookupResultKind.Empty 490Dim resultKind As LookupResultKind = LookupResultKind.Empty 1016ByRef resultKind As LookupResultKind, 1022resultKind = LookupResultKind.Good ' assume good unless we find out otherwise. 1041DirectCast(boundNodes.LowestBoundNodeOfSyntacticParent, BoundBadExpression).ResultKind = LookupResultKind.NotCreatable Then 1042resultKind = LookupResultKind.NotCreatable 1074Debug.Assert(resultKind <> LookupResultKind.Good) 1155If resultKind = LookupResultKind.NotCreatable Then 1186If highestBoundNodeExpr.ResultKind <> LookupResultKind.Empty AndAlso highestBoundNodeExpr.ResultKind < resultKind Then 1202ByRef resultKind As LookupResultKind) As ParameterSymbol 1206resultKind = LookupResultKind.NotReferencable 1216resultKind = LookupResultKind.MustNotBeInstance 1223resultKind = LookupResultKind.NotReferencable 1226resultKind = LookupResultKind.Good 1233resultKind = LookupResultKind.NotReferencable 1242ByRef resultKind As LookupResultKind) 1244resultKind = LookupResultKind.LateBound 1255ByRef resultKind As LookupResultKind) 1268resultKind = LookupResultKind.LateBound 1276ByRef resultKind As LookupResultKind) 1322resultKind = LookupResultKind.MemberGroup 1330resultKind = LookupResultKind.OverloadResolutionFailure 1343ByRef resultKind As LookupResultKind) 1378resultKind = LookupResultKind.MemberGroup 1386resultKind = LookupResultKind.OverloadResolutionFailure 1418ByRef resultKind As LookupResultKind) 1445Debug.Assert(resultKind <> LookupResultKind.Good OrElse TypeSymbol.Equals(namedTypeSymbol, boundAttribute.Type, TypeCompareKind.ConsiderEverything)) 1470ByRef resultKind As LookupResultKind) 1492Debug.Assert(resultKind <> LookupResultKind.Good) 1504resultKind = LookupResult.WorseResultKind(resultKind, LookupResultKind.OverloadResolutionFailure) 1526Dim resultKind As LookupResultKind 1532If resultKind <> LookupResultKind.Empty Then 1538resultKind = LookupResultKind.Ambiguous 1541resultKind = LookupResultKind.Good 2817Dim resultKind As LookupResultKind = LookupResultKind.Empty 2827If(resultKind = LookupResultKind.Good, CandidateReason.None, resultKind.ToCandidateReason()))
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (2)
95Return SymbolInfoFactory.Create(ImmutableArray.Create(Of ISymbol)(aliasSymbol), If(aliasSymbol IsNot Nothing, LookupResultKind.Good, LookupResultKind.Empty))
Compilation\SymbolInfo.vb (3)
13Friend Shared Function Create(symbols As ImmutableArray(Of Symbol), resultKind As LookupResultKind) As SymbolInfo 17Friend Shared Function Create(symbols As ImmutableArray(Of ISymbol), resultKind As LookupResultKind) As SymbolInfo 18Dim reason = If(resultKind = LookupResultKind.Good, CandidateReason.None, resultKind.ToCandidateReason())
Compilation\SyntaxTreeSemanticModel.vb (15)
280Return SymbolInfoFactory.Create(allSymbols, LookupResultKind.NotATypeOrNamespace) 482Return SymbolInfoFactory.Create(typeParameters, LookupResultKind.NotReferencable) 501Return SymbolInfoFactory.Create(symbols, LookupResultKind.Empty) 504Return SymbolInfoFactory.Create(symbols, If(symbols.Length = 1, LookupResultKind.Good, LookupResultKind.Ambiguous)) 701Private Function GetImplementedMemberAndResultKind(symbolBuilder As ArrayBuilder(Of Symbol), memberName As QualifiedNameSyntax) As LookupResultKind 704Dim resultKind As LookupResultKind = LookupResultKind.Good 758handlesClause As HandlesClauseItemSyntax) As LookupResultKind 760Dim resultKind As LookupResultKind = LookupResultKind.Good 789Dim resultKind As LookupResultKind = GetImplementedMemberAndResultKind(implementedMemberBuilder, memberName) 799Dim resultKind As LookupResultKind = GetHandledEventOrContainerSymbolsAndResultKind(eventSymbolBuilder:=builder, 813Dim resultKind As LookupResultKind = GetHandledEventOrContainerSymbolsAndResultKind(eventSymbolBuilder:=Nothing, 827Dim resultKind As LookupResultKind = GetHandledEventOrContainerSymbolsAndResultKind(eventSymbolBuilder:=Nothing,
Generated\BoundNodes.xml.Generated.vb (16)
586Public Sub New(syntax As SyntaxNode, resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False) 603Private ReadOnly _ResultKind As LookupResultKind 604Public Overrides ReadOnly Property ResultKind As LookupResultKind 629Public Function Update(resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundBadExpression 2682Public Sub New(syntax As SyntaxNode, typeArgumentsOpt As BoundTypeArguments, methods As ImmutableArray(Of MethodSymbol), pendingExtensionMethodsOpt As ExtensionMethodGroup, resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind, Optional hasErrors As Boolean = False) 2715Private ReadOnly _ResultKind As LookupResultKind 2716Public Overrides ReadOnly Property ResultKind As LookupResultKind 2727Public Function Update(typeArgumentsOpt As BoundTypeArguments, methods As ImmutableArray(Of MethodSymbol), pendingExtensionMethodsOpt As ExtensionMethodGroup, resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind) As BoundMethodGroup 2740Public Sub New(syntax As SyntaxNode, properties As ImmutableArray(Of PropertySymbol), resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind, Optional hasErrors As Boolean = False) 2757Private ReadOnly _ResultKind As LookupResultKind 2758Public Overrides ReadOnly Property ResultKind As LookupResultKind 2769Public Function Update(properties As ImmutableArray(Of PropertySymbol), resultKind As LookupResultKind, receiverOpt As BoundExpression, qualificationKind As QualificationKind) As BoundPropertyGroup 3133Public Sub New(syntax As SyntaxNode, constructor As MethodSymbol, constructorArguments As ImmutableArray(Of BoundExpression), constructorDefaultArguments As BitVector, namedArguments As ImmutableArray(Of BoundExpression), resultKind As LookupResultKind, type As TypeSymbol, Optional hasErrors As Boolean = False) 3176Private ReadOnly _ResultKind As LookupResultKind 3177Public Overrides ReadOnly Property ResultKind As LookupResultKind 3188Public Function Update(constructor As MethodSymbol, constructorArguments As ImmutableArray(Of BoundExpression), constructorDefaultArguments As BitVector, namedArguments As ImmutableArray(Of BoundExpression), resultKind As LookupResultKind, type As TypeSymbol) As BoundAttribute
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (2)
146LookupResultKind.Empty, 304LookupResultKind.NotCreatable,
Lowering\LocalRewriter\LocalRewriter_FieldAccess.vb (1)
74LookupResultKind.Empty,
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
301boundCurrent = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 717Return New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty,
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (2)
448rewrittenInitCondition = New BoundBadExpression(rewrittenLimit.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, 503rewrittenLoopCondition = New BoundBadExpression(rewrittenLimit.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty,
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (4)
26Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), nullableType, hasErrors:=True) 206Return If(isOptional, Nothing, New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True)) 255Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True) 283Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr),
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (4)
74newGuid = New BoundBadExpression(node.Syntax, LookupResultKind.NotCreatable, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) 83callGetTypeFromCLSID = New BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) 94rewrittenObjectCreation = New BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, node.Type, hasErrors:=True) 153result = New BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, typeParameter, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
165Return New BoundBadExpression(syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(rewrittenReceiver), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (2)
225Return New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, parameters, ErrorTypeSymbol.UnknownResultType, hasErrors:=True).ToStatement() 249boundMonitorExitCall = New BoundBadExpression(syntaxNode, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(boundLockObject), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Lowering\LocalRewriter\LocalRewriter_TupleLiteralExpression.vb (2)
55LookupResultKind.Empty, 77LookupResultKind.Empty,
Lowering\SyntheticBoundNodeFactory.vb (1)
459Dim boundNode = New BoundBadExpression(_syntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(subExpressions), ErrorTypeSymbol.UnknownResultType, hasErrors:=True)
Semantics\Operators.vb (1)
3239Dim methodGroup = New BoundMethodGroup(argument1.Syntax, Nothing, ImmutableArray(Of MethodSymbol).Empty, LookupResultKind.Good, Nothing, QualificationKind.Unqualified)
Semantics\OverloadResolution.vb (5)
882Debug.Assert(methodGroup.ResultKind = LookupResultKind.Good OrElse methodGroup.ResultKind = LookupResultKind.Inaccessible) 943If methodGroup.ResultKind = LookupResultKind.Good Then 1008Debug.Assert(propertyGroup.ResultKind = LookupResultKind.Good OrElse propertyGroup.ResultKind = LookupResultKind.Inaccessible)
Symbols\ErrorTypeSymbol.vb (3)
354Friend Overridable ReadOnly Property ResultKind As LookupResultKind 356Return LookupResultKind.Empty 384Debug.Assert(ResultKind <> LookupResultKind.Good, "Shouldn't have good result kind on error symbol")
Symbols\ExtendedErrorTypeSymbol.vb (5)
25Private ReadOnly _resultKind As LookupResultKind 47resultKind As LookupResultKind, 85_resultKind = LookupResultKind.NotATypeOrNamespace ' TODO: Replace. 88_resultKind = LookupResultKind.Empty 111Friend Overrides ReadOnly Property ResultKind As LookupResultKind
Symbols\Source\ImplementsHelper.vb (10)
75Dim dummyResultKind As LookupResultKind 121Dim dummyResultKind As LookupResultKind 172ByRef resultKind As LookupResultKind) As TSymbol 173resultKind = LookupResultKind.Good 187resultKind = LookupResultKind.NotReferencable 216resultKind = LookupResult.WorseResultKind(lookup.Kind, LookupResultKind.Ambiguous) 298resultKind = LookupResult.WorseResultKind(lookup.Kind, LookupResultKind.OverloadResolutionFailure) 309resultKind = LookupResult.WorseResultKind(lookup.Kind, LookupResultKind.Ambiguous) 335resultKind = LookupResult.WorseResultKind(lookup.Kind, LookupResultKind.OverloadResolutionFailure) 363resultKind = LookupResult.WorseResultKind(resultKind, LookupResultKind.Inaccessible) ' we specified IgnoreAccessibility above.
Symbols\Source\OverloadingHelper.vb (1)
163If result.Kind = LookupResultKind.Ambiguous AndAlso result.HasDiagnostic AndAlso TypeOf result.Diagnostic Is AmbiguousSymbolDiagnostic Then
Symbols\Source\SourceMemberMethodSymbol.vb (10)
599Optional ByRef resultKind As LookupResultKind = Nothing) As HandledEvent 815LookupResultKind.Good, 858Optional ByRef resultKind As LookupResultKind = Nothing) As PropertySymbol 879resultKind = LookupResultKind.NotAWithEventsMember 883resultKind = LookupResultKind.Ambiguous 897Optional ByRef resultKind As LookupResultKind = Nothing) As EventSymbol 917resultKind = LookupResultKind.NotAnEvent 921resultKind = LookupResultKind.Ambiguous 934Optional ByRef resultKind As LookupResultKind = Nothing) As PropertySymbol 997resultKind = LookupResultKind.Empty
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
75New BoundMethodGroup(syntaxNode, Nothing, ImmutableArray.Create(runMethod), LookupResultKind.Good, Nothing, QualificationKind.QualifiedViaTypeName),