Unified: Add QLDoc

This commit is contained in:
Asger F
2026-06-12 16:47:00 +02:00
parent 7d6d5bfb4a
commit e81a3bcbc3

View File

@@ -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