mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Revert "Merge pull request #37 from erik-krogh/shared/inline-tests"
This reverts commit65fe9abcfe, reversing changes made to08e9d3391f.
This commit is contained in:
@@ -3,18 +3,20 @@
|
||||
* See `shared/util/codeql/util/test/InlineExpectationsTest.qll`
|
||||
*/
|
||||
|
||||
private import codeql.ruby.AST as R
|
||||
private import codeql.util.test.InlineExpectationsTest
|
||||
private import codeql.ruby.ast.internal.TreeSitter
|
||||
|
||||
/**
|
||||
* A class representing line comments in Ruby.
|
||||
*/
|
||||
private class ExpectationComment extends Ruby::Comment {
|
||||
string getContents() { result = this.getValue().suffix(1) }
|
||||
private module Impl implements InlineExpectationsTestSig {
|
||||
private import codeql.ruby.ast.internal.TreeSitter
|
||||
|
||||
predicate hasLocationInfo(string file, int line, int column, int endLine, int endColumn) {
|
||||
this.getLocation().hasLocationInfo(file, line, column, endLine, endColumn)
|
||||
/**
|
||||
* A class representing line comments in Ruby.
|
||||
*/
|
||||
class ExpectationComment extends Ruby::Comment {
|
||||
string getContents() { result = this.getValue().suffix(1) }
|
||||
}
|
||||
|
||||
class Location = R::Location;
|
||||
}
|
||||
|
||||
import Make<ExpectationComment>
|
||||
import Make<Impl>
|
||||
|
||||
Reference in New Issue
Block a user