Skip to content

Commit 7487c79

Browse files
author
Max Schaefer
committed
JavaScript: Add missing qldoc.
1 parent 47cbf0b commit 7487c79

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

javascript/ql/src/semmle/javascript/Files.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ class Folder extends Container, @folder {
199199

200200
/** A file. */
201201
class File extends Container, @file {
202+
/**
203+
* Gets the location of this file.
204+
*
205+
* Note that files have special locations starting and ending at line zero, column zero.
206+
*/
202207
Location getLocation() { hasLocation(this, result) }
203208

204209
override string getAbsolutePath() { files(this, result, _, _, _) }

javascript/ql/src/semmle/javascript/JSDoc.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ abstract class Documentable extends ASTNode {
7474
class JSDocTypeExprParent extends @jsdoc_type_expr_parent, Locatable {
7575
override Location getLocation() { hasLocation(this, result) }
7676

77+
/** Gets the JSDoc comment to which this element belongs. */
7778
JSDoc getJSDocComment() { none() }
7879
}
7980

0 commit comments

Comments
 (0)