44 references to SingleSymbol
Microsoft.CodeAnalysis.VisualBasic (44)
Binding\Binder_Attributes.vb (2)
173Dim symbol = UnwrapAlias(lookupResult.SingleSymbol) 608Return result.SingleSymbol
Binding\Binder_Expressions.vb (13)
3165Dim eventSymbol = DirectCast(lookupResult.SingleSymbol, EventSymbol) 3198Dim fieldSymbol As FieldSymbol = DirectCast(lookupResult.SingleSymbol, FieldSymbol) 3245Dim localSymbol = DirectCast(lookupResult.SingleSymbol, LocalSymbol) 3282Dim rangeVariable = DirectCast(lookupResult.SingleSymbol, RangeVariableSymbol) 3287Dim parameterSymbol = DirectCast(lookupResult.SingleSymbol, ParameterSymbol) 3309Dim typeSymbol = TryCast(lookupResult.SingleSymbol, NamedTypeSymbol) 3327ReportUseSite(diagnostics, node, If(typeSymbol, lookupResult.SingleSymbol)) 3330Dim type As TypeSymbol = DirectCast(lookupResult.SingleSymbol, TypeSymbol) 3342Debug.Assert(lookupResult.SingleSymbol.GetUseSiteInfo().IsEmpty) 3343Return New BoundTypeExpression(node, DirectCast(lookupResult.SingleSymbol, TypeSymbol), hasErrors:=hasError) 3348Debug.Assert(lookupResult.SingleSymbol.GetUseSiteInfo().IsEmpty) 3349Return New BoundNamespaceExpression(node, receiver, DirectCast(lookupResult.SingleSymbol, NamespaceSymbol), hasErrors:=hasError) 3352Dim [alias] = DirectCast(lookupResult.SingleSymbol, AliasSymbol)
Binding\Binder_Statements.vb (3)
936Dim symbol = DirectCast(result.SingleSymbol, SourceLabelSymbol) 1783Dim lookupSymbol = DirectCast(result.SingleSymbol, LocalSymbol) 1851Dim altSymbol = result.SingleSymbol
Binding\Binder_Symbols.vb (18)
275Dim sym = lookupResult.SingleSymbol 285diagInfo = New BadSymbolDiagnostic(lookupResult.SingleSymbol, ERRID.ERR_UnrecognizedType) 528Return ErrorTypeFromLookupResult(lookupResult.SingleSymbol.Name, lookupResult, binder) 532Dim result = lookupResult.SingleSymbol 567lookupResult.SingleSymbol.Kind = SymbolKind.Alias Then 570lookupResult.ReplaceSymbol(DirectCast(lookupResult.SingleSymbol, AliasSymbol).Target) 716Dim currentSymbol As Symbol = lookupResult.SingleSymbol 721If currentSymbol Is lookupResult.SingleSymbol Then 726ERRID.ERR_NestedTypeInInheritsClause2, typeWithBaseBeingResolved, lookupResult.SingleSymbol) 897Dim genericType = TryCast(lookupResult.SingleSymbol, NamedTypeSymbol) 906lookupResult.SetFrom(SingleLookupResult.WrongArity(lookupResult.SingleSymbol, 907New BadSymbolDiagnostic(lookupResult.SingleSymbol, ERRID.ERR_TypeOrMemberNotGeneric1, lookupResult.SingleSymbol))) 961Dim leftSymbol As NamespaceOrTypeSymbol = DirectCast(lookupResult.SingleSymbol, NamespaceOrTypeSymbol) 992If lookupResult.HasSingleSymbol AndAlso lookupResult.SingleSymbol.Kind = SymbolKind.NamedType Then 993Dim namedType = DirectCast(lookupResult.SingleSymbol, NamedTypeSymbol) 1052Dim leftSymbol As NamespaceOrTypeSymbol = DirectCast(lookupResult.SingleSymbol, NamespaceOrTypeSymbol) 1084Dim genericType = TryCast(lookupResult.SingleSymbol, NamedTypeSymbol)
Binding\DocumentationCommentTypeParamRefBinder.vb (1)
44Dim symbol As Symbol = lookupResult.SingleSymbol
Binding\ImportedTypesAndNamespacesMembersBinder.vb (2)
71currentResult.SingleSymbol.Kind = SymbolKind.Namespace AndAlso 72Not DirectCast(currentResult.SingleSymbol, NamespaceSymbol).ContainsTypesAccessibleFrom(Compilation.Assembly)) Then
Compilation\SemanticModel.vb (3)
1987ElseIf result.HasSingleSymbol AndAlso result.SingleSymbol.Kind = SymbolKind.Namespace AndAlso 1988DirectCast(result.SingleSymbol, NamespaceSymbol).NamespaceKind = NamespaceKindNamespaceGroup Then 1989results.AddRange(DirectCast(result.SingleSymbol, NamespaceSymbol).ConstituentNamespaces)
Symbols\Source\SourceMemberMethodSymbol.vb (2)
874Dim prop = TryCast(witheventsLookup.SingleSymbol, PropertySymbol) 915result = TryCast(eventLookup.SingleSymbol, EventSymbol)