mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
13 lines
425 B
Plaintext
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() }
|
|
}
|