Skip to content

Commit 925b4a3

Browse files
committed
JS: improve documentation on deprecated CryptographicOperation#getInput() predicate
1 parent d4d0b91 commit 925b4a3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

javascript/ql/lib/semmle/javascript/Concepts.qll

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,13 @@ module Cryptography {
118118
private import semmle.javascript.internal.ConceptsShared::Cryptography as SC
119119

120120
class CryptographicOperation extends SC::CryptographicOperation instanceof CryptographicOperation::Range {
121-
/** DEPRECATED. This predicate has been renamed to `getAnInput`. */
121+
/**
122+
* DEPRECATED. This predicate has been renamed to `getAnInput`.
123+
*
124+
* To implement `CryptographicOperation`, please extend
125+
* `CryptographicOperation::Range` and implement `getAnInput` instead of
126+
* extending this class directly.
127+
*/
122128
deprecated final DataFlow::Node getInput() { result = this.getAnInput() }
123129
}
124130

0 commit comments

Comments
 (0)