38 references to ERR_IdentifierExpectedKW
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (1)
1173or ErrorCode.ERR_IdentifierExpectedKW
Errors\MessageProvider.cs (1)
147ErrorCode.ERR_IdentifierExpectedKW => false, // message uses {1} rather than {0}
Parser\SyntaxParser.cs (2)
664else if (code == ErrorCode.ERR_IdentifierExpectedKW) 689return ErrorCode.ERR_IdentifierExpectedKW; // A keyword -- use special message.
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
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 (2)
8661Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "out").WithArguments("", "out").WithLocation(4, 18), 9544Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "delegate").WithArguments("", "delegate").WithLocation(4, 38),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\LambdaTests.cs (5)
6455Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(6, 25)); 6475Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "ref").WithArguments("", "ref").WithLocation(6, 25)); 6498Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(6, 29)); 7951Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "this").WithArguments("", "this").WithLocation(1, 17)); 8534Diagnostic(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\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 (20)
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\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)
6446Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "in").WithArguments("", "in").WithLocation(1, 9)); 6473Diagnostic(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)
3603Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "return").WithArguments("", "return").WithLocation(1, 2));
Parsing\LambdaParameterParsingTests.cs (5)
750Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "__arglist").WithArguments("", "__arglist").WithLocation(1, 9)); 5151Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(1, 1), 5181Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "ref").WithArguments("", "ref").WithLocation(1, 1)); 5212Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "int").WithArguments("", "int").WithLocation(1, 5)); 5242Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "delegate").WithArguments("", "delegate").WithLocation(1, 1));
Parsing\ParserErrorMessageTests.cs (3)
241Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "namespace").WithArguments("", "namespace").WithLocation(2, 7), 2969Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "").WithArguments("", "const"), 2970Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "").WithArguments("", "readonly"));
Parsing\ParsingErrorRecoveryTests.cs (2)
7100Assert.Equal((int)ErrorCode.ERR_IdentifierExpectedKW, file.Errors()[0].Code); 7126Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "namespace").WithArguments("", "namespace").WithLocation(1, 7));
Parsing\RefReadonlyTests.cs (2)
1386Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "readonly").WithArguments("", "readonly").WithLocation(1, 3)); 1418Diagnostic(ErrorCode.ERR_IdentifierExpectedKW, "readonly").WithArguments("", "readonly").WithLocation(1, 3));