mirror of
https://github.com/hohn/codeql-javascript.git
synced 2025-12-16 06:23:03 +01:00
18 lines
390 B
Plaintext
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
|