Skip to content

Commit e670fdb

Browse files
committed
Move two predicates in FlowSummaryImplSpecific.qll
1 parent a37737d commit e670fdb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,6 @@ predicate summaryElement(DataFlowCallable c, string input, string output, string
5252
)
5353
}
5454

55-
/**
56-
* Holds if an external source specification exists for `e` with output specification
57-
* `output` and kind `kind`.
58-
*/
59-
predicate sourceElement(AstNode n, string output, string kind) { none() }
60-
61-
/**
62-
* Holds if an external sink specification exists for `n` with input specification
63-
* `input` and kind `kind`.
64-
*/
65-
predicate sinkElement(AstNode n, string input, string kind) { none() }
66-
6755
/**
6856
* Gets the summary component for specification component `c`, if any.
6957
*
@@ -84,6 +72,18 @@ NormalReturnKind getReturnValueKind() { any() }
8472
* we rely on API graphs instead.
8573
*/
8674
private module UnusedSourceSinkInterpretation {
75+
/**
76+
* Holds if an external source specification exists for `e` with output specification
77+
* `output` and kind `kind`.
78+
*/
79+
predicate sourceElement(AstNode n, string output, string kind) { none() }
80+
81+
/**
82+
* Holds if an external sink specification exists for `n` with input specification
83+
* `input` and kind `kind`.
84+
*/
85+
predicate sinkElement(AstNode n, string input, string kind) { none() }
86+
8787
class SourceOrSinkElement = AstNode;
8888

8989
/** An entity used to interpret a source/sink specification. */

0 commit comments

Comments
 (0)