9 instantiations of AmbiguousSymbolDiagnostic
Microsoft.CodeAnalysis.VisualBasic (8)
Binding\Binder_Lookup.vb (3)
560Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInModules2, syms, name, deferredFormattedList) 1135Return New AmbiguousSymbolDiagnostic(ERRID.ERR_DefaultPropertyAmbiguousAcrossInterfaces4, symbols, symbolA, containingSymbolA, symbolB, containingSymbolB) 1566ambiguityDiagnostics = New AmbiguousSymbolDiagnostic(
Binding\ImportedTypesAndNamespacesMembersBinder.vb (1)
167Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInImports2,
Binding\LookupResult.vb (4)
756Return New AmbiguousSymbolDiagnostic(ERRID.ERR_MetadataMembersAmbiguous3, syms, name, containerKindText, container) 1021Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInNamespaces2, syms, syms(0).Name, New FormattedSymbolList(containers)) 1023Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInNamespace2, syms, syms(0).Name, container) 1026Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInUnnamedNamespace1, syms, syms(0).Name)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Binding\LookupTests.vb (1)
229Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInModules2, syms, New FormattedSymbolList(syms.AsEnumerable))
42 references to AmbiguousSymbolDiagnostic
Microsoft.CodeAnalysis.VisualBasic (36)
Binding\Binder_Expressions.vb (4)
3096If TypeOf di Is AmbiguousSymbolDiagnostic Then 3099symbols = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols 3357If TypeOf di Is AmbiguousSymbolDiagnostic Then 3360Dim ambiguous As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
Binding\Binder_Lookup.vb (4)
555Private Shared ReadOnly s_ambiguousInModuleError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 556Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 1123Private Shared Function GenerateAmbiguousDefaultPropertyDiagnostic(symbols As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 1552Dim ambiguityDiagnostics As AmbiguousSymbolDiagnostic = Nothing
Binding\Binder_Symbols.vb (2)
741If result.Kind = LookupResultKind.Ambiguous AndAlso result.HasSingleSymbol AndAlso TypeOf result.Diagnostic Is AmbiguousSymbolDiagnostic Then 743Return Binder.GetErrorSymbol(name, result.Diagnostic, DirectCast(result.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols, result.Kind)
Binding\DocumentationCommentCrefBinder.vb (2)
870If TypeOf di Is AmbiguousSymbolDiagnostic Then 875Dim ambiguousSymbols As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
Binding\DocumentationCommentCrefBinder_Compat.vb (2)
425If TypeOf di Is AmbiguousSymbolDiagnostic Then 430Dim symbols As ImmutableArray(Of Symbol) = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols
Binding\ImportedTypesAndNamespacesMembersBinder.vb (2)
165Friend Shared GenerateAmbiguityError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 166Function(ambiguousSymbols As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
Binding\LookupResult.vb (17)
121generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) As SingleLookupResult 417generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) 453generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) 458If TypeOf Me.Diagnostic Is AmbiguousSymbolDiagnostic Then 459ambiguousResults.AddRange(DirectCast(Me.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols) 464If TypeOf other.Diagnostic Is AmbiguousSymbolDiagnostic Then 465ambiguousResults.AddRange(DirectCast(other.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols) 481generateAmbiguityDiagnostic As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic)) 486If TypeOf Me.Diagnostic Is AmbiguousSymbolDiagnostic Then 487ambiguousResults.AddRange(DirectCast(Me.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols) 492If TypeOf other.Diagnostic Is AmbiguousSymbolDiagnostic Then 493ambiguousResults.AddRange(DirectCast(other.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols) 750Private Shared ReadOnly s_ambiguousInTypeError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 751Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic 925For Each candidate In DirectCast(Me.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols 1011Private Shared ReadOnly s_ambiguousInNSError As Func(Of ImmutableArray(Of Symbol), AmbiguousSymbolDiagnostic) = 1012Function(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic
Symbols\Source\ImplementsHelper.vb (1)
214candidateSymbols.AddRange(DirectCast(lookup.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols)
Symbols\Source\OverloadingHelper.vb (2)
163If result.Kind = LookupResultKind.Ambiguous AndAlso result.HasDiagnostic AndAlso TypeOf result.Diagnostic Is AmbiguousSymbolDiagnostic Then 164lookupSymbols.AddRange(DirectCast(result.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Binding\LookupTests.vb (6)
64Dim diag3 = DirectCast(r3.Diagnostic, AmbiguousSymbolDiagnostic) 125Dim diag10 = DirectCast(r10.Diagnostic, AmbiguousSymbolDiagnostic) 140Dim diag11 = DirectCast(r11.Diagnostic, AmbiguousSymbolDiagnostic) 186Dim diag15 = DirectCast(r15.Diagnostic, AmbiguousSymbolDiagnostic) 219Dim diag19 = DirectCast(r19.Diagnostic, AmbiguousSymbolDiagnostic) 228Private Function GenerateAmbiguity(syms As ImmutableArray(Of Symbol)) As AmbiguousSymbolDiagnostic