32 references to Diagnostic
Microsoft.CodeAnalysis.VisualBasic (32)
Binding\Binder_Attributes.vb (1)
546ReportDiagnostic(diagnostics, identifierName, result.Diagnostic)
Binding\Binder_Expressions.vb (3)
3097Dim di As DiagnosticInfo = lookupResult.Diagnostic 3383Dim di As DiagnosticInfo = lookupResult.Diagnostic 3586ReportDiagnostic(diagnostics, node, result.Diagnostic)
Binding\Binder_Statements.vb (1)
4318diagnostics.Add(New VBDiagnostic(result.Diagnostic, syntax.GetLocation()))
Binding\Binder_Symbols.vb (11)
265diagInfo = lookupResult.Diagnostic 268Binder.ReportDiagnostic(diagBag, typeSyntax, lookupResult.Diagnostic) 525Binder.ReportDiagnostic(diagBag, typeSyntax, lookupResult.Diagnostic) 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) 745Return Binder.GetErrorSymbol(name, result.Diagnostic, result.Symbols.ToImmutable(), result.Kind) 957Binder.ReportDiagnostic(diagBag, leftNameSyntax, lookupResult.Diagnostic) 958reportedAnError = (lookupResult.Diagnostic.Severity = DiagnosticSeverity.Error) 1048Binder.ReportDiagnostic(diagBag, leftNameSyntax, lookupResult.Diagnostic) 1049reportedAnError = (lookupResult.Diagnostic.Severity = DiagnosticSeverity.Error)
Binding\Binder_XmlLiterals.vb (1)
1005result.Diagnostic,
Binding\DocumentationCommentCrefBinder.vb (1)
868Dim di As DiagnosticInfo = lookupResult.Diagnostic
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
423Dim di As DiagnosticInfo = lookupResult.Diagnostic
Binding\LookupResult.vb (7)
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) 486If TypeOf Me.Diagnostic Is AmbiguousSymbolDiagnostic Then 487ambiguousResults.AddRange(DirectCast(Me.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols) 925For Each candidate In DirectCast(Me.Diagnostic, AmbiguousSymbolDiagnostic).AmbiguousSymbols
Compilation\SemanticModel.vb (1)
1980AddSymbolsFromDiagnosticInfo(symBuilder, result.Diagnostic)
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
566result.Diagnostic, 624result.Diagnostic,
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)