add deprecated modifier

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Erik Krogh Kristensen
2020-08-10 10:51:21 +02:00
committed by GitHub
parent 410b696562
commit 85de5aa16b
2 changed files with 3 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
*
* Gets the identifier specifying the name of this function, if any.
*/
deprecated
VarDecl getId() { result = getIdentifier() }
/** Gets the identifier specifying the name of this function, if any. */

View File

@@ -12,6 +12,7 @@ class NamespaceDefinition extends Stmt, @namespacedefinition, AST::ValueNode {
*
* Gets the identifier naming the namespace.
*/
deprecated
Identifier getId() { result = getIdentifier() }
/**
@@ -186,6 +187,7 @@ class ImportEqualsDeclaration extends Stmt, @importequalsdeclaration {
*
* Gets the name under which the imported entity is imported.
*/
deprecated
Identifier getId() { result = getIdentifier() }
/** Gets the name under which the imported entity is imported. */