Files
codeql-javascript/queries/printast.ql

18 lines
390 B
Plaintext

/**
* @name Print AST
* @kind graph
*/
import javascript
import semmle.javascript.PrintAst
class PrintAstConfigurationOverride extends PrintAstConfiguration {
override predicate shouldPrint(Locatable e, Location l) {
super.shouldPrint(e, l) and
l.getFile().getBaseName() = "callbacks.js"
}
}
// from File f
// where f.getBaseName() = "callbacks.js"
// select f