Files
codeql/go/ql/lib/utils/test/internal/InlineExpectationsTestImpl.qll
2024-12-12 15:03:01 +01:00

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;
}