Skip to content

Commit ed72ad5

Browse files
author
Dilan Bhalla
committed
fix expr.qll and dbscheme merge issue
1 parent 58c515b commit ed72ad5

File tree

1 file changed

+11
-0
lines changed
  • csharp/ql/lib/semmle/code/csharp/exprs/internal

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
private import csharp
2+
3+
pragma[nomagic]
4+
predicate isPatternExprDescendant(Expr e) {
5+
e instanceof PatternExpr
6+
or
7+
exists(Expr parent |
8+
isPatternExprDescendant(parent) and
9+
e = parent.getAChildExpr()
10+
)
11+
}

0 commit comments

Comments
 (0)