109 references to ERR_EOFExpected
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
1095
case ErrorCode.
ERR_EOFExpected
:
Parser\LanguageParser.cs (2)
460
IsScript ? ErrorCode.ERR_GlobalDefinitionOrStatementExpected : ErrorCode.
ERR_EOFExpected
);
567
IsScript ? ErrorCode.ERR_GlobalDefinitionOrStatementExpected : ErrorCode.
ERR_EOFExpected
);
Syntax\SyntaxFactory.cs (1)
2393
case ErrorCode.
ERR_EOFExpected
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenExprLambdaTests.cs (6)
3735
Diagnostic(ErrorCode.
ERR_EOFExpected
, "=>").WithLocation(2, 76),
3738
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 81),
3747
Diagnostic(ErrorCode.
ERR_EOFExpected
, "{").WithLocation(2, 95),
3782
Diagnostic(ErrorCode.
ERR_EOFExpected
, "=>").WithLocation(2, 76),
3785
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 81),
3794
Diagnostic(ErrorCode.
ERR_EOFExpected
, "{").WithLocation(2, 95),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
IOperation\IOperationTests_IArgument.cs (1)
2762
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(16, 1),
IOperation\IOperationTests_IObjectCreationExpression.cs (2)
5234
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(10, 5),
5237
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(11, 1),
IOperation\IOperationTests_ISwitchOperation.cs (1)
1632
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(10, 1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\ObjectAndCollectionInitializerTests.cs (2)
2918
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(8, 1),
3181
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(11, 1)
Semantics\OverloadResolutionTests.cs (1)
7591
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(10, 1),
Semantics\RecordStructTests.cs (3)
7056
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(14, 1)
9751
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(13, 1)
10023
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(9, 1)
Semantics\RecordTests.cs (1)
8862
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(11, 1)
Semantics\RefFieldTests.cs (1)
21404
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1)
Semantics\SemanticErrorTests.cs (4)
2778
new ErrorDescription { Code = (int)ErrorCode.
ERR_EOFExpected
, Line = 4, Column = 5 },
2780
new ErrorDescription { Code = (int)ErrorCode.
ERR_EOFExpected
, Line = 4, Column = 14 },
2782
new ErrorDescription { Code = (int)ErrorCode.
ERR_EOFExpected
, Line = 6, Column = 9 },
2822
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}"),
Semantics\TopLevelStatementsTests.cs (2)
675
Diagnostic(ErrorCode.
ERR_EOFExpected
, @"""Hi!""").WithLocation(4, 30)
9608
Diagnostic(ErrorCode.
ERR_EOFExpected
, "42").WithLocation(3, 22)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\AssemblyAndNamespaceTests.cs (1)
631
Diagnostic(ErrorCode.
ERR_EOFExpected
, ";").WithLocation(3, 27));
Symbols\LocalFunctionTests.cs (2)
164
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(7, 1));
190
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(7, 1));
Symbols\Source\EnumTests.cs (4)
280
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}"));
291
new ErrorDescription { Code = (int)ErrorCode.
ERR_EOFExpected
},
490
DiagnosticsUtils.VerifyErrorCodesNoLineColumn(comp.GetDiagnostics(), new ErrorDescription { Code = (int)ErrorCode.
ERR_EOFExpected
},
491
new ErrorDescription { Code = (int)ErrorCode.
ERR_EOFExpected
},
Symbols\Source\FieldTests.cs (2)
309
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(6, 1),
377
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(6, 1),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (72)
Parsing\DeclarationParsingTests.cs (4)
8636
Diagnostic(ErrorCode.
ERR_EOFExpected
, ":").WithLocation(2, 13),
8661
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1));
8672
Diagnostic(ErrorCode.
ERR_EOFExpected
, ":").WithLocation(2, 13),
8689
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1));
Parsing\DeclarationScopeParsingTests.cs (22)
3666
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 25),
3771
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 23),
3954
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 34),
4067
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 34),
4241
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 22),
4414
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 26),
4592
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 35),
5423
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 28),
5525
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 28),
6073
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 26),
6514
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 32)
6612
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 32)
7029
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 33)
12606
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 24)
12673
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 22)
12796
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 33)
12874
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 33)
12988
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 21)
13101
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 25)
13219
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 34)
13819
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 27)
13889
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 27)
Parsing\LambdaParameterParsingTests.cs (1)
5409
Diagnostic(ErrorCode.
ERR_EOFExpected
, "=>").WithLocation(1, 27));
Parsing\LocalFunctionParsingTests.cs (3)
566
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(8, 1));
621
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(8, 1));
1268
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(9, 1));
Parsing\ParserErrorMessageTests.cs (16)
69
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(16, 1)
247
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(10, 1));
2409
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}"),
2410
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}"),
2411
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}"),
2412
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}"),
2413
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}"));
2891
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(12, 1)
2955
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(12, 1));
2993
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(12, 1));
3912
Diagnostic(ErrorCode.
ERR_EOFExpected
, ".").WithLocation(1, 15),
3929
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1));
4699
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1)
4761
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1));
4793
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1));
5588
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}")
Parsing\ParsingErrorRecoveryTests.cs (6)
383
Assert.Equal((int)ErrorCode.
ERR_EOFExpected
, file.Errors()[0].Code);
397
Assert.Equal((int)ErrorCode.
ERR_EOFExpected
, file.Errors()[0].Code);
398
Assert.Equal((int)ErrorCode.
ERR_EOFExpected
, file.Errors()[1].Code);
635
Assert.Equal((int)ErrorCode.
ERR_EOFExpected
, file.Errors()[0].Code);
649
Assert.Equal((int)ErrorCode.
ERR_EOFExpected
, file.Errors()[0].Code);
663
Assert.Equal((int)ErrorCode.
ERR_EOFExpected
, file.Errors()[0].Code);
Parsing\RecordParsing.cs (2)
1253
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(6, 20),
1256
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(8, 1)
Parsing\RefReadonlyTests.cs (1)
160
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(24, 1));
Parsing\SingleLineDeclarationParsingTests.cs (5)
286
Diagnostic(ErrorCode.
ERR_EOFExpected
, "{").WithLocation(1, 14));
311
Diagnostic(ErrorCode.
ERR_EOFExpected
, "{").WithLocation(1, 14),
314
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(1, 16));
339
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(1, 14));
685
Diagnostic(ErrorCode.
ERR_EOFExpected
, ";").WithLocation(1, 13));
Parsing\StatementAttributeParsingTests.cs (4)
2548
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(13, 1));
2639
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(13, 1));
6869
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(8, 1));
6936
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(8, 1));
Parsing\TopLevelStatementsParsingTests.cs (7)
30
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1)
675
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(11, 1)
797
Diagnostic(ErrorCode.
ERR_EOFExpected
, ".").WithLocation(1, 15),
814
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(4, 1)
1240
Diagnostic(ErrorCode.
ERR_EOFExpected
, "}").WithLocation(6, 1)
1468
Diagnostic(ErrorCode.
ERR_EOFExpected
, ",").WithLocation(1, 19),
3514
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(2, 15),
Parsing\UsingDirectiveParsingTests.cs (1)
255
Diagnostic(ErrorCode.
ERR_EOFExpected
, ")").WithLocation(1, 16));