Files
codeql/csharp/ql/test/TestUtilities/InlineExpectationsTest.qll
Rasmus Lerchedahl Petersen c3b3c05cf3 Revert "Merge pull request #37 from erik-krogh/shared/inline-tests"
This reverts commit 65fe9abcfe, reversing
changes made to 08e9d3391f.
2023-01-05 09:19:43 +01:00

22 lines
625 B
Plaintext

/**
* Inline expectation tests for CSharp.
* See `shared/util/codeql/util/test/InlineExpectationsTest.qll`
*/
private import csharp as CS
private import codeql.util.test.InlineExpectationsTest
private module Impl implements InlineExpectationsTestSig {
/**
* A class representing line comments in C# used by the InlineExpectations core code
*/
class ExpectationComment extends CS::SinglelineComment {
/** Gets the contents of the given comment, _without_ the preceding comment marker (`//`). */
string getContents() { result = this.getText() }
}
class Location = CS::Location;
}
import Make<Impl>