22 references to ERR_EndifDirectiveExpected
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (1)
1100case ErrorCode.ERR_EndifDirectiveExpected:
Parser\DirectiveParser.cs (3)
170return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_EndifDirectiveExpected); 193return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_EndifDirectiveExpected); 234return this.AddError(SyntaxFactory.BadDirectiveTrivia(hash, keyword, eod, isActive), ErrorCode.ERR_EndifDirectiveExpected);
Parser\Lexer.cs (1)
887this.AddError(ErrorCode.ERR_EndifDirectiveExpected);
Syntax\SyntaxFactory.cs (1)
2330case ErrorCode.ERR_EndifDirectiveExpected:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
LexicalAndXml\DisabledRegionTests.cs (2)
225Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "#endregion")); 256Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, ""));
LexicalAndXml\LexicalErrorTests.cs (3)
1530Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "").WithLocation(3, 11)); 1544Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "#endregion").WithLocation(5, 1), 1545Diagnostic(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, ""));
Syntax\SyntaxNodeTests.cs (1)
367TestBase.Diagnostic(ErrorCode.ERR_EndifDirectiveExpected, "").WithLocation(1, 26));