22 references to ObsoleteDiagnosticKind
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.cs (9)
675
var
diagnosticKind = ReportDiagnosticsIfObsoleteInternal(diagnostics, leastOverriddenSymbol, node, containingMember, location);
687
case
ObsoleteDiagnosticKind
.NotObsolete:
688
case
ObsoleteDiagnosticKind
.Lazy:
691
RoslynDebug.Assert(diagnosticKind !=
ObsoleteDiagnosticKind
.Lazy, "We forced attribute binding above.");
713
internal static
ObsoleteDiagnosticKind
ReportDiagnosticsIfObsoleteInternal(DiagnosticBag diagnostics, Symbol symbol, SyntaxNodeOrToken node, Symbol? containingMember, BinderFlags location)
717
var
kind = ObsoleteAttributeHelpers.GetObsoleteDiagnosticKind(symbol, containingMember);
722
case
ObsoleteDiagnosticKind
.Diagnostic:
725
case
ObsoleteDiagnosticKind
.Lazy:
726
case
ObsoleteDiagnosticKind
.LazyPotentiallySuppressed:
Errors\LazyObsoleteDiagnosticInfo.cs (4)
45
var
kind = ObsoleteAttributeHelpers.GetObsoleteDiagnosticKind(symbol, _containingSymbol, forceComplete: true);
46
Debug.Assert(kind !=
ObsoleteDiagnosticKind
.Lazy);
47
Debug.Assert(kind !=
ObsoleteDiagnosticKind
.LazyPotentiallySuppressed);
51
return (kind ==
ObsoleteDiagnosticKind
.Diagnostic) ?
Symbols\ObsoleteAttributeHelpers.cs (9)
98
internal static
ObsoleteDiagnosticKind
GetObsoleteDiagnosticKind(Symbol symbol, Symbol containingMember, bool forceComplete = false)
112
return
ObsoleteDiagnosticKind
.Lazy;
115
return
ObsoleteDiagnosticKind
.NotObsolete;
117
return
ObsoleteDiagnosticKind
.Diagnostic;
125
return
ObsoleteDiagnosticKind
.Lazy;
130
static
ObsoleteDiagnosticKind
getDiagnosticKind(Symbol containingMember, bool forceComplete, Func<Symbol, ThreeState> getStateFromSymbol)
135
return
ObsoleteDiagnosticKind
.Diagnostic;
139
return
ObsoleteDiagnosticKind
.Suppressed;
143
return
ObsoleteDiagnosticKind
.LazyPotentiallySuppressed;