mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
add support for satisfies-expressions
This commit is contained in:
@@ -45,6 +45,11 @@ predicate flowsToTypeRestrictedExpression(LocalObject obj) {
|
||||
restricted = assertion.getExpression()
|
||||
)
|
||||
or
|
||||
exists(SatisfiesExpr assertion |
|
||||
type = assertion.getTypeAnnotation() and
|
||||
restricted = assertion.getExpression()
|
||||
)
|
||||
or
|
||||
exists(BindingPattern v |
|
||||
type = v.getTypeAnnotation() and
|
||||
restricted = v.getAVariable().getAnAssignedExpr()
|
||||
|
||||
Reference in New Issue
Block a user