Skip to content

Commit 25e6f6b

Browse files
committed
Python: add qldoc
1 parent a68c928 commit 25e6f6b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ module VariableCapture {
423423

424424
Location getLocation() { result = f.getLocation() }
425425

426+
/** Gets a scope that captures this variable. */
426427
Scope getACapturingScope() {
427428
result = this.getAnAccess().getScope().getScope*() and
428429
result.getScope+() = f

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ class CaptureNode extends Node, TCaptureNode {
488488

489489
CaptureNode() { this = TCaptureNode(cn) }
490490

491+
/** Gets the `SynthesizedCaptureNode` that this node represents. */
491492
VariableCapture::Flow::SynthesizedCaptureNode getSynthesizedCaptureNode() { result = cn }
492493

493494
override DataFlowCallable getEnclosingCallable() {

0 commit comments

Comments
 (0)