756 references to ERR_IdentifierExpected
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Patterns.cs (3)
1105
diagnostics.Add(ErrorCode.
ERR_IdentifierExpected
, subPattern.ExpressionColon.Expression.Location);
1136
diagnostics.Add(ErrorCode.
ERR_IdentifierExpected
, subpatternSyntax.ExpressionColon.Expression.Location);
1195
diagnostics.Add(ErrorCode.
ERR_IdentifierExpected
, subpatternSyntax.ExpressionColon.Expression.Location);
Errors\ErrorFacts.cs (1)
1140
or ErrorCode.
ERR_IdentifierExpected
Parser\DirectiveParser.cs (1)
254
var name = this.EatToken(SyntaxKind.IdentifierToken, ErrorCode.
ERR_IdentifierExpected
);
Parser\LanguageParser.cs (10)
2180
? this.AddError(this.CreateMissingIdentifierName(), ErrorCode.
ERR_IdentifierExpected
)
3116
identifierOrThisOpt ??= this.AddError(CreateMissingIdentifierToken(), ErrorCode.
ERR_IdentifierExpected
);
3786
type = this.AddError(this.CreateMissingIdentifierName(), ErrorCode.
ERR_IdentifierExpected
);
4910
identifier = allowOptionalIdentifier ? null : this.AddError(CreateMissingIdentifierToken(), ErrorCode.
ERR_IdentifierExpected
);
5080
identifier = this.AddError(identifier, ErrorCode.
ERR_IdentifierExpected
);
5491
missingIdentifier = this.AddError(missingIdentifier, offset, width, ErrorCode.
ERR_IdentifierExpected
);
5916
private IdentifierNameSyntax ParseIdentifierName(ErrorCode code = ErrorCode.
ERR_IdentifierExpected
)
5930
private SyntaxToken ParseIdentifierToken(ErrorCode code = ErrorCode.
ERR_IdentifierExpected
)
6056
this.AddError(CreateMissingIdentifierToken(), ErrorCode.
ERR_IdentifierExpected
));
12010
this.AddError(this.CreateMissingIdentifierName(), ErrorCode.
ERR_IdentifierExpected
));
Parser\SyntaxParser.cs (1)
711
return ErrorCode.
ERR_IdentifierExpected
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenDeconstructTests.cs (3)
4964
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(4, 11),
4967
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 14),
7595
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(6, 16)
CodeGen\CodeGenExprLambdaTests.cs (2)
3448
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 19),
3495
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 19),
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
1287
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "??=").WithLocation(10, 16),
CodeGen\CodeGenUsingStatementTests.cs (1)
2660
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(6, 8),
CodeGen\FixedSizeBufferTests.cs (2)
874
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "const").WithLocation(8, 18),
930
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "fixed").WithLocation(8, 18),
Emit\CompilationEmitTests.cs (1)
166
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(13, 13),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (28)
Attributes\AttributeTests.cs (1)
7816
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">"),
Attributes\AttributeTests_WellKnownAttributes.cs (1)
1897
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(6, 58)
Diagnostics\DiagnosticSuppressorTests.cs (1)
197
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(2, 7));
Diagnostics\OperationAnalyzerTests.cs (1)
1013
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(12, 25),
RefReadonlyParameterTests.cs (3)
2154
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(3, 37),
2187
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(3, 42),
2214
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(3, 33),
Semantics\ExtensionTests.cs (1)
30052
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(5, 13),
Semantics\PatternMatchingTests.cs (1)
3258
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "is").WithLocation(11, 22),
Semantics\PatternMatchingTests5.cs (5)
1600
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "Property.Property").WithLocation(8, 22),
1634
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "X.Y").WithLocation(7, 23),
1637
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "Y.Z").WithLocation(7, 31)
1665
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "X.Y").WithLocation(6, 24),
1668
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "Y.Z").WithLocation(6, 32)
Semantics\RecordTests.cs (14)
213
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(2, 8),
490
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 23)
525
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 23),
531
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 15),
560
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 14)
579
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 28)
607
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(2, 20),
613
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 29)
641
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(2, 20),
647
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 26)
677
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 20),
683
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 18)
704
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 11),
29243
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 21),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (10)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (1)
562
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "?").WithLocation(6, 18)
IOperation\IOperationTests_IDynamicMemberReferenceExpression.cs (2)
73
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(11, 44)
145
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(9, 25)
IOperation\IOperationTests_InvalidStatement.cs (1)
51
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(8, 26),
IOperation\IOperationTests_IVariableDeclaration.cs (6)
268
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(6, 25),
1745
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(10, 65),
2119
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 64),
2731
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(6, 43)
3141
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(6, 32),
3733
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(7, 13)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
Semantics\AnonymousFunctionTests.cs (1)
1334
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(6, 42),
Semantics\BindingTests.cs (5)
711
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
2143
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
2911
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(7, 40),
2956
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(7, 32),
3720
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(11, 15),
Semantics\DeconstructionTests.cs (4)
4011
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(6, 40),
4040
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(6, 19),
4043
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(6, 21),
4046
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(6, 24),
Semantics\InterpolationTests.cs (3)
19463
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 21),
19525
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 6),
19583
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(5, 10),
Semantics\IteratorTests.cs (1)
547
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 18),
Semantics\LambdaTests.cs (13)
1021
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
1075
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
1505
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 23),
1540
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 42),
1577
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 20)
1609
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 49)
2112
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "}").WithLocation(6, 57),
2161
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(9, 55)
2207
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(9, 55)
2253
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 55)
2299
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 55)
2817
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(10, 32)
6942
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(5, 45),
Semantics\LockTests.cs (1)
455
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(6, 32),
Semantics\NullableReferenceTypesTests.cs (2)
3689
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(7, 33),
161679
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(15, 20),
Semantics\ObjectAndCollectionInitializerTests.cs (1)
3188
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "3").WithLocation(9, 69),
Semantics\OverloadResolutionTests.cs (1)
8312
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(16, 35),
Semantics\QueryTests.cs (1)
1897
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "null").WithLocation(8, 66),
Semantics\ReadOnlyStructsTests.cs (1)
2148
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(6, 24),
Semantics\RefFieldTests.cs (10)
11397
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(8, 33),
11660
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this").WithLocation(6, 30),
11752
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 24),
11761
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 26),
11785
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
22001
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(3, 27));
22023
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 34)
22046
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 33)
22072
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 34)
22199
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 39)
Semantics\SimpleLambdaParametersWithModifiersTests.cs (3)
471
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(7, 19));
503
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(7, 30));
536
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(5, 29));
Semantics\TopLevelStatementsTests.cs (1)
6108
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(16, 6),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (47)
Compilation\SemanticModelAPITests.cs (2)
396
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
423
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 10));
Compilation\UsedAssembliesTests.cs (2)
4875
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 15)
4892
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 24)
DocumentationComments\CrefTests.cs (1)
3502
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
Symbols\FunctionPointerTypeSymbolTests.cs (1)
318
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(6, 47),
Symbols\RequiredMembersTests.cs (1)
149
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(4, 30),
Symbols\Source\EnumTests.cs (2)
205
DiagnosticsUtils.VerifyErrorCodesNoLineColumn(comp.GetDiagnostics(), new ErrorDescription { Code = (int)ErrorCode.
ERR_IdentifierExpected
});
492
new ErrorDescription { Code = (int)ErrorCode.
ERR_IdentifierExpected
},
Symbols\Source\EventTests.cs (2)
2172
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
2189
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 41),
Symbols\Source\FieldTests.cs (4)
282
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "delegate").WithLocation(4, 11),
297
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(5, 46),
347
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "delegate").WithLocation(4, 11),
365
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(5, 46),
Symbols\Source\RecordTests.cs (4)
1218
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(2, 6),
1227
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(3, 6),
1245
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(4, 6),
1251
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(5, 6),
Symbols\SymbolErrorTests.cs (8)
1121
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(5, 11),
1130
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(5, 14),
1142
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(5, 18),
1172
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(5, 11),
1181
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(5, 14),
1196
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(5, 18),
21570
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\u0060").WithLocation(3, 7),
21597
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\u007c").WithLocation(3, 7),
Symbols\TypeTests.cs (20)
2432
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 13),
2438
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(7, 13),
2514
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 21),
2520
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(5, 18),
2526
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(6, 19),
2535
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(7, 22),
2544
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(8, 18),
2556
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(10, 19),
2565
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(11, 25),
2568
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(12, 26),
2577
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(14, 35),
2580
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(16, 19),
2583
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(18, 18),
2586
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(19, 19),
2589
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(20, 22),
2592
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(21, 18),
2604
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(23, 19),
2607
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(24, 25),
2610
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(25, 26),
2613
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(27, 35)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (597)
Diagnostics\DiagnosticTest.cs (9)
1926
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "true").WithLocation(2, 9),
1929
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "default").WithLocation(3, 9),
1932
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "hidden").WithLocation(4, 9),
1935
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "disable").WithLocation(5, 9),
1938
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "checksum").WithLocation(6, 9),
1941
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "restore").WithLocation(7, 9),
1944
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "false").WithLocation(8, 9),
2023
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "@").WithLocation(2, 9),
2026
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "@").WithLocation(3, 9),
IncrementalParsing\IncrementalParsingTests.cs (5)
657
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(15, 18),
660
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(15, 19),
921
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 19));
937
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 19));
1104
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 19));
LexicalAndXml\DisabledRegionTests.cs (2)
152
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""));
186
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""));
LexicalAndXml\LexicalErrorTests.cs (11)
144
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 3),
165
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\").WithLocation(3, 18),
177
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 20));
204
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 21));
222
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\").WithLocation(3, 18),
234
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 21));
725
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\"),
788
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "\ud86d").WithLocation(6, 13),
817
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "\udce7").WithLocation(6, 13),
846
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "𫓧").WithLocation(6, 13),
876
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\").WithLocation(6, 13),
LexicalAndXml\PreprocessorTests.cs (12)
2519
VerifyErrorCode(node, (int)ErrorCode.
ERR_IdentifierExpected
); // CS1001
2532
VerifyErrorCode(node, (int)ErrorCode.
ERR_IdentifierExpected
); // CS1001
2797
VerifyErrorCode(node, (int)ErrorCode.
ERR_IdentifierExpected
);
2808
VerifyErrorCode(node, (int)ErrorCode.
ERR_IdentifierExpected
);
2843
VerifyErrorCode(node, (int)ErrorCode.
ERR_IdentifierExpected
);
2927
(int)ErrorCode.
ERR_IdentifierExpected
,
2928
(int)ErrorCode.
ERR_IdentifierExpected
,
2929
(int)ErrorCode.
ERR_IdentifierExpected
,
2930
(int)ErrorCode.
ERR_IdentifierExpected
,
2931
(int)ErrorCode.
ERR_IdentifierExpected
,
2932
(int)ErrorCode.
ERR_IdentifierExpected
,
2933
(int)ErrorCode.
ERR_IdentifierExpected
);
Parsing\AnonymousFunctionParsingTests.cs (2)
1991
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 55),
2019
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 55),
Parsing\AsyncParsingTests.cs (4)
1435
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 20),
1478
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 24),
2220
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 6),
2275
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 10),
Parsing\AsyncStreamsParsingTests.cs (1)
192
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(6, 21),
Parsing\CollectionExpressionParsingTests.cs (10)
255
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 11),
520
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 11),
1676
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 6));
1762
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 6));
7373
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 6));
12071
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21));
17179
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 7));
17412
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 7));
17661
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 7));
17904
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 7));
Parsing\DeclarationParsingTests.cs (46)
2984
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(3, 27));
6322
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 31),
7624
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 18),
7630
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "!").WithLocation(1, 19),
7690
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 18),
7696
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 19));
8460
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 13));
8611
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 16),
8639
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 16),
8703
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(2, 22));
8750
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 13));
8798
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(2, 22));
9492
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(3, 3)
9904
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(3, 3)
10017
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(3, 9),
10166
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 8),
10348
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 6),
10465
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 2),
10566
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 4),
10622
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, @struct ? 7 : 6)
12984
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
12987
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 11));
13032
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13035
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 11),
13038
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 12));
13088
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13091
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 13));
13137
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13140
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 14));
13186
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10));
13231
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13234
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "where").WithLocation(1, 12),
13295
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10));
13340
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13343
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 12),
13391
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13394
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "partial").WithLocation(1, 12),
13456
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13511
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(6, 21),
13642
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 11),
13645
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 13),
13701
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 11),
13704
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 12));
13754
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "public").WithLocation(1, 10),
13804
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 10),
13807
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "public").WithLocation(1, 12),
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (96)
43
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 20),
46
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(9, 18)
169
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 14),
175
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(6, 18),
178
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(7, 18)
336
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 14),
339
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(7, 18)
550
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 22),
553
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(7, 18),
556
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(12, 15),
559
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(14, 18)
815
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 22),
818
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(8, 18),
821
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(13, 22),
824
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(20, 18)
1267
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 17),
1270
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(5, 22),
1276
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(6, 22)
1391
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 18),
1397
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(6, 22),
1400
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(7, 22)
1567
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 18),
1570
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(7, 22)
1774
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 12)
1867
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 13)
1975
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 21),
1978
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(9, 19)
2101
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 15),
2107
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(6, 19),
2110
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(7, 19)
2268
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 15),
2271
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(7, 19)
2479
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 15),
2482
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(8, 19)
2703
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(1, 15),
2706
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(8, 19)
2940
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 29),
2943
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(7, 33),
2946
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(8, 18),
2949
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(13, 21),
2952
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(15, 18)
3200
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21),
3203
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(8, 33),
3206
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(9, 18),
3209
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(14, 19),
3212
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(16, 23),
3215
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(17, 16),
3218
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(18, 16),
3221
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(19, 15)
3596
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 30),
3599
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(7, 34),
3602
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(8, 19),
3605
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(13, 22),
3608
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(15, 19)
3856
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 22),
3859
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(8, 34),
3862
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(9, 19),
3865
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(14, 20),
3868
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(16, 24),
3871
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<").WithLocation(17, 17),
3874
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(18, 17),
3877
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(19, 16)
4226
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
4238
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 10),
4349
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 10),
4456
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
4526
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
4596
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
4682
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
4785
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
4794
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 8),
4894
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5003
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5009
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 9),
5080
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5176
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5292
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5387
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5550
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5562
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 11),
5646
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5655
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 10),
5739
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5834
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5846
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 13),
5930
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
5942
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 11),
6026
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 15),
6366
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 22),
6461
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 24),
6615
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 17),
6683
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 17),
6749
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 11),
6755
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, column),
6910
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 11),
6919
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 9),
Parsing\DeclarationScopeParsingTests.cs (33)
145
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 19),
151
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 36),
157
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 54),
604
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 58)
749
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(1, 15),
843
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(1, 19),
1307
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "params").WithLocation(1, 15),
1745
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(5, 20),
1751
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(6, 29),
3391
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(2, 16),
3394
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 19),
3447
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(2, 25),
3450
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 28),
5344
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(2, 14),
5347
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 17),
8451
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(2, 17),
8586
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(2, 26),
8635
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(2, 17),
11132
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
11290
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 17),
11302
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 24),
11405
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 21),
11417
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 28),
11911
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 23)
13606
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(4, 18),
13676
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(4, 18),
13750
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(4, 18),
13860
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(4, 18),
14432
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(4, 18),
14500
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(4, 18),
14567
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(2, 15),
14614
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(2, 15),
14661
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(2, 15),
Parsing\ExpressionParsingTests.cs (8)
3157
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(6, 14),
3740
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(6, 14),
5850
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".2").WithLocation(1, 4));
6009
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 6));
6560
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(7, 31),
6597
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(7, 31),
6994
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 21),
7436
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 27));
Parsing\ExtensionsParsingTests.cs (5)
2151
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 26));
2205
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 25));
2259
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(3, 20),
2333
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(3, 20),
4261
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(3, 30),
Parsing\FileModifierParsingTests.cs (16)
2027
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2039
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2080
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2092
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2203
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2215
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2268
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2280
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2334
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2346
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2397
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2409
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2481
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 500007)
2486
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 500007)
3476
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(3, 17),
3488
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(3, 17),
Parsing\ForStatementParsingTest.cs (4)
668
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 25));
737
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 29));
814
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 28));
3948
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 11),
Parsing\FunctionPointerTests.cs (23)
386
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 21)
879
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 12));
923
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 15));
965
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 19));
1010
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 20));
1060
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 25));
1114
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 28));
1219
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 11));
1345
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 12));
1427
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 22),
1436
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 22)
1494
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 27)
1546
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 27),
1555
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 27),
1659
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 21),
3131
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "void").WithLocation(1, 10),
3175
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "void").WithLocation(1, 28),
3656
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
3700
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 27),
3760
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 37));
3820
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 37));
3879
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(5, 21),
3966
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 14),
Parsing\LambdaAttributeParsingTests.cs (1)
2250
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 20));
Parsing\LambdaParameterParsingTests.cs (19)
526
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 46),
1106
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 39),
1181
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 39),
2052
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 36));
2368
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 12));
3123
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 21),
3181
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 6));
3221
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 14));
5267
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 8));
5388
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 5));
5422
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 5),
5425
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 10));
5477
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 27),
5611
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 8));
5669
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 11));
5827
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 1));
5852
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 3),
5861
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 9),
5903
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 3),
Parsing\LocalFunctionParsingTests.cs (15)
62
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(10, 15),
77
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(14, 16),
1259
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "virtual").WithLocation(3, 22),
2357
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2369
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22),
2379
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2388
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22),
2398
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2407
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22),
2418
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2424
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22));
2433
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2439
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22));
2448
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2454
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22));
Parsing\MemberDeclarationParsingTests.cs (71)
487
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 14),
490
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 27),
499
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 31),
570
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 15),
573
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 27),
582
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 31),
935
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 26)
982
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 27)
1229
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 15)
1288
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 19));
1319
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 24)
4124
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 14));
4186
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 16)
5969
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 7));
6030
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 9)
6092
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 9));
6159
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "operator").WithLocation(1, 5)
6229
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 6)
7822
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 12));
7883
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 14)
8056
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21)
8110
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21)
8169
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21)
8280
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21),
8449
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 26)
8495
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21),
8553
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 14));
8623
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 9)
8713
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 4)
8771
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 8)
8829
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 11)
12652
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">=").WithLocation(1, 14),
12658
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 22),
12667
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 26),
12737
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 15),
12743
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 22),
12752
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 26),
12822
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 14),
12828
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 23),
12837
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 27),
12907
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 14),
12913
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 23),
12922
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 27),
12992
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 14),
12998
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 24),
13007
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 28),
13077
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 14),
13083
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 25),
13092
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 29),
13162
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">=").WithLocation(1, 15),
13168
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 23),
13177
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 27),
13247
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 15),
13253
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 24),
13262
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 28),
13332
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 16),
13338
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 23),
13347
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 27),
13426
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 14 + op.Length - 1),
13432
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 21 + op.Length - 1),
13441
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 25 + op.Length - 1),
16464
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "string").WithLocation(1, 67),
16473
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 87),
16482
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 95),
16595
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "string").WithLocation(1, 67),
16604
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 74),
16607
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 88),
16616
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 96),
20783
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(4, 27),
20786
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(6, 27));
20920
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(4, 18));
Parsing\NameParsingTests.cs (2)
65
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, name.Errors()[0].Code);
80
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, name.Errors()[1].Code);
Parsing\NullableParsingTests.cs (1)
196
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "?").WithLocation(1, 9));
Parsing\ParserErrorMessageTests.cs (28)
641
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(2, 20),
1378
ParseAndValidate(test, Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""));
1389
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
1403
ParseAndValidate(test, Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
1426
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "1"),
1454
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ","));
1487
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
1507
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(7, 13),
2089
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\u0"),
2092
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\u00"),
2095
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\u000"),
2436
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 32),
2834
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">"),
2837
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">"));
2861
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(4, 41),
2891
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(4, 41),
2908
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(4, 41),
2948
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "long"),
2954
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
3841
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 17),
4480
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
4596
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(3, 41));
4624
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(3, 41));
4632
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(3, 41));
5154
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"),
5157
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
5383
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "in"),
5425
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ","),
Parsing\ParserRegressionTests.cs (4)
356
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "::").WithLocation(6, 10));
490
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 6));
580
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 6));
670
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "::").WithLocation(5, 13));
Parsing\ParsingErrorRecoveryTests.cs (64)
244
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
260
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
276
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
293
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
309
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
324
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
339
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
612
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
643
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1124
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1183
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1242
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1319
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1348
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1363
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1393
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1428
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1445
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1474
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1489
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1518
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1573
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1631
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1684
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1720
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1758
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
1811
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1847
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
1885
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1925
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2067
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2107
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2176
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2212
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2271
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2313
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2350
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2367
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2415
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2461
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2479
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2497
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2548
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2597
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2627
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2657
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
3048
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
3072
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
3096
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
3141
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
4125
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
7070
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
7085
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
7152
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
7334
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code); //expecting item name - found "select" keyword
7652
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "::").WithLocation(1, 4),
7655
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 6),
7781
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<"),
7812
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<"),
7815
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<"),
7871
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this"),
8696
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 2),
8699
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 3),
8717
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 10),
Parsing\PatternParsingTests_ListPatterns.cs (3)
873
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 13),
876
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 14));
978
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 9),
Parsing\RecordParsing.cs (13)
844
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 30),
2666
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2670
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2676
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2680
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2738
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
2753
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
2939
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(1, 8),
2957
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(1, 8),
3061
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "interface").WithLocation(1, 8),
3945
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 14),
3993
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 14),
4174
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 6),
Parsing\RefReadonlyTests.cs (9)
145
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(11, 74),
219
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(8, 54));
246
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(8, 45));
313
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "in").WithLocation(8, 32),
357
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(10, 25),
938
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(1, 19),
1000
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(1, 24),
1062
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(1, 15),
1123
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(1, 15),
Parsing\ScriptParsingTests.cs (22)
906
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 36),
915
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 38),
1920
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 13),
2800
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(15, 11));
3498
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 7),
3540
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 11),
3816
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 14),
4091
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 21),
4271
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 13),
4524
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 13),
5154
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 7),
5464
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
7384
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 12),
8635
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 11),
8778
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 13),
8928
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 8),
9112
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 8),
9162
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 8),
9211
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 9),
9260
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 14),
9624
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "in").WithLocation(1, 14),
9700
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 9));
Parsing\SeparatedSyntaxListParsingTests.cs (6)
348
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(12, 9),
351
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(12, 10));
727
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(12, 9),
730
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(12, 10),
756
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(12, 9),
759
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(12, 10));
Parsing\SingleLineDeclarationParsingTests.cs (3)
35
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
96
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 13),
223
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 13));
Parsing\StatementAttributeParsingTests.cs (4)
1992
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(6, 19),
2076
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(6, 19),
6633
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this").WithLocation(6, 16),
6753
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this").WithLocation(6, 16),
Parsing\StatementParsingTests.cs (2)
5417
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(3, 12),
5426
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(5, 12),
Parsing\TopLevelStatementsParsingTests.cs (28)
101
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(2, 5),
119
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(6, 10),
805
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 17),
895
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 32),
977
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(2, 20),
997
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(2, 20),
1158
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 4),
1471
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 38),
1716
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 2),
1799
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
1923
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 15)
1967
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 12),
2011
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 10)
2058
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 15)
2237
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 10),
2306
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 11),
2375
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
2437
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "'").WithLocation(1, 20),
2585
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 13)
2625
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 18)
2720
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 3),
2761
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 3),
2830
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 3),
3062
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(2, 8),
3202
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(2, 8),
3220
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(2, 8),
3373
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 2),
3511
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 15),
Parsing\UsingDirectiveParsingTests.cs (13)
71
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 14));
110
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 27));
166
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 10));
201
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 11));
240
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 11),
243
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 13),
249
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 16),
403
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 34));
463
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 17));
502
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 18));
542
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14),
3423
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 17));
3472
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 21));
Syntax\SyntaxFactoryTests.cs (2)
644
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 16),
655
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 16),