mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
C#: Deprecate Ssa::ImplicitEntryDefinition.
This commit is contained in:
@@ -529,11 +529,13 @@ module Ssa {
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED: Use `SsaParameterInit` or `SsaImplicitEntryDefinition` instead.
|
||||
*
|
||||
* An SSA definition representing the implicit initialization of a variable
|
||||
* at the beginning of a callable. Either a local scope variable captured by
|
||||
* the callable or a field or property accessed inside the callable.
|
||||
*/
|
||||
class ImplicitEntryDefinition extends ImplicitDefinition {
|
||||
deprecated class ImplicitEntryDefinition extends ImplicitDefinition {
|
||||
ImplicitEntryDefinition() {
|
||||
exists(BasicBlock bb, SourceVariable v |
|
||||
this.definesAt(v, bb, -1) and
|
||||
|
||||
@@ -1430,7 +1430,7 @@ private module ParameterNodes {
|
||||
}
|
||||
|
||||
/** An implicit entry definition for a captured variable. */
|
||||
class SsaCapturedEntryDefinition extends Ssa::ImplicitEntryDefinition {
|
||||
deprecated class SsaCapturedEntryDefinition extends Ssa::ImplicitEntryDefinition {
|
||||
private LocalScopeVariable v;
|
||||
|
||||
SsaCapturedEntryDefinition() { this.getSourceVariable().getAssignable() = v }
|
||||
@@ -2011,9 +2011,6 @@ private class FieldOrPropertyRead extends FieldOrPropertyAccess, AssignableRead
|
||||
exists(SsaDefinition def, Ssa::ImplicitDefinition idef |
|
||||
def.getARead() = this and
|
||||
idef = def.getAnUltimateDefinition()
|
||||
|
|
||||
idef instanceof Ssa::ImplicitEntryDefinition or
|
||||
idef instanceof Ssa::ImplicitCallDefinition
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user