mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
12 lines
215 B
Plaintext
12 lines
215 B
Plaintext
private import csharp
|
|
|
|
pragma[nomagic]
|
|
predicate isPatternExprDescendant(Expr e) {
|
|
e instanceof PatternExpr
|
|
or
|
|
exists(Expr parent |
|
|
isPatternExprDescendant(parent) and
|
|
e = parent.getAChildExpr()
|
|
)
|
|
}
|