Skip to content

Commit fecbfa6

Browse files
committed
Python: add deprecation
1 parent 3a669a8 commit fecbfa6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

python/ql/lib/semmle/python/ApiGraphs.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ module API {
149149
*/
150150
DataFlow::LocalSourceNode asSource() { Impl::use(this, result) }
151151

152+
/** DEPRECATED. This predicate has been renamed to `getAValueReachableFromSource()`. */
153+
deprecated DataFlow::Node getAUse() { result = this.getAValueReachableFromSource() }
154+
155+
/** DEPRECATED. This predicate has been renamed to `asSource()`. */
156+
deprecated DataFlow::LocalSourceNode getAnImmediateUse() { result = this.asSource() }
157+
158+
/** DEPRECATED. This predicate has been renamed to `asSink()`. */
159+
deprecated DataFlow::Node getARhs() { result = this.asSink() }
160+
161+
/** DEPRECATED. This predicate has been renamed to `getAValueReachingSink()`. */
162+
deprecated DataFlow::Node getAValueReachingRhs() { result = this.getAValueReachingSink() }
163+
152164
/**
153165
* Gets a call to the function represented by this API component.
154166
*/

0 commit comments

Comments
 (0)