11/**
2+ * DEPRECATED: Use `semmle.python.dataflow.new.TypeTracking` instead.
3+ *
24 * This file acts as a wrapper for `internal.TypeTracker`, exposing some of the functionality with
35 * names that are more appropriate for Python.
46 */
@@ -8,12 +10,14 @@ private import internal.TypeTracker as Internal
810private import internal.TypeTrackerSpecific as InternalSpecific
911
1012/** A string that may appear as the name of an attribute or access path. */
11- class AttributeName = InternalSpecific:: TypeTrackerContent ;
13+ deprecated class AttributeName = InternalSpecific:: TypeTrackerContent ;
1214
1315/** An attribute name, or the empty string (representing no attribute). */
14- class OptionalAttributeName = InternalSpecific:: OptionalTypeTrackerContent ;
16+ deprecated class OptionalAttributeName = InternalSpecific:: OptionalTypeTrackerContent ;
1517
1618/**
19+ * DEPRECATED: Use `semmle.python.dataflow.new.TypeTracking` instead.
20+ *
1721 * The summary of the steps needed to track a value to a given dataflow node.
1822 *
1923 * This can be used to track objects that implement a certain API in order to
@@ -40,7 +44,7 @@ class OptionalAttributeName = InternalSpecific::OptionalTypeTrackerContent;
4044 * `t = t2.step(myType(t2), result)`. If you additionally want to track individual
4145 * intra-procedural steps, use `t = t2.smallstep(myCallback(t2), result)`.
4246 */
43- class TypeTracker extends Internal:: TypeTracker {
47+ deprecated class TypeTracker extends Internal:: TypeTracker {
4448 /**
4549 * Holds if this is the starting point of type tracking, and the value starts in the attribute named `attrName`.
4650 * The type tracking only ends after the attribute has been loaded.
@@ -55,12 +59,12 @@ class TypeTracker extends Internal::TypeTracker {
5559 string getAttr ( ) { result = this .getContent ( ) }
5660}
5761
58- module TypeTracker = Internal:: TypeTracker;
62+ deprecated module TypeTracker = Internal:: TypeTracker;
5963
60- class StepSummary = Internal:: StepSummary ;
64+ deprecated class StepSummary = Internal:: StepSummary ;
6165
62- module StepSummary = Internal:: StepSummary;
66+ deprecated module StepSummary = Internal:: StepSummary;
6367
64- class TypeBackTracker = Internal:: TypeBackTracker ;
68+ deprecated class TypeBackTracker = Internal:: TypeBackTracker ;
6569
66- module TypeBackTracker = Internal:: TypeBackTracker;
70+ deprecated module TypeBackTracker = Internal:: TypeBackTracker;
0 commit comments