Files
codeql/java/ql/test/TestUtilities/InlineExpectationsTestPrivate.qll
2021-02-16 14:48:39 +00:00

13 lines
425 B
Plaintext

import java
/**
* A class representing line comments in Java, which is simply Javadoc restricted
* to EOL comments, with an extra accessor used by the InlineExpectations core code
*/
class LineComment extends Javadoc {
LineComment() { isEolComment(this) }
/** Gets the contents of the given comment, _without_ the preceding comment marker (`//`). */
string getContents() { result = this.getChild(0).toString() }
}