Skip to content

Commit d5bb9b0

Browse files
committed
JS: Add deprecation comment to qldoc
1 parent 57b384b commit d5bb9b0

File tree

2 files changed

+231
-0
lines changed

2 files changed

+231
-0
lines changed

javascript/ql/lib/semmle/javascript/Expr.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ class Expr extends @expr, ExprOrStmt, ExprOrType, AST::ValueNode {
171171
predicate mayReferToParameter(Parameter p) { DataFlow::parameterNode(p).flowsToExpr(this) }
172172

173173
/**
174+
* DEPRECATED. Use `getTypeBinding()` instead.
175+
*
174176
* Gets the static type of this expression, as determined by the TypeScript type system.
175177
*
176178
* Has no result if the expression is in a JavaScript file or in a TypeScript
@@ -988,6 +990,8 @@ class InvokeExpr extends @invokeexpr, Expr {
988990
}
989991

990992
/**
993+
* DEPRECATED. No longer supported.
994+
*
991995
* Gets the call signature of the invoked function, as determined by the TypeScript
992996
* type system, with overloading resolved and type parameters substituted.
993997
*
@@ -1004,6 +1008,8 @@ class InvokeExpr extends @invokeexpr, Expr {
10041008
int getResolvedOverloadIndex() { invoke_expr_overload_index(this, result) }
10051009

10061010
/**
1011+
* DEPRECATED. No longer directly supported, but `getResolvedCallee()` may be usable as an alternative.
1012+
*
10071013
* Gets the canonical name of the static call target, as determined by the TypeScript type system.
10081014
*
10091015
* This predicate is only populated for files extracted with full TypeScript extraction.

0 commit comments

Comments
 (0)