Skip to content

Commit 6187322

Browse files
committed
WIP stubbing for DataFlowStack
1 parent 5a17608 commit 6187322

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ private import codeql.rust.dataflow.FlowSummary
1515
private import FlowSummaryImpl as FlowSummaryImpl
1616

1717

18-
/** @JB1 Remove, stubbed for #153 */
18+
//** @JB1 Remove, stubbed for #153 */
1919
/** A data-flow node that represents a call argument. */
2020
abstract class ArgumentNode extends Node {
2121

2222
/** Gets the call in which this node is an argument. */
2323
final DataFlowCall getCall() { none() }
2424
}
25-
/** @JB1 end stub for #153 */
25+
//** @JB1 end stub for #153 */
2626

2727
/**
2828
* A return kind. A return kind describes how a value can be returned from a
@@ -55,6 +55,10 @@ final class DataFlowCallable extends TDataFlowCallable {
5555

5656
/** Gets the location of this callable. */
5757
Location getLocation() { result = this.asCfgScope().getLocation() }
58+
59+
//** TODO JB1: Move to subclass, monkey patching for #153 */
60+
int totalorder(){ none() }
61+
//** TODO JB1: end stubs for #153 */
5862
}
5963

6064
final class DataFlowCall extends TDataFlowCall {
@@ -1005,6 +1009,10 @@ module RustDataFlow implements InputSig<Location> {
10051009
string toString() { result = "NodeRegion" }
10061010

10071011
predicate contains(Node n) { none() }
1012+
1013+
//** TODO JB1: Move to subclass, monkey patching for #153 */
1014+
int totalOrder(){ none() }
1015+
//** TODO JB1: end stubs for #153 */
10081016
}
10091017

10101018
/**

0 commit comments

Comments
 (0)