mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
13 lines
439 B
Plaintext
13 lines
439 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 ExpectationComment extends Javadoc {
|
|
ExpectationComment() { isEolComment(this) }
|
|
|
|
/** Gets the contents of the given comment, _without_ the preceding comment marker (`//`). */
|
|
string getContents() { result = this.getChild(0).toString() }
|
|
}
|