201 references to ERR_TypeExpected
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Symbols.cs (1)
604diagnostics.Add(ErrorCode.ERR_TypeExpected, syntax.GetLocation());
Errors\ErrorFacts.cs (1)
1104case ErrorCode.ERR_TypeExpected:
Parser\LanguageParser.cs (5)
1864bounds.Add(_syntaxFactory.TypeConstraint(this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_TypeExpected))); 1885bounds.Add(_syntaxFactory.TypeConstraint(this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_TypeExpected))); 5974result = this.AddError(result, ErrorCode.ERR_TypeExpected); 7167mode == ParseTypeMode.NewExpression ? ErrorCode.ERR_BadNewExpr : ErrorCode.ERR_TypeExpected); 9675mod = this.AddError(mod, ErrorCode.ERR_TypeExpected);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenDeconstructTests.cs (1)
4976Diagnostic(ErrorCode.ERR_TypeExpected, "1").WithLocation(4, 19),
CodeGen\CodeGenRefLocalTests.cs (1)
3412Diagnostic(ErrorCode.ERR_TypeExpected, "[").WithLocation(6, 31)
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
506Diagnostic(ErrorCode.ERR_TypeExpected, "ref").WithLocation(6, 25),
CodeGen\CodeGenUsingStatementTests.cs (1)
2656Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(6, 8),
CodeGen\FixedSizeBufferTests.cs (2)
859Diagnostic(ErrorCode.ERR_TypeExpected, "const").WithLocation(8, 18), 915Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").WithLocation(8, 18),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
IOperation\IOperationTests_IDynamicMemberReferenceExpression.cs (1)
327Diagnostic(ErrorCode.ERR_TypeExpected, ">").WithLocation(9, 38)
IOperation\IOperationTests_ISizeOfExpression.cs (1)
223Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(8, 30),
IOperation\IOperationTests_ITypeOfExpression.cs (1)
182Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(8, 30)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Semantics\BindingTests.cs (2)
675Diagnostic(ErrorCode.ERR_TypeExpected, ""), 2104Diagnostic(ErrorCode.ERR_TypeExpected, ""),
Semantics\FunctionPointerTests.cs (1)
3897Diagnostic(ErrorCode.ERR_TypeExpected, "__arglist").WithLocation(4, 64),
Semantics\ImplicitObjectCreationTests.cs (2)
2811Diagnostic(ErrorCode.ERR_TypeExpected, "new").WithLocation(6, 20), 2849Diagnostic(ErrorCode.ERR_TypeExpected, "new").WithLocation(6, 20),
Semantics\MethodTypeInferenceTests.cs (1)
889Diagnostic(ErrorCode.ERR_TypeExpected, ">"),
Semantics\NameOfTests.cs (1)
249Diagnostic(ErrorCode.ERR_TypeExpected, ">").WithLocation(17, 66),
Semantics\NullableReferenceTypesTests.cs (2)
2733Diagnostic(ErrorCode.ERR_TypeExpected, "!").WithLocation(7, 19), 139894Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(2, 10),
Semantics\QueryTests.cs (1)
1894Diagnostic(ErrorCode.ERR_TypeExpected, "null").WithLocation(8, 66),
Semantics\RecordTests.cs (6)
497Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(2, 23), 532Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(2, 23), 538Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(4, 15), 567Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(4, 14), 30266Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(2, 11), 30272Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(10, 17)
Semantics\RefFieldTests.cs (1)
11275Diagnostic(ErrorCode.ERR_TypeExpected, "struct").WithLocation(2, 12),
Semantics\SemanticErrorTests.cs (1)
9822Diagnostic(ErrorCode.ERR_TypeExpected, ">"),
Semantics\TargetTypedDefaultTests.cs (1)
1196Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(14, 17),
Semantics\TopLevelStatementsTests.cs (1)
638Diagnostic(ErrorCode.ERR_TypeExpected, @"""Hi!""").WithLocation(4, 30),
Semantics\UnsafeTests.cs (2)
7670Diagnostic(ErrorCode.ERR_TypeExpected, "this"), 7718Diagnostic(ErrorCode.ERR_TypeExpected, "null"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\LocalFunctionTests.cs (1)
146Diagnostic(ErrorCode.ERR_TypeExpected, "partial").WithLocation(5, 16),
Symbols\Source\EnumTests.cs (1)
711new ErrorDescription { Code = (int)ErrorCode.ERR_TypeExpected },
Symbols\Source\EventTests.cs (2)
2130Diagnostic(ErrorCode.ERR_TypeExpected, "this"), 2158Diagnostic(ErrorCode.ERR_TypeExpected, ""),
Symbols\Source\FieldTests.cs (2)
279Diagnostic(ErrorCode.ERR_TypeExpected, "delegate").WithLocation(4, 11), 344Diagnostic(ErrorCode.ERR_TypeExpected, "delegate").WithLocation(4, 11),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (157)
Diagnostics\DiagnosticTest.cs (8)
2498Diagnostic(ErrorCode.ERR_TypeExpected, "0").WithLocation(7, 35), 2501Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(8, 35), 2504Diagnostic(ErrorCode.ERR_TypeExpected, "0").WithLocation(15, 33), 2507Diagnostic(ErrorCode.ERR_TypeExpected, "1").WithLocation(15, 35), 2510Diagnostic(ErrorCode.ERR_TypeExpected, "0").WithLocation(16, 33), 2513Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(17, 33), 2516Diagnostic(ErrorCode.ERR_TypeExpected, "0").WithLocation(24, 43), 2519Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(25, 43),
LexicalAndXml\LexicalErrorTests.cs (4)
198Diagnostic(ErrorCode.ERR_TypeExpected, "const").WithLocation(7, 15), 201Diagnostic(ErrorCode.ERR_TypeExpected, "const").WithLocation(8, 15), 204Diagnostic(ErrorCode.ERR_TypeExpected, "const").WithLocation(8, 21), 216Diagnostic(ErrorCode.ERR_TypeExpected, "const").WithLocation(9, 42)
Parsing\AsyncParsingTests.cs (7)
678Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(4, 16), 724Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(4, 22), 778Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(4, 29), 1522Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(4, 16), 1575Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(4, 24), 1632Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(4, 28), 1749Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(4, 28),
Parsing\DeclarationParsingTests.cs (8)
6726Diagnostic(ErrorCode.ERR_TypeExpected, "where").WithLocation(2, 14), 6729Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(2, 23), 6794Diagnostic(ErrorCode.ERR_TypeExpected, "where").WithLocation(2, 14), 7585Diagnostic(ErrorCode.ERR_TypeExpected, "!").WithLocation(1, 19), 7658Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(1, 19), 10055Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(3, 9), 10204Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(3, 8), 10386Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(3, 6),
Parsing\DeclarationScopeParsingTests.cs (5)
803Diagnostic(ErrorCode.ERR_TypeExpected, "readonly").WithLocation(1, 19), 11460Diagnostic(ErrorCode.ERR_TypeExpected, "struct").WithLocation(2, 12) 11855Diagnostic(ErrorCode.ERR_TypeExpected, "struct").WithLocation(2, 19) 14435Diagnostic(ErrorCode.ERR_TypeExpected, "const").WithLocation(4, 16), 14567Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").WithLocation(4, 16)
Parsing\FileModifierParsingTests.cs (6)
1787Diagnostic(ErrorCode.ERR_TypeExpected, "[").WithLocation(6, 16), 1790Diagnostic(ErrorCode.ERR_TypeExpected, "*").WithLocation(7, 16), 1793Diagnostic(ErrorCode.ERR_TypeExpected, "?").WithLocation(8, 16) 1811Diagnostic(ErrorCode.ERR_TypeExpected, "[").WithLocation(6, 16), 1817Diagnostic(ErrorCode.ERR_TypeExpected, "*").WithLocation(7, 16), 1826Diagnostic(ErrorCode.ERR_TypeExpected, "?").WithLocation(8, 16),
Parsing\FunctionPointerTests.cs (5)
873Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 12), 917Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 15), 1004Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 20), 1339Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 12), 1615Diagnostic(ErrorCode.ERR_TypeExpected, ">").WithLocation(1, 11));
Parsing\LambdaParameterParsingTests.cs (1)
3037Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(1, 21),
Parsing\LocalFunctionParsingTests.cs (33)
1256Diagnostic(ErrorCode.ERR_TypeExpected, "virtual").WithLocation(3, 22), 1945Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(5, 16), 1960Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(6, 22), 1976Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(5, 16), 1985Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(6, 22), 1998Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(5, 16), 2007Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(6, 22), 2021Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(5, 16), 2024Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(6, 22)); 2030Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(5, 16), 2033Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(6, 22)); 2039Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(5, 16), 2042Diagnostic(ErrorCode.ERR_TypeExpected, "static").WithLocation(6, 22)); 2130Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15), 2138Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15)); 2207Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15), 2213Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 21)); 2218Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15), 2221Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 21)); 2291Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15), 2297Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 21), 2300Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 27)); 2305Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15), 2308Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 21), 2311Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 27)); 2382Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15), 2388Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 21), 2391Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 27), 2394Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 33)); 2399Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 15), 2402Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 21), 2405Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 27), 2408Diagnostic(ErrorCode.ERR_TypeExpected, "async").WithLocation(6, 33));
Parsing\MemberDeclarationParsingTests.cs (4)
2085Diagnostic(ErrorCode.ERR_TypeExpected, "[").WithLocation(6, 13), 2088Diagnostic(ErrorCode.ERR_TypeExpected, "*").WithLocation(7, 13), 2091Diagnostic(ErrorCode.ERR_TypeExpected, "?").WithLocation(8, 13) 8336Diagnostic(ErrorCode.ERR_TypeExpected, ")").WithLocation(1, 29),
Parsing\NameParsingTests.cs (5)
661Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 687Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 714Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 745Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code); 770Assert.Equal((int)ErrorCode.ERR_TypeExpected, arg.Errors()[0].Code);
Parsing\ParserErrorMessageTests.cs (6)
1451Diagnostic(ErrorCode.ERR_TypeExpected, ","), 1484Diagnostic(ErrorCode.ERR_TypeExpected, ")"), 4167Diagnostic(ErrorCode.ERR_TypeExpected, "throw"), 4813ParseAndValidateFirst(test, Diagnostic(ErrorCode.ERR_TypeExpected, "operator")); 5528Diagnostic(ErrorCode.ERR_TypeExpected, "in"), 5570Diagnostic(ErrorCode.ERR_TypeExpected, ","),
Parsing\ParsingErrorRecoveryTests.cs (32)
701Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 734Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 767Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 796Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 826Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 853Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 894Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 921Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 964Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[2].Code); 979Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[1].Code); 993Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1007Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1023Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[2].Code); 1038Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[1].Code); 1052Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1066Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1082Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[2].Code); 1098Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[1].Code); 1113Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1142Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1595Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1684Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1762Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 1944Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 2049Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 2150Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 2187Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 2298Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 2316Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 2434Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 2494Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); 6569Assert.Equal((int)ErrorCode.ERR_TypeExpected, file.Errors()[0].Code); //expecting a type (argument)
Parsing\RecordParsing.cs (4)
780Diagnostic(ErrorCode.ERR_TypeExpected, "{").WithLocation(1, 32) 850Diagnostic(ErrorCode.ERR_TypeExpected, "{").WithLocation(1, 30) 955Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 30) 4021Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(3, 6),
Parsing\RefFieldParsingTests.cs (2)
553Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").WithLocation(1, 17), 556Diagnostic(ErrorCode.ERR_TypeExpected, "fixed").WithLocation(1, 47));
Parsing\RefReadonlyTests.cs (2)
157Diagnostic(ErrorCode.ERR_TypeExpected, "virtual").WithLocation(22, 25), 475Diagnostic(ErrorCode.ERR_TypeExpected, "[").WithLocation(1, 8));
Parsing\RefStructs.cs (6)
85Diagnostic(ErrorCode.ERR_TypeExpected, "class"), 88Diagnostic(ErrorCode.ERR_TypeExpected, "unsafe"), 91Diagnostic(ErrorCode.ERR_TypeExpected, "interface").WithLocation(8, 9), 94Diagnostic(ErrorCode.ERR_TypeExpected, "delegate").WithLocation(10, 16), 172Diagnostic(ErrorCode.ERR_TypeExpected, "struct").WithLocation(4, 26), 178Diagnostic(ErrorCode.ERR_TypeExpected, "struct").WithLocation(5, 26),
Parsing\ScriptParsingTests.cs (3)
3308Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(1, 14), 3754Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(1, 13), 4007Diagnostic(ErrorCode.ERR_TypeExpected, "").WithLocation(1, 13),
Parsing\SeparatedSyntaxListParsingTests.cs (4)
48Diagnostic(ErrorCode.ERR_TypeExpected, ">").WithLocation(9, 9), 51Diagnostic(ErrorCode.ERR_TypeExpected, ",").WithLocation(10, 7), 57Diagnostic(ErrorCode.ERR_TypeExpected, ",").WithLocation(11, 11), 60Diagnostic(ErrorCode.ERR_TypeExpected, ">").WithLocation(11, 12));
Parsing\StatementAttributeParsingTests.cs (2)
1988Diagnostic(ErrorCode.ERR_TypeExpected, "[").WithLocation(6, 16), 2066Diagnostic(ErrorCode.ERR_TypeExpected, "[").WithLocation(6, 16),
Parsing\TopLevelStatementsParsingTests.cs (6)
1920Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 15), 1961Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 12), 2005Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 10), 2052Diagnostic(ErrorCode.ERR_TypeExpected, ";").WithLocation(1, 15), 2431Diagnostic(ErrorCode.ERR_TypeExpected, "'").WithLocation(1, 20), 3065Diagnostic(ErrorCode.ERR_TypeExpected, "struct").WithLocation(3, 12),
Parsing\UsingDirectiveParsingTests.cs (4)
4005Diagnostic(ErrorCode.ERR_TypeExpected, "__arglist").WithLocation(2, 11)); 4010Diagnostic(ErrorCode.ERR_TypeExpected, "__arglist").WithLocation(2, 11)); 4050Diagnostic(ErrorCode.ERR_TypeExpected, "__makeref").WithLocation(2, 11)); 4055Diagnostic(ErrorCode.ERR_TypeExpected, "__makeref").WithLocation(2, 11));