43 references to ERR_IdentifierExpectedKW
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
1111case ErrorCode.ERR_IdentifierExpectedKW:
Errors\MessageProvider.cs (1)
155ErrorCode.ERR_IdentifierExpectedKW => false, // message uses {1} rather than {0}
Parser\SyntaxParser.cs (2)
628else if (code == ErrorCode.ERR_IdentifierExpectedKW) 653return ErrorCode.ERR_IdentifierExpectedKW; // A keyword -- use special message.
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\LambdaTests.cs (5)
6419Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(6, 25)); 6439Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "ref").WithArguments("", "ref").WithLocation(6, 25)); 6462Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(6, 29)); 7925Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "this").WithArguments("", "this").WithLocation(1, 17)); 8452Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "this").WithArguments("", "this").WithLocation(1, 12));
Semantics\LocalFunctionTests.cs (2)
762Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").WithLocation(15, 12), 771Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").WithLocation(18, 12),
Semantics\OutVarTests.cs (2)
2392Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").WithLocation(4, 11), 2398Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").WithLocation(5, 11),
Semantics\PrimaryConstructorTests.cs (1)
8533Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "delegate").WithArguments("", "delegate").WithLocation(4, 38)
Semantics\ReadOnlyStructsTests.cs (2)
1433Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "").WithArguments("", "readonly").WithLocation(3, 2), 1436Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "readonly").WithArguments("", "readonly").WithLocation(4, 17));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\EnumTests.cs (1)
290DiagnosticsUtils.VerifyErrorCodesNoLineColumn(comp1.GetDiagnostics(), new ErrorDescription { Code = (int)ErrorCode.ERR_IdentifierExpectedKW },
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (26)
Parsing\AnonymousFunctionParsingTests.cs (2)
1481Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "static").WithArguments("", "static").WithLocation(1, 20), 1535Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "static").WithArguments("", "static").WithLocation(1, 20),
Parsing\AsyncParsingTests.cs (2)
1698Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(4, 28), 1815Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(4, 28),
Parsing\DeclarationParsingTests.cs (2)
122Assert.Equal((int)ErrorCode.ERR_IdentifierExpectedKW, errors[0].Code); 137Assert.Equal((int)ErrorCode.ERR_IdentifierExpectedKW, errors[0].Code);
Parsing\ExpressionParsingTests.cs (2)
6424Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "in").WithArguments("", "in").WithLocation(1, 9)); 6447Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").WithLocation(1, 9));
Parsing\FunctionPointerTests.cs (1)
143Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "void").WithArguments("", "void").WithLocation(1, 21),
Parsing\LambdaAttributeParsingTests.cs (1)
3611Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "return").WithArguments("", "return").WithLocation(1, 2));
Parsing\LambdaParameterParsingTests.cs (5)
755Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "__arglist").WithArguments("", "__arglist").WithLocation(1, 9)); 5073Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(1, 1), 5103Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "ref").WithArguments("", "ref").WithLocation(1, 1)); 5134Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(1, 5)); 5164Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "delegate").WithArguments("", "delegate").WithLocation(1, 1));
Parsing\ParserErrorMessageTests.cs (9)
241Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "namespace").WithArguments("", "namespace").WithLocation(2, 7), 2870Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(4, 32), 2931Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(4, 32), 2972Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(4, 32), 3048Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "").WithArguments("", "const"), 3049Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "").WithArguments("", "readonly")); 4684Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(3, 32), 4743Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(3, 32), 4778Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "operator").WithArguments("", "operator").WithLocation(3, 32),
Parsing\ParsingErrorRecoveryTests.cs (2)
6296Assert.Equal((int)ErrorCode.ERR_IdentifierExpectedKW, file.Errors()[0].Code); 6322Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "namespace").WithArguments("", "namespace").WithLocation(1, 7));