36 references to WRN_IdentifierOrNumericLiteralExpected
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
408
case ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
:
1129
case ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
:
Generated\ErrorFacts.Generated.cs (1)
71
case ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
:
Parser\DirectiveParser.cs (1)
609
id = this.EatToken(SyntaxKind.NumericLiteralToken, ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, reportError: isActive);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Diagnostics\DiagnosticTest.cs (29)
1780
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25),
1794
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25),
1807
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25),
1816
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(7, 25));
1910
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "true").WithLocation(13, 25),
1913
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "default").WithLocation(14, 25),
1916
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "hidden").WithLocation(15, 25),
1919
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "disable").WithLocation(16, 25),
1922
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "checksum").WithLocation(17, 25),
1925
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "restore").WithLocation(18, 25),
1928
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "false").WithLocation(19, 25));
1992
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "@").WithLocation(8, 25),
1995
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "@").WithLocation(9, 25));
2028
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "(").WithLocation(11, 25),
2031
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "-").WithLocation(13, 25),
2069
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, "@").WithLocation(12, 25),
2072
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, @"""CS0168").WithLocation(13, 25),
2198
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2201
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2204
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2218
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2221
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2224
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2237
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2240
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2243
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","));
2249
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2252
Diagnostic(ErrorCode.
WRN_IdentifierOrNumericLiteralExpected
, ","),
2255
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