Skip to content

Commit 0600078

Browse files
committed
Ruby: Document PairCfgNode::getKey/getValue
1 parent 90a9688 commit 0600078

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ruby/ql/lib/codeql/ruby/controlflow/CfgNodes.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,14 @@ module ExprNodes {
440440

441441
final override Pair getExpr() { result = ExprCfgNode.super.getExpr() }
442442

443+
/**
444+
* Gets the key expression of this pair.
445+
*/
443446
final ExprCfgNode getKey() { e.hasCfgChild(e.getKey(), this, result) }
444447

448+
/**
449+
* Gets the value expression of this pair.
450+
*/
445451
final ExprCfgNode getValue() { e.hasCfgChild(e.getValue(), this, result) }
446452
}
447453

0 commit comments

Comments
 (0)