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