mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
26 lines
777 B
Plaintext
26 lines
777 B
Plaintext
private import javascript as JS
|
|
private import codeql.util.test.InlineExpectationsTest
|
|
|
|
module Impl implements InlineExpectationsTestSig {
|
|
private import javascript
|
|
|
|
final class ExpectationComment = ExpectationCommentImpl;
|
|
|
|
class Location = JS::Location;
|
|
|
|
abstract private class ExpectationCommentImpl extends Locatable {
|
|
abstract string getContents();
|
|
|
|
/** Gets this element's location. */
|
|
Location getLocation() { result = super.getLocation() }
|
|
}
|
|
|
|
private class JSComment extends ExpectationCommentImpl instanceof Comment {
|
|
override string getContents() { result = super.getText() }
|
|
}
|
|
|
|
private class HtmlComment extends ExpectationCommentImpl instanceof HTML::CommentNode {
|
|
override string getContents() { result = super.getText() }
|
|
}
|
|
}
|