From bcd711a708cccb2ccf13a9ed70d37c4a56442013 Mon Sep 17 00:00:00 2001 From: Aditya Sharad Date: Mon, 19 Dec 2022 15:54:11 -0800 Subject: [PATCH] Tutorial: Add separate QLDoc for Person class By moving the existing doc comment to the top level, that comment is shown when a user hovers over the module name in `import tutorial`. --- shared/tutorial/tutorial.qll | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shared/tutorial/tutorial.qll b/shared/tutorial/tutorial.qll index 190d054d5ac..9289d8c3042 100644 --- a/shared/tutorial/tutorial.qll +++ b/shared/tutorial/tutorial.qll @@ -4,6 +4,11 @@ * Note: Data is usually stored in a separate database and the QL libraries only contain predicates, * but for this tutorial both the data and the predicates are stored in the library. */ + +/** + * A person known to the QL detective tutorials, represented by a string + * (their first name). + */ class Person extends string { Person() { this =