4 instantiations of AmbiguousSymbolDiagnostic
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\Binder_Lookup.vb (1)
1135
Return New
AmbiguousSymbolDiagnostic
(ERRID.ERR_DefaultPropertyAmbiguousAcrossInterfaces4, symbols, symbolA, containingSymbolA, symbolB, containingSymbolB)
Binding\LookupResult.vb (3)
756
Return New
AmbiguousSymbolDiagnostic
(ERRID.ERR_MetadataMembersAmbiguous3, syms, name, containerKindText, container)
1023
Return New
AmbiguousSymbolDiagnostic
(ERRID.ERR_AmbiguousInNamespace2, syms, syms(0).Name, container)
1026
Return New
AmbiguousSymbolDiagnostic
(ERRID.ERR_AmbiguousInUnnamedNamespace1, syms, syms(0).Name)
36 references to AmbiguousSymbolDiagnostic
Microsoft.CodeAnalysis.VisualBasic (36)
Binding\Binder_Expressions.vb (4)
3123
If TypeOf di Is
AmbiguousSymbolDiagnostic
Then
3126
symbols = DirectCast(di,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols
3384
If TypeOf di Is
AmbiguousSymbolDiagnostic
Then
3387
Dim ambiguous As ImmutableArray(Of Symbol) = DirectCast(di,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols
Binding\Binder_Lookup.vb (4)
555
Private Shared ReadOnly s_ambiguousInModuleError As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
) =
556
Function(syms As ImmutableArray(Of Symbol)) As
AmbiguousSymbolDiagnostic
1123
Private Shared Function GenerateAmbiguousDefaultPropertyDiagnostic(symbols As ImmutableArray(Of Symbol)) As
AmbiguousSymbolDiagnostic
1552
Dim ambiguityDiagnostics As
AmbiguousSymbolDiagnostic
= Nothing
Binding\Binder_Symbols.vb (2)
741
If result.Kind = LookupResultKind.Ambiguous AndAlso result.HasSingleSymbol AndAlso TypeOf result.Diagnostic Is
AmbiguousSymbolDiagnostic
Then
743
Return Binder.GetErrorSymbol(name, result.Diagnostic, DirectCast(result.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols, result.Kind)
Binding\DocumentationCommentCrefBinder.vb (2)
870
If TypeOf di Is
AmbiguousSymbolDiagnostic
Then
875
Dim ambiguousSymbols As ImmutableArray(Of Symbol) = DirectCast(di,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols
Binding\DocumentationCommentCrefBinder_Compat.vb (2)
425
If TypeOf di Is
AmbiguousSymbolDiagnostic
Then
430
Dim symbols As ImmutableArray(Of Symbol) = DirectCast(di,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols
Binding\ImportedTypesAndNamespacesMembersBinder.vb (2)
165
Friend Shared GenerateAmbiguityError As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
) =
166
Function(ambiguousSymbols As ImmutableArray(Of Symbol)) As
AmbiguousSymbolDiagnostic
Binding\LookupResult.vb (17)
121
generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
)) As SingleLookupResult
417
generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
))
453
generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
))
458
If TypeOf Me.Diagnostic Is
AmbiguousSymbolDiagnostic
Then
459
ambiguousResults.AddRange(DirectCast(Me.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols)
464
If TypeOf other.Diagnostic Is
AmbiguousSymbolDiagnostic
Then
465
ambiguousResults.AddRange(DirectCast(other.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols)
481
generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
))
486
If TypeOf Me.Diagnostic Is
AmbiguousSymbolDiagnostic
Then
487
ambiguousResults.AddRange(DirectCast(Me.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols)
492
If TypeOf other.Diagnostic Is
AmbiguousSymbolDiagnostic
Then
493
ambiguousResults.AddRange(DirectCast(other.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols)
750
Private Shared ReadOnly s_ambiguousInTypeError As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
) =
751
Function(syms As ImmutableArray(Of Symbol)) As
AmbiguousSymbolDiagnostic
925
For Each candidate In DirectCast(Me.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols
1011
Private Shared ReadOnly s_ambiguousInNSError As Func(Of ImmutableArray(Of Symbol),
AmbiguousSymbolDiagnostic
) =
1012
Function(syms As ImmutableArray(Of Symbol)) As
AmbiguousSymbolDiagnostic
Symbols\Source\ImplementsHelper.vb (1)
214
candidateSymbols.AddRange(DirectCast(lookup.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols)
Symbols\Source\OverloadingHelper.vb (2)
163
If result.Kind = LookupResultKind.Ambiguous AndAlso result.HasDiagnostic AndAlso TypeOf result.Diagnostic Is
AmbiguousSymbolDiagnostic
Then
164
lookupSymbols.AddRange(DirectCast(result.Diagnostic,
AmbiguousSymbolDiagnostic
).AmbiguousSymbols)