13 references to ERR_UnexpectedDirective
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (1)
1163or ErrorCode.ERR_UnexpectedDirective
Parser\DirectiveParser.cs (4)
179return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_UnexpectedDirective); 202return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_UnexpectedDirective); 221return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_UnexpectedDirective); 243return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_UnexpectedDirective);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
LexicalAndXml\PreprocessorTests.cs (4)
1628VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective); 1639VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective); 1651VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective); 1664VerifyErrorCode(node, (int)ErrorCode.ERR_UnexpectedDirective);
Parsing\ParserErrorMessageTests.cs (2)
2606Diagnostic(ErrorCode.ERR_UnexpectedDirective, "#endregion"), 2609Diagnostic(ErrorCode.ERR_UnexpectedDirective, "# endif"));
Parsing\ParsingErrorRecoveryTests.cs (2)
8282Diagnostic(ErrorCode.ERR_UnexpectedDirective, "#else").WithLocation(3, 1), 8288Diagnostic(ErrorCode.ERR_UnexpectedDirective, "#endif").WithLocation(5, 1));