We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f7702 commit 2f84b21Copy full SHA for 2f84b21
ql/ql/src/codeql_ql/ast/Ast.qll
@@ -206,6 +206,11 @@ class QueryDoc extends QLDoc {
206
result = this.getContents().regexpCapture("(?s).*@kind ([\\w-]+)\\s.*", 1)
207
}
208
209
+ /** Gets the @name for the query */
210
+ string getQueryName() {
211
+ result = this.getContents().regexpCapture("(?s).*@name ([\\w-\\s]+)(?=\\n).*", 1)
212
+ }
213
+
214
/** Gets the id part (without language) of the @id */
215
string getQueryId() {
216
result = this.getContents().regexpCapture("(?s).*@id (\\w+)/([\\w\\-]+)\\s.*", 2)
0 commit comments