mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
This transfers the current status of `ExprVisitor` from the proof-of-concept, together with some changes required for swift 5.6.
14 lines
306 B
Plaintext
14 lines
306 B
Plaintext
// generated by codegen/codegen.py
|
|
import codeql.swift.elements.expr.Expr
|
|
|
|
class OneWayExprBase extends @one_way_expr, Expr {
|
|
override string getAPrimaryQlClass() { result = "OneWayExpr" }
|
|
|
|
Expr getSubExpr() {
|
|
exists(Expr x |
|
|
one_way_exprs(this, x) and
|
|
result = x.resolve()
|
|
)
|
|
}
|
|
}
|