mirror of
https://github.com/github/codeql.git
synced 2026-06-28 08:07:04 +02:00
28 lines
677 B
Plaintext
28 lines
677 B
Plaintext
import Comment
|
|
|
|
final class SingleLineComment extends Comment {
|
|
SingleLineComment() {
|
|
this.getText().matches("//%") and
|
|
not this instanceof SingleLineDocComment
|
|
}
|
|
}
|
|
|
|
final class MultiLineComment extends Comment {
|
|
MultiLineComment() {
|
|
this.getText().matches("/*%") and
|
|
not this instanceof MultiLineDocComment
|
|
}
|
|
}
|
|
|
|
abstract private class DocCommentImpl extends Comment { }
|
|
|
|
final class DocComment = DocCommentImpl;
|
|
|
|
final class SingleLineDocComment extends DocCommentImpl {
|
|
SingleLineDocComment() { this.getText().matches("///%") }
|
|
}
|
|
|
|
final class MultiLineDocComment extends DocCommentImpl {
|
|
MultiLineDocComment() { this.getText().matches("/**%") }
|
|
}
|