We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fbba0e commit 439a67aCopy full SHA for 439a67a
1 file changed
csharp/ql/lib/semmle/code/csharp/dataflow/SSA.qll
@@ -569,6 +569,15 @@ module Ssa {
569
override string toString() { result = SsaImpl::ParameterDefinitionImpl.super.toString() }
570
}
571
572
+ /** An SSA definition in a closure that captures a variable. */
573
+ class SsaCapturedDefinition extends SsaImplicitEntryDefinition {
574
+ SsaCapturedDefinition() {
575
+ this.getSourceVariable().getAssignable() instanceof LocalScopeVariable
576
+ }
577
+
578
+ override string toString() { result = "SSA capture def(" + this.getSourceVariable() + ")" }
579
580
581
/**
582
* An SSA definition representing the potential definition of a variable
583
* via a call.
0 commit comments