Files
codeql/go/ql/lib/utils/test/internal/InlineExpectationsTestImpl.qll
Jonas Jensen c56feb7644 Go: annotate the standard library with for overlay
This commit is auto-generated with:

    python3 config/add-overlay-annotations.py go
2026-03-13 15:03:01 +00:00

24 lines
674 B
Plaintext

overlay[local?]
module;
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;
}