JavaScript: Add missing qldoc.

This commit is contained in:
Max Schaefer
2019-11-22 12:12:10 +00:00
parent 47cbf0bf88
commit 7487c79271
2 changed files with 6 additions and 0 deletions

View File

@@ -199,6 +199,11 @@ class Folder extends Container, @folder {
/** A file. */
class File extends Container, @file {
/**
* Gets the location of this file.
*
* Note that files have special locations starting and ending at line zero, column zero.
*/
Location getLocation() { hasLocation(this, result) }
override string getAbsolutePath() { files(this, result, _, _, _) }

View File

@@ -74,6 +74,7 @@ abstract class Documentable extends ASTNode {
class JSDocTypeExprParent extends @jsdoc_type_expr_parent, Locatable {
override Location getLocation() { hasLocation(this, result) }
/** Gets the JSDoc comment to which this element belongs. */
JSDoc getJSDocComment() { none() }
}