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