Skip to content

Commit 7464ac1

Browse files
committed
unified: Dont show ExprPattern in path
1 parent 622a7ff commit 7464ac1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎unified/ql/lib/codeql/unified/internal/dataflow/DataFlowInstantiation.qll‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ module DataFlowInput implements InputSig<Location> {
153153
// Misc
154154
//
155155
additional predicate nodeIsVisible(Node node) {
156-
node instanceof TValueNode
156+
exists(Expr e |
157+
node = TValueNode(e) and
158+
not e instanceof ExprPattern
159+
)
157160
or
158161
node instanceof TStrictlyIncomingValue
159162
or

0 commit comments

Comments
 (0)