Skip to content

Commit 96e88a1

Browse files
committed
Ruby: Inline AnyComment class into ExpectationComment.
1 parent 727f7d2 commit 96e88a1

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

ruby/ql/lib/utils/test/internal/InlineExpectationsTestImpl.qll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ module Impl implements InlineExpectationsTestSig {
88
RubyComment(Ruby::Comment comment) or
99
ErbComment(R::ErbComment comment)
1010

11-
private class AnyComment extends TAnyComment {
11+
/**
12+
* A class representing comments that may contain inline expectations (Ruby line comments and ERB comments).
13+
*/
14+
class ExpectationComment extends TAnyComment {
1215
string toString() {
1316
exists(Ruby::Comment c |
1417
this = RubyComment(c) and
@@ -32,12 +35,7 @@ module Impl implements InlineExpectationsTestSig {
3235
result = c.getLocation()
3336
)
3437
}
35-
}
3638

37-
/**
38-
* A class representing comments that may contain inline expectations (Ruby line comments and ERB comments).
39-
*/
40-
class ExpectationComment extends AnyComment {
4139
string getContents() {
4240
exists(Ruby::Comment c |
4341
this = RubyComment(c) and

0 commit comments

Comments
 (0)