Skip to content

Commit a6c7f27

Browse files
committed
C#: Deprecate Definition.getEnclosingCallable.
1 parent ed6cdfc commit a6c7f27

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • csharp/ql/lib/semmle/code/csharp/dataflow

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,12 @@ module Ssa {
404404
result.(ControlFlowElement).getControlFlowNode() = this.getControlFlowNode()
405405
}
406406

407-
/** Gets the callable to which this SSA definition belongs. */
408-
final Callable getEnclosingCallable() {
407+
/**
408+
* DEPRECATED: Use `getSourceVariable().getEnclosingCallable()` instead.
409+
*
410+
* Gets the callable to which this SSA definition belongs.
411+
*/
412+
deprecated final Callable getEnclosingCallable() {
409413
result = this.getSourceVariable().getEnclosingCallable()
410414
}
411415

0 commit comments

Comments
 (0)