36 references to WRN_IdentifierOrNumericLiteralExpected
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
425case ErrorCode.WRN_IdentifierOrNumericLiteralExpected: 1203or ErrorCode.WRN_IdentifierOrNumericLiteralExpected
Generated\ErrorFacts.Generated.cs (1)
71case ErrorCode.WRN_IdentifierOrNumericLiteralExpected:
Parser\DirectiveParser.cs (1)
615id = this.EatToken(SyntaxKind.NumericLiteralToken, ErrorCode.WRN_IdentifierOrNumericLiteralExpected, reportError: isActive);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Diagnostics\DiagnosticTest.cs (29)
1822Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25), 1836Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25), 1849Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25), 1858Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(7, 25)); 1952Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "true").WithLocation(13, 25), 1955Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "default").WithLocation(14, 25), 1958Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "hidden").WithLocation(15, 25), 1961Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "disable").WithLocation(16, 25), 1964Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "checksum").WithLocation(17, 25), 1967Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "restore").WithLocation(18, 25), 1970Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "false").WithLocation(19, 25)); 2034Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").WithLocation(8, 25), 2037Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").WithLocation(9, 25)); 2070Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "(").WithLocation(11, 25), 2073Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "-").WithLocation(13, 25), 2111Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, "@").WithLocation(12, 25), 2114Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, @"""CS0168").WithLocation(13, 25), 2240Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2243Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2246Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2260Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2263Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2266Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2279Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2282Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2285Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ",")); 2291Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2294Diagnostic(ErrorCode.WRN_IdentifierOrNumericLiteralExpected, ","), 2297Diagnostic(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