39 references to PragmaWarningDirectiveTrivia
Microsoft.CodeAnalysis.CSharp (3)
Syntax\CSharpPragmaWarningStateMap.cs (1)
62
if (!d.IsActive || d.Kind() != SyntaxKind.
PragmaWarningDirectiveTrivia
)
Syntax\DirectiveTriviaSyntax.cs (1)
49
case SyntaxKind.
PragmaWarningDirectiveTrivia
:
Syntax\SyntaxKindFacts.cs (1)
288
case SyntaxKind.
PragmaWarningDirectiveTrivia
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
67
var lastPragma = root.GetFirstToken().LeadingTrivia.LastOrDefault(t => t.Kind() is SyntaxKind.
PragmaWarningDirectiveTrivia
);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
26
=> root.ContainsDirective(SyntaxKind.
PragmaWarningDirectiveTrivia
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
203
if (trivia.IsKind(SyntaxKind.
PragmaWarningDirectiveTrivia
))
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
224
if (trivia.Kind() == SyntaxKind.
PragmaWarningDirectiveTrivia
)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
67
var lastPragma = root.GetFirstToken().LeadingTrivia.LastOrDefault(t => t.Kind() is SyntaxKind.
PragmaWarningDirectiveTrivia
);
src\Analyzers\CSharp\Analyzers\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
26
=> root.ContainsDirective(SyntaxKind.
PragmaWarningDirectiveTrivia
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (27)
LexicalAndXml\PreprocessorTests.cs (27)
3675
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3692
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3707
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3723
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3739
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3756
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3772
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3788
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3804
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3820
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3836
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3852
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3883
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3908
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3924
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3940
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3956
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3972
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
3989
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4006
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4022
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4038
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4053
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4068
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4083
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4099
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
4115
PragmaKind = SyntaxKind.
PragmaWarningDirectiveTrivia
,
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Classification\Worker.cs (1)
248
case SyntaxKind.
PragmaWarningDirectiveTrivia
:
Classification\Worker_Preprocesser.cs (1)
63
case SyntaxKind.
PragmaWarningDirectiveTrivia
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
203
if (trivia.IsKind(SyntaxKind.
PragmaWarningDirectiveTrivia
))