From e81a3bcbc3deb87ac1bab2483e02045538ffa090 Mon Sep 17 00:00:00 2001 From: Asger F Date: Fri, 12 Jun 2026 16:47:00 +0200 Subject: [PATCH] Unified: Add QLDoc --- unified/ql/lib/codeql/unified/Comments.qll | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unified/ql/lib/codeql/unified/Comments.qll b/unified/ql/lib/codeql/unified/Comments.qll index c1b1bb9df90..e839af2dbee 100644 --- a/unified/ql/lib/codeql/unified/Comments.qll +++ b/unified/ql/lib/codeql/unified/Comments.qll @@ -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