Files
codeql/java/ql/lib/upgrades/e7706df98aaefcf055f35f50582f2686f41c23bb/statementEnclosingExpr.ql
Dave Bartolomeo 83ceb822aa Move upgrades into standard library packs
Move upgrade to new location

Remove incorrectly merged files

Fix upgrades section
2022-01-04 11:30:25 -08:00

18 lines
346 B
Plaintext

class Expr extends @expr {
string toString() { result = "expr" }
}
class ParExpr extends Expr, @parexpr {
override string toString() { result = "(...)" }
}
class Statement extends @stmt {
string toString() { result = "stmt" }
}
from Expr id, Statement s
where
statementEnclosingExpr(id, s) and
not id instanceof ParExpr
select id, s