Skip to content

Commit 07ad770

Browse files
committed
Dataflow: Deprecate FlowStateString.
1 parent 063f69c commit 07ad770

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@ module MakeImplCommon<InputSig Lang> {
77
import Cached
88

99
module DataFlowImplCommonPublic {
10-
/** Provides `FlowState = string`. */
11-
module FlowStateString {
10+
/**
11+
* DEPRECATED: Generally, a custom `FlowState` type should be used instead,
12+
* but `string` can of course still be used without referring to this
13+
* module.
14+
*
15+
* Provides `FlowState = string`.
16+
*/
17+
deprecated module FlowStateString {
1218
/** A state value to track during data flow. */
13-
class FlowState = string;
19+
deprecated class FlowState = string;
1420

1521
/**
1622
* The default state, which is used when the state is unspecified for a source
1723
* or a sink.
1824
*/
19-
class FlowStateEmpty extends FlowState {
25+
deprecated class FlowStateEmpty extends FlowState {
2026
FlowStateEmpty() { this = "" }
2127
}
2228
}

0 commit comments

Comments
 (0)