36 references to WRN_IdentifierOrNumericLiteralExpected
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
421case ErrorCode.WRN_IdentifierOrNumericLiteralExpected: 1191or ErrorCode.WRN_IdentifierOrNumericLiteralExpected
Generated\ErrorFacts.Generated.cs (1)
71case ErrorCode.WRN_IdentifierOrNumericLiteralExpected:
Parser\DirectiveParser.cs (1)
614id = this.EatToken(SyntaxKind.NumericLiteralToken, ErrorCode.WRN_IdentifierOrNumericLiteralExpected, reportError: isActive);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Diagnostics\DiagnosticTest.cs (29)
1818Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25), 1832Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25), 1845Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25), 1854Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25)); 1948Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "true").WithLocation(13, 25), 1951Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "default").WithLocation(14, 25), 1954Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "hidden").WithLocation(15, 25), 1957Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "disable").WithLocation(16, 25), 1960Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "checksum").WithLocation(17, 25), 1963Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "restore").WithLocation(18, 25), 1966Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "false").WithLocation(19, 25)); 2030Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").WithLocation(8, 25), 2033Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").WithLocation(9, 25)); 2066Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "(").WithLocation(11, 25), 2069Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "-").WithLocation(13, 25), 2107Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").WithLocation(12, 25), 2110Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(13, 25), 2236Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2239Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2242Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2256Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2259Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2262Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2275Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2278Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2281Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ",")); 2287Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2290Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2293Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","));
LexicalAndXml\DisabledRegionTests.cs (2)
97Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "\"something2\""), 98Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "-"),
LexicalAndXml\PreprocessorTests.cs (1)
3986VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.WRN_IdentifierOrNumericLiteralExpected, Status = NodeStatus.IsWarning }); // CS1072