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 244a304 commit 5da968eCopy full SHA for 5da968e
javascript/ql/src/semmle/javascript/AST.qll
@@ -23,6 +23,10 @@ import javascript
23
class ASTNode extends @ast_node, Locatable {
24
override Location getLocation() { hasLocation(this, result) }
25
26
+ override File getFile() {
27
+ result = getLocation().getFile() // Specialized for performance reasons
28
+ }
29
+
30
/** Gets the first token belonging to this element. */
31
Token getFirstToken() {
32
exists(Location l1, Location l2 |
0 commit comments