Skip to content

Commit d15b90e

Browse files
committed
Ruby: Add deprecation
1 parent 9838e2e commit d15b90e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ruby/ql/lib/codeql/ruby/ApiGraphs.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@ module API {
123123
*/
124124
DataFlow::Node getAValueReachingSink() { result = Impl::trackDefNode(this.asSink()) }
125125

126+
/** DEPRECATED. This predicate has been renamed to `getAValueReachableFromSource()`. */
127+
deprecated DataFlow::Node getAUse() { result = this.getAValueReachableFromSource() }
128+
129+
/** DEPRECATED. This predicate has been renamed to `asSource()`. */
130+
deprecated DataFlow::LocalSourceNode getAnImmediateUse() { result = this.asSource() }
131+
132+
/** DEPRECATED. This predicate has been renamed to `asSink()`. */
133+
deprecated DataFlow::Node getARhs() { result = this.asSink() }
134+
135+
/** DEPRECATED. This predicate has been renamed to `getAValueReachingSink()`. */
136+
deprecated DataFlow::Node getAValueReachingRhs() { result = this.getAValueReachingSink() }
137+
126138
/**
127139
* Gets a call to a method on the receiver represented by this API component.
128140
*/

0 commit comments

Comments
 (0)