Skip to content

Commit 80d5e27

Browse files
committed
C#: Deprecate Ssa::ImplicitEntryDefinition.
1 parent 65f647a commit 80d5e27

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,13 @@ module Ssa {
529529
}
530530

531531
/**
532+
* DEPRECATED: Use `SsaParameterInit` or `SsaImplicitEntryDefinition` instead.
533+
*
532534
* An SSA definition representing the implicit initialization of a variable
533535
* at the beginning of a callable. Either a local scope variable captured by
534536
* the callable or a field or property accessed inside the callable.
535537
*/
536-
class ImplicitEntryDefinition extends ImplicitDefinition {
538+
deprecated class ImplicitEntryDefinition extends ImplicitDefinition {
537539
ImplicitEntryDefinition() {
538540
exists(BasicBlock bb, SourceVariable v |
539541
this.definesAt(v, bb, -1) and

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ private module ParameterNodes {
14301430
}
14311431

14321432
/** An implicit entry definition for a captured variable. */
1433-
class SsaCapturedEntryDefinition extends Ssa::ImplicitEntryDefinition {
1433+
deprecated class SsaCapturedEntryDefinition extends Ssa::ImplicitEntryDefinition {
14341434
private LocalScopeVariable v;
14351435

14361436
SsaCapturedEntryDefinition() { this.getSourceVariable().getAssignable() = v }
@@ -2011,9 +2011,6 @@ private class FieldOrPropertyRead extends FieldOrPropertyAccess, AssignableRead
20112011
exists(SsaDefinition def, Ssa::ImplicitDefinition idef |
20122012
def.getARead() = this and
20132013
idef = def.getAnUltimateDefinition()
2014-
|
2015-
idef instanceof Ssa::ImplicitEntryDefinition or
2016-
idef instanceof Ssa::ImplicitCallDefinition
20172014
)
20182015
}
20192016
}

0 commit comments

Comments
 (0)