File tree Expand file tree Collapse file tree
javascript/ql/lib/utils/test/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,14 +4,22 @@ private import codeql.util.test.InlineExpectationsTest
44module Impl implements InlineExpectationsTestSig {
55 private import javascript
66
7- final private class LineCommentFinal = LineComment ;
7+ final class ExpectationComment = ExpectationCommentImpl ;
88
9- class ExpectationComment extends LineCommentFinal {
10- string getContents ( ) { result = this .getText ( ) }
9+ class Location = JS:: Location ;
10+
11+ abstract private class ExpectationCommentImpl extends Locatable {
12+ abstract string getContents ( ) ;
1113
1214 /** Gets this element's location. */
1315 Location getLocation ( ) { result = super .getLocation ( ) }
1416 }
1517
16- class Location = JS:: Location ;
18+ private class JSComment extends ExpectationCommentImpl instanceof Comment {
19+ override string getContents ( ) { result = super .getText ( ) }
20+ }
21+
22+ private class HtmlComment extends ExpectationCommentImpl instanceof HTML:: CommentNode {
23+ override string getContents ( ) { result = super .getText ( ) }
24+ }
1725}
You can’t perform that action at this time.
0 commit comments