21 references to ERR_EndifDirectiveExpected
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (1)
1162or ErrorCode.ERR_EndifDirectiveExpected
Parser\DirectiveParser.cs (3)
175return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_EndifDirectiveExpected); 198return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_EndifDirectiveExpected); 239return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_EndifDirectiveExpected);
Parser\Lexer.cs (1)
692this.AddError(ErrorCode.ERR_EndifDirectiveExpected);
Syntax\SyntaxFactory.cs (1)
2353case ErrorCode.ERR_EndifDirectiveExpected:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
LexicalAndXml\DisabledRegionTests.cs (2)
225Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "#endregion")); 256Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, ""));
LexicalAndXml\LexicalErrorTests.cs (3)
2044Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "").WithLocation(3, 11)); 2058Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "#endregion").WithLocation(5, 1), 2059Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "").WithLocation(6, 1));
LexicalAndXml\PreprocessorTests.cs (9)
1463VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1478VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1491VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1504VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1572VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1593VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 1614VerifyErrorCode(node, (int)ErrorCode.ERR_EndifDirectiveExpected); 2027VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected, (int)ErrorCode.ERR_EndifDirectiveExpected); 2065VerifyErrorCode(node, (int)ErrorCode.ERR_EndRegionDirectiveExpected, (int)ErrorCode.ERR_EndifDirectiveExpected);
Parsing\ParserErrorMessageTests.cs (1)
2584ParseAndValidate(test, Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, ""));