We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d6d5bf commit e81a3bcCopy full SHA for e81a3bc
1 file changed
unified/ql/lib/codeql/unified/Comments.qll
@@ -1,10 +1,15 @@
1
+/** Provides classes for working with comments. */
2
+
3
private import unified
4
5
/**
6
* A comment appearing in the source code.
7
*/
8
class Comment extends TriviaToken {
9
// 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
+ */
13
string getCommentText() {
14
result = this.getValue().regexpCapture("//(.*)", 1)
15
or
0 commit comments