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 bb9fea5 commit ca60e82Copy full SHA for ca60e82
javascript/ql/src/semmle/javascript/AST.qll
@@ -184,9 +184,7 @@ class ASTNode extends @ast_node, Locatable {
184
* Holds if the given file is a `.d.ts` file.
185
*/
186
cached
187
-private predicate isAmbientTopLevel(TopLevel tl) {
188
- tl.getFile().getBaseName().matches("%.d.ts")
189
-}
+private predicate isAmbientTopLevel(TopLevel tl) { tl.getFile().getBaseName().matches("%.d.ts") }
190
191
/**
192
* A toplevel syntactic unit; that is, a stand-alone script, an inline script
0 commit comments