11 references to WRN_IllegalPragma
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
359case ErrorCode.WRN_IllegalPragma: 1297or ErrorCode.WRN_IllegalPragma
Generated\ErrorFacts.Generated.cs (1)
88case ErrorCode.WRN_IllegalPragma:
Parser\DirectiveParser.cs (1)
679var warning = this.EatToken(SyntaxKind.WarningKeyword, ErrorCode.WRN_IllegalPragma, reportError: isActive);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\ExperimentalAttributeTests.cs (1)
1679Diagnostic(ErrorCode.WRN_IllegalPragma, "disable").WithLocation(2, 9),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Diagnostics\DiagnosticTest.cs (3)
1476Diagnostic(ErrorCode.WRN_IllegalPragma, ""), 1493Diagnostic(ErrorCode.WRN_IllegalPragma, ""), 1522Diagnostic(ErrorCode.WRN_IllegalPragma, ""));
LexicalAndXml\DisabledRegionTests.cs (1)
95Diagnostic(ErrorCode.WRN_IllegalPragma, ""),
LexicalAndXml\PreprocessorTests.cs (2)
4096VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPragma); // CS1633 4112VerifyErrorCode(node, (int)ErrorCode.WRN_IllegalPragma);