mirror of
https://github.com/github/codeql.git
synced 2026-06-16 18:31:07 +02:00
Unified: Add QLDoc
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/** Provides classes for working with comments. */
|
||||
|
||||
private import unified
|
||||
|
||||
/**
|
||||
@@ -5,6 +7,9 @@ private import unified
|
||||
*/
|
||||
class Comment extends TriviaToken {
|
||||
// At the moment, comments are the only type trivia token we extract
|
||||
/**
|
||||
* Gets the text inside this comment, not counting the delimeters.
|
||||
*/
|
||||
string getCommentText() {
|
||||
result = this.getValue().regexpCapture("//(.*)", 1)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user