36 references to WRN_IdentifierOrNumericLiteralExpected
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
420
case ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
:
1193
or ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
Generated\ErrorFacts.Generated.cs (1)
71
case ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
:
Parser\DirectiveParser.cs (1)
615
id = this.EatToken(SyntaxKind.NumericLiteralToken, ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, reportError: isActive);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Diagnostics\DiagnosticTest.cs (29)
1817
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25),
1831
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25),
1844
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25),
1853
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25));
1947
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "true").WithLocation(13, 25),
1950
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "default").WithLocation(14, 25),
1953
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "hidden").WithLocation(15, 25),
1956
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "disable").WithLocation(16, 25),
1959
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "checksum").WithLocation(17, 25),
1962
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "restore").WithLocation(18, 25),
1965
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "false").WithLocation(19, 25));
2029
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "@").WithLocation(8, 25),
2032
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "@").WithLocation(9, 25));
2065
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "(").WithLocation(11, 25),
2068
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "-").WithLocation(13, 25),
2106
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "@").WithLocation(12, 25),
2109
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(13, 25),
2235
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2238
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2241
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2255
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2258
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2261
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2274
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2277
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2280
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","));
2286
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2289
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2292
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","));
LexicalAndXml\DisabledRegionTests.cs (2)
97
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "\"something2\""),
98
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "-"),
LexicalAndXml\PreprocessorTests.cs (1)
3986
VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, Status = NodeStatus.IsWarning }); // CS1072