Skip to content

Commit 4fb30f3

Browse files
author
Dilan Bhalla
committed
test predicate
1 parent fd05c13 commit 4fb30f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

csharp/ql/src/Dead Code/DeadCode.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,8 @@ predicate isDeadField(Field f) {
9999
not fc instanceof FieldRead and not fc.isRefArgument()
100100
)
101101
}
102+
103+
predicate testPredicate(Method m) {
104+
not isRecursivelyLiveMethod(m) and
105+
m.isSourceDeclaration()
106+
}

0 commit comments

Comments
 (0)