Skip to content

Commit e557f23

Browse files
committed
mark the implements of a module as being alive
1 parent cf89fae commit e557f23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ql/ql/src/codeql_ql/style/DeadCodeQuery.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ private AstNode aliveStep(AstNode prev) {
167167
or
168168
// a module parameter is alive is the module is alive
169169
prev.(Module).hasParameter(_, _, result)
170+
or
171+
// the implements of a module
172+
result = prev.(Module).getImplements(_)
170173
}
171174

172175
private AstNode deprecated() {

0 commit comments

Comments
 (0)