@@ -53,7 +53,7 @@ module TaintedPath {
53
53
54
54
/** DEPRECATED. Use `blocksExpr` instead. */
55
55
deprecated predicate sanitizes ( boolean outcome , Expr e , DataFlow:: FlowLabel label ) {
56
- this .blocksExpr ( outcome , e , Label :: toFlowState ( label ) )
56
+ this .blocksExpr ( outcome , e , FlowState :: fromFlowLabel ( label ) )
57
57
}
58
58
}
59
59
@@ -178,11 +178,12 @@ module TaintedPath {
178
178
179
179
deprecated override Label:: SplitPath toFlowLabel ( ) { any ( ) }
180
180
}
181
+
182
+ /** Convert the given flow label to the corresponding flow state. */
183
+ deprecated FlowState fromFlowLabel ( DataFlow:: FlowLabel label ) { result .toFlowLabel ( ) = label }
181
184
}
182
185
183
186
deprecated module Label {
184
- FlowState toFlowState ( DataFlow:: FlowLabel label ) { result .toFlowLabel ( ) = label }
185
-
186
187
class Normalization = FlowState:: Normalization ;
187
188
188
189
class Relativeness = FlowState:: Relativeness ;
@@ -872,7 +873,8 @@ module TaintedPath {
872
873
DataFlow:: Node src , DataFlow:: Node dst , DataFlow:: FlowLabel srclabel ,
873
874
DataFlow:: FlowLabel dstlabel
874
875
) {
875
- isAdditionalFlowStep ( src , Label:: toFlowState ( srclabel ) , dst , Label:: toFlowState ( dstlabel ) )
876
+ isAdditionalFlowStep ( src , FlowState:: fromFlowLabel ( srclabel ) , dst ,
877
+ FlowState:: fromFlowLabel ( dstlabel ) )
876
878
}
877
879
878
880
/**
0 commit comments