Skip to content

Commit 61d7cde

Browse files
committed
Data flow: Assign empty locations to summary nodes
1 parent d4cee73 commit 61d7cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ private module ParameterNodes {
398398

399399
override DataFlowCallable getEnclosingCallable() { result = sc }
400400

401-
override Location getLocationImpl() { none() }
401+
override EmptyLocation getLocationImpl() { any() }
402402

403403
override string toStringImpl() { result = "parameter " + pos + " of " + sc }
404404
}
@@ -417,7 +417,7 @@ private class SummaryNode extends NodeImpl, TSummaryNode {
417417

418418
override DataFlowCallable getEnclosingCallable() { result = c }
419419

420-
override Location getLocationImpl() { none() }
420+
override EmptyLocation getLocationImpl() { any() }
421421

422422
override string toStringImpl() { result = "[summary] " + state + " in " + c }
423423
}

0 commit comments

Comments
 (0)