mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
21 lines
649 B
Plaintext
21 lines
649 B
Plaintext
private import go as G
|
|
private import codeql.util.test.InlineExpectationsTest
|
|
|
|
module Impl implements InlineExpectationsTestSig {
|
|
final private class CommentFinal = G::Comment;
|
|
|
|
/**
|
|
* A class representing line comments in the Go style, including the
|
|
* preceding comment marker (`//`).
|
|
*/
|
|
class ExpectationComment extends CommentFinal {
|
|
/** Returns the contents of the given comment, _without_ the preceding comment marker (`//`). */
|
|
string getContents() { result = this.getText() }
|
|
|
|
/** Gets this element's location. */
|
|
G::Location getLocation() { result = super.getLocation() }
|
|
}
|
|
|
|
class Location = G::Location;
|
|
}
|