16 references to PragmaWarningState
Microsoft.CodeAnalysis.CSharp (16)
Compilation\CSharpDiagnosticFilter.cs (4)
257
var
pragmaWarningState = tree?.GetPragmaDirectiveWarningState(id, position) ?? Syntax.
PragmaWarningState
.Default;
258
if (pragmaWarningState == Syntax.
PragmaWarningState
.Disabled)
264
if (pragmaWarningState == Syntax.
PragmaWarningState
.Enabled)
CSharpExtensions.cs (1)
425
internal static
PragmaWarningState
GetPragmaDirectiveWarningState(this SyntaxTree tree, string id, int position)
Syntax\CSharpPragmaWarningStateMap.cs (10)
37
internal class CSharpPragmaWarningStateMap : AbstractWarningStateMap<
PragmaWarningState
>
86
var accumulatedSpecificWarningState = ImmutableDictionary.Create<string,
PragmaWarningState
>();
89
var
accumulatedGeneralWarningState =
PragmaWarningState
.Default;
91
var current = new WarningStateMapEntry(0,
PragmaWarningState
.Default, accumulatedSpecificWarningState);
100
PragmaWarningState
directiveState = currentPragmaDirective.DisableOrRestoreKeyword.Kind() switch
102
SyntaxKind.DisableKeyword =>
PragmaWarningState
.Disabled,
103
SyntaxKind.RestoreKeyword =>
PragmaWarningState
.Default,
104
SyntaxKind.EnableKeyword =>
PragmaWarningState
.Enabled,
113
accumulatedSpecificWarningState = ImmutableDictionary.Create<string,
PragmaWarningState
>();
Syntax\CSharpSyntaxTree.cs (1)
702
internal
PragmaWarningState
GetPragmaDirectiveWarningState(string id, int position)