mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
20 lines
529 B
Plaintext
20 lines
529 B
Plaintext
import javascript
|
|
|
|
query predicate test_AssignExpr_getDocumentation(AssignExpr assgn, JSDoc res) {
|
|
res = assgn.getDocumentation()
|
|
}
|
|
|
|
query predicate test_Function_getDocumentation(Function f, JSDoc res) { res = f.getDocumentation() }
|
|
|
|
query predicate test_VarDeclStmt_getDocumentation(VarDeclStmt vds, JSDoc res) {
|
|
res = vds.getDocumentation()
|
|
}
|
|
|
|
query predicate test_OtherExpr_getDocumentation(Expr e, JSDoc res) {
|
|
res = e.getDocumentation() and
|
|
(
|
|
not e instanceof AssignExpr and
|
|
not e instanceof Function
|
|
)
|
|
}
|