518 references to ERR_IdentifierExpected
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Patterns.cs (3)
1084
diagnostics.Add(ErrorCode.
ERR_IdentifierExpected
, subPattern.ExpressionColon.Expression.Location);
1115
diagnostics.Add(ErrorCode.
ERR_IdentifierExpected
, subpatternSyntax.ExpressionColon.Expression.Location);
1174
diagnostics.Add(ErrorCode.
ERR_IdentifierExpected
, subpatternSyntax.ExpressionColon.Expression.Location);
Errors\ErrorFacts.cs (1)
1076
case ErrorCode.
ERR_IdentifierExpected
:
Parser\DirectiveParser.cs (1)
249
var name = this.EatToken(SyntaxKind.IdentifierToken, ErrorCode.
ERR_IdentifierExpected
);
Parser\LanguageParser.cs (10)
1854
? this.AddError(this.CreateMissingIdentifierName(), ErrorCode.
ERR_IdentifierExpected
)
3319
type = this.AddError(this.CreateMissingIdentifierName(), ErrorCode.
ERR_IdentifierExpected
);
4311
identifier = this.AddError(CreateMissingIdentifierToken(), ErrorCode.
ERR_IdentifierExpected
);
4564
identifier = this.AddError(identifier, ErrorCode.
ERR_IdentifierExpected
);
4957
missingIdentifier = this.AddError(missingIdentifier, offset, width, ErrorCode.
ERR_IdentifierExpected
);
5383
private IdentifierNameSyntax ParseIdentifierName(ErrorCode code = ErrorCode.
ERR_IdentifierExpected
)
5397
private SyntaxToken ParseIdentifierToken(ErrorCode code = ErrorCode.
ERR_IdentifierExpected
)
5509
this.AddError(CreateMissingIdentifierToken(), ErrorCode.
ERR_IdentifierExpected
));
6360
var missingName = this.AddError(this.CreateMissingIdentifierName(), ErrorCode.
ERR_IdentifierExpected
);
10926
this.AddError(this.CreateMissingIdentifierName(), ErrorCode.
ERR_IdentifierExpected
));
Parser\SyntaxParser.cs (1)
657
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)
3720
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 19),
3767
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 19),
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
1287
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "??=").WithLocation(10, 16),
CodeGen\CodeGenUsingStatementTests.cs (1)
2659
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(6, 8),
CodeGen\FixedSizeBufferTests.cs (2)
862
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "const").WithLocation(8, 18),
918
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "fixed").WithLocation(8, 18),
Emit\CompilationEmitTests.cs (1)
165
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(13, 13),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (9)
Attributes\AttributeTests.cs (1)
7518
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">"),
Diagnostics\DiagnosticSuppressorTests.cs (1)
109
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(2, 7));
Diagnostics\OperationAnalyzerTests.cs (1)
1013
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(12, 25),
Semantics\PatternMatchingTests.cs (1)
3258
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "is").WithLocation(11, 22),
Semantics\PatternMatchingTests5.cs (5)
1599
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "Property.Property").WithLocation(8, 22),
1633
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "X.Y").WithLocation(7, 23),
1636
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "Y.Z").WithLocation(7, 31)
1664
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "X.Y").WithLocation(6, 24),
1667
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "Y.Z").WithLocation(6, 32)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (9)
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 (55)
Semantics\AnonymousFunctionTests.cs (1)
1334
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(6, 42),
Semantics\BindingTests.cs (5)
678
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
2110
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
2878
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(7, 40),
2923
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(7, 32),
3460
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\IteratorTests.cs (1)
315
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 18),
Semantics\LambdaTests.cs (13)
1018
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
1072
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""),
1502
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 23),
1537
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(8, 42),
1574
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 20)
1606
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 49)
2109
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "}").WithLocation(6, 57),
2158
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(9, 55)
2204
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(9, 55)
2250
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 55)
2296
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(8, 55)
2814
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(10, 32)
6916
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(5, 45),
Semantics\LockTests.cs (1)
458
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"),
Semantics\NullableReferenceTypesTests.cs (2)
3670
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(7, 33),
151918
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(11, 55),
Semantics\ObjectAndCollectionInitializerTests.cs (1)
3169
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "3").WithLocation(9, 69),
Semantics\OverloadResolutionTests.cs (1)
8320
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\RecordStructTests.cs (1)
10002
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "0").WithLocation(7, 27),
Semantics\RecordTests.cs (14)
213
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(2, 8),
500
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 23)
535
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 23),
541
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 15),
570
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 14)
589
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 28)
617
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(2, 20),
620
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 29),
651
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(2, 20),
654
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 26),
687
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 20),
690
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(4, 18),
714
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 11),
29117
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 21),
Semantics\RefFieldTests.cs (8)
11144
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this").WithLocation(6, 30),
11236
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(2, 24),
11245
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 26),
11269
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
21427
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 34)
21450
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 33)
21476
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(3, 34)
21603
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 39)
Semantics\TopLevelStatementsTests.cs (1)
6006
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(16, 6),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (28)
Compilation\SemanticModelAPITests.cs (2)
396
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
423
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 10));
Compilation\UsedAssembliesTests.cs (2)
4780
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 15)
4797
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)
165
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 (9)
1120
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(5, 11),
1129
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(5, 14),
1141
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(5, 18),
1171
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(5, 11),
1180
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(5, 14),
1195
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(5, 18),
15466
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "2").WithLocation(4, 34),
21401
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\u0060").WithLocation(3, 7),
21428
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\u007c").WithLocation(3, 7),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (391)
Diagnostics\DiagnosticTest.cs (9)
1889
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "true").WithLocation(2, 9),
1892
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "default").WithLocation(3, 9),
1895
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "hidden").WithLocation(4, 9),
1898
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "disable").WithLocation(5, 9),
1901
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "checksum").WithLocation(6, 9),
1904
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "restore").WithLocation(7, 9),
1907
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "false").WithLocation(8, 9),
1986
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "@").WithLocation(2, 9),
1989
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "@").WithLocation(3, 9),
LexicalAndXml\DisabledRegionTests.cs (2)
152
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""));
186
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ""));
LexicalAndXml\LexicalErrorTests.cs (1)
346
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, @"\"),
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)
2000
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 55),
2028
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),
2240
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 6),
2295
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 10),
Parsing\AsyncStreamsParsingTests.cs (1)
192
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(6, 21),
Parsing\DeclarationParsingTests.cs (19)
6268
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 31),
7582
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 18),
7588
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "!").WithLocation(1, 19),
7655
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "]").WithLocation(1, 18),
7661
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 19));
8501
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 13));
8652
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 16),
8680
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 16),
8744
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(2, 22));
8791
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 13));
8839
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(2, 22));
9533
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(3, 3)
9945
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(3, 3)
10058
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(3, 9),
10207
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 8),
10389
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 6),
10506
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 2),
10607
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 4),
10663
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, @struct ? 7 : 6)
Parsing\DeclarationScopeParsingTests.cs (34)
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),
806
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(1, 19),
862
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(1, 19),
1314
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "params").WithLocation(1, 15),
1752
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(5, 20),
1758
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(6, 29),
3398
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(2, 16),
3401
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 19),
3454
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(2, 25),
3457
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 28),
5612
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(2, 14),
5615
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 17),
8752
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(2, 17),
8887
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(2, 26),
8936
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "readonly").WithLocation(2, 17),
11454
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
11612
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 17),
11624
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 24),
11727
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 21),
11739
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 28),
12233
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 23)
14005
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(4, 18),
14075
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(4, 18),
14149
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(4, 18),
14259
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(4, 18),
14831
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(4, 18),
14899
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(4, 18),
14966
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(2, 15),
15013
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(2, 15),
15060
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "ref").WithLocation(2, 15),
Parsing\ExpressionParsingTests.cs (5)
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));
6529
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(7, 31),
6566
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(7, 31),
Parsing\FileModifierParsingTests.cs (16)
2032
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2044
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2085
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2097
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 5),
2208
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2220
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2273
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2285
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2339
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2351
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2402
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2414
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "namespace").WithLocation(1, 6),
2486
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 500007)
2491
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(1, 500007)
3481
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(3, 17),
3493
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(3, 17),
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)
234
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 11));
Parsing\LambdaParameterParsingTests.cs (15)
531
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 46),
1240
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "!").WithLocation(1, 20)
1969
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 36));
2285
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 12));
3040
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 21),
3098
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 6));
3138
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 14));
5189
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 8));
5320
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 5));
5354
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 5),
5357
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 10));
5654
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 1));
5679
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 3),
5688
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 9),
5730
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 3),
Parsing\LambdaReturnTypeParsingTests.cs (3)
4035
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 8),
4038
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ",").WithLocation(1, 15),
4041
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 21));
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),
2480
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2492
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22),
2502
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2511
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22),
2521
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2530
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22),
2541
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2547
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22));
2556
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2562
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22));
2571
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "static").WithLocation(5, 14),
2577
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(5, 22));
Parsing\MemberDeclarationParsingTests.cs (31)
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),
653
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">=").WithLocation(1, 14),
656
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=>").WithLocation(1, 27),
665
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 31),
969
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 26)
1016
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ">").WithLocation(1, 27)
4127
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".operato").WithLocation(1, 14)
4190
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 16)
5973
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".operato").WithLocation(1, 7)
6035
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 9)
6097
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".operato").WithLocation(1, 9)
6165
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "operator").WithLocation(1, 5)
6235
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "int").WithLocation(1, 6)
7828
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".operato").WithLocation(1, 12)
7890
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 14)
8063
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21)
8117
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21)
8176
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21)
8287
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21),
8456
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(1, 26)
8502
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 21),
8560
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".operato").WithLocation(1, 14)
8631
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 9)
8721
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 4)
8779
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 8)
8837
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 11)
Parsing\NameParsingTests.cs (2)
67
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, name.Errors()[0].Code);
82
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
, ">"));
2876
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 43),
2940
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 43),
2978
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(4, 43),
3027
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "long"),
3033
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
3920
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 17),
4559
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
4690
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(3, 49),
4752
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(3, 49),
4784
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(3, 49),
5302
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"),
5305
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")"));
5531
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "in"),
5573
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 (61)
82
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
98
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
114
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
131
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
147
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
162
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
177
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
450
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
481
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
962
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1021
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1080
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1157
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1186
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1201
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1231
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1266
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1283
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1312
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1327
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1356
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1411
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1469
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1522
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1558
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1596
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
1649
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1685
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
1723
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1763
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
1905
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
1945
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2014
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2050
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2109
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2151
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2188
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2205
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2253
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2299
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2317
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2335
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2386
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2435
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2465
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2495
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2886
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
2910
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2934
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[1].Code);
2979
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
3963
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
6266
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
6281
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
6348
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code);
6544
Assert.Equal((int)ErrorCode.
ERR_IdentifierExpected
, file.Errors()[0].Code); //expecting item name - found "select" keyword
6862
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "::").WithLocation(1, 4),
6865
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 6),
6991
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<"),
7022
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<"),
7025
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "<"),
7081
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this"),
Parsing\PatternParsingTests.cs (4)
2166
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 41),
2177
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 20),
2746
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 43),
2768
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ":").WithLocation(1, 22),
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),
2516
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2520
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2526
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2530
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14));
2588
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
2603
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 8),
2789
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(1, 8),
2807
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(1, 8),
2911
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "interface").WithLocation(1, 8),
3795
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 14),
3843
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(1, 14),
4024
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 6),
Parsing\RefReadonlyTests.cs (4)
225
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(8, 54));
252
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(8, 45));
319
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "in").WithLocation(8, 32),
363
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(10, 25),
Parsing\ScriptParsingTests.cs (20)
1713
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "=").WithLocation(1, 13),
2286
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(15, 11));
2984
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 7),
3026
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 11),
3302
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 14),
3577
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 21),
3757
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 13),
4010
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 13),
4640
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 7),
4950
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
6870
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 12),
8121
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 11),
8264
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 13),
8414
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 8),
8598
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 8),
8648
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 8),
8697
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 9),
8746
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 14),
9110
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "in").WithLocation(1, 14),
9186
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)
1991
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(6, 19),
2075
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "{").WithLocation(6, 19),
6621
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this").WithLocation(6, 16),
6741
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "this").WithLocation(6, 16),
Parsing\StatementParsingTests.cs (1)
4184
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "*").WithLocation(1, 7),
Parsing\TopLevelStatementsParsingTests.cs (29)
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)
1964
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 12),
2008
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 10)
2055
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 15)
2234
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ".").WithLocation(1, 10),
2303
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 11),
2372
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 10),
2434
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "'").WithLocation(1, 20),
2582
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 13)
2622
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 18)
2717
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 3),
2758
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 3),
2827
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 3),
3059
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "struct").WithLocation(2, 8),
3199
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(2, 8),
3217
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "class").WithLocation(2, 8),
3370
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(3, 2),
3508
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ")").WithLocation(2, 15),
3517
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(2, 17),
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),
413
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 34));
473
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 17));
512
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(1, 18));
552
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "(").WithLocation(1, 14),
3473
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 17));
3522
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, ";").WithLocation(2, 21));
Syntax\SyntaxFactoryTests.cs (2)
630
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 16),
641
Diagnostic(ErrorCode.
ERR_IdentifierExpected
, "").WithLocation(1, 16),