Skip to content

Commit d0f1bf5

Browse files
committed
C#: Deprecate unused SSA predicate getElement.
1 parent eb93e8e commit d0f1bf5

File tree

3 files changed

+3
-302
lines changed

3 files changed

+3
-302
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/SSA.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,13 @@ module Ssa {
422422
}
423423

424424
/**
425+
* DEPRECATED.
426+
*
425427
* Gets the syntax element associated with this SSA definition, if any.
426428
* This is either an expression, for example `x = 0`, a parameter, or a
427429
* callable. Phi nodes have no associated syntax element.
428430
*/
429-
Element getElement() { result = this.getControlFlowNode().getAstNode() }
431+
deprecated Element getElement() { result = this.getControlFlowNode().getAstNode() }
430432

431433
/** Gets the callable to which this SSA definition belongs. */
432434
final Callable getEnclosingCallable() {

0 commit comments

Comments
 (0)