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