Skip to content

Commit 3525301

Browse files
committed
C#: Deprecate Definition.getEnclosingCallable.
1 parent aac3071 commit 3525301

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
@@ -414,8 +414,12 @@ module Ssa {
414414
result.(ControlFlowElement).getControlFlowNode() = this.getControlFlowNode()
415415
}
416416

417-
/** Gets the callable to which this SSA definition belongs. */
418-
final Callable getEnclosingCallable() {
417+
/**
418+
* DEPRECATED: Use `getSourceVariable().getEnclosingCallable()` instead.
419+
*
420+
* Gets the callable to which this SSA definition belongs.
421+
*/
422+
deprecated final Callable getEnclosingCallable() {
419423
result = this.getSourceVariable().getEnclosingCallable()
420424
}
421425

0 commit comments

Comments
 (0)