4 instantiations of AmbiguousSymbolDiagnostic
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\Binder_Lookup.vb (1)
1135Return New AmbiguousSymbolDiagnostic(ERRID.ERR_DefaultPropertyAmbiguousAcrossInterfaces4, symbols, symbolA, containingSymbolA, symbolB, containingSymbolB)
Binding\LookupResult.vb (3)
756Return New AmbiguousSymbolDiagnostic(ERRID.ERR_MetadataMembersAmbiguous3, syms, name, containerKindText, container) 1023Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInNamespace2, syms, syms(0).Name, container) 1026Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInUnnamedNamespace1, syms, syms(0).Name)
36 references to AmbiguousSymbolDiagnostic
Microsoft.CodeAnalysis.VisualBasic (36)
Binding\Binder_Expressions.vb (4)
3123If TypeOf di Is AmbiguousSymbolDiagnostic Then 3126symbols = DirectCast(di, AmbiguousSymbolDiagnostic).AmbiguousSymbols 3384If TypeOf di Is AmbiguousSymbolDiagnostic Then 3387Dim 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)