Skip to content

Commit 85de5aa

Browse files
erik-kroghasgerf
andauthored
add deprecated modifier
Co-authored-by: Asger F <[email protected]>
1 parent 410b696 commit 85de5aa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

javascript/ql/src/semmle/javascript/Functions.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
8282
*
8383
* Gets the identifier specifying the name of this function, if any.
8484
*/
85+
deprecated
8586
VarDecl getId() { result = getIdentifier() }
8687

8788
/** Gets the identifier specifying the name of this function, if any. */

javascript/ql/src/semmle/javascript/TypeScript.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class NamespaceDefinition extends Stmt, @namespacedefinition, AST::ValueNode {
1212
*
1313
* Gets the identifier naming the namespace.
1414
*/
15+
deprecated
1516
Identifier getId() { result = getIdentifier() }
1617

1718
/**
@@ -186,6 +187,7 @@ class ImportEqualsDeclaration extends Stmt, @importequalsdeclaration {
186187
*
187188
* Gets the name under which the imported entity is imported.
188189
*/
190+
deprecated
189191
Identifier getId() { result = getIdentifier() }
190192

191193
/** Gets the name under which the imported entity is imported. */

0 commit comments

Comments
 (0)