Skip to content

Commit e81a3bc

Browse files
committed
Unified: Add QLDoc
1 parent 7d6d5bf commit e81a3bc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

unified/ql/lib/codeql/unified/Comments.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
/** Provides classes for working with comments. */
2+
13
private import unified
24

35
/**
46
* A comment appearing in the source code.
57
*/
68
class Comment extends TriviaToken {
79
// At the moment, comments are the only type trivia token we extract
10+
/**
11+
* Gets the text inside this comment, not counting the delimeters.
12+
*/
813
string getCommentText() {
914
result = this.getValue().regexpCapture("//(.*)", 1)
1015
or

0 commit comments

Comments
 (0)