Skip to content

Commit 3fd2b9a

Browse files
committed
Ruby: add a comment
This would have saved me some time
1 parent ee7970a commit 3fd2b9a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ private import internal.ControlFlowGraphImpl
77
private import internal.Splitting
88
private import internal.Completion
99

10-
/** An AST node with an associated control-flow graph. */
10+
/**
11+
* An AST node with an associated control-flow graph.
12+
*
13+
* Top-levels, methods, blocks, and lambdas are all CFG scopes.
14+
*
15+
* Note that module declarations are not themselves CFG scopes, as they are part of
16+
* the CFG of the enclosing top-level or callable.
17+
*/
1118
class CfgScope extends Scope instanceof CfgScopeImpl {
1219
/** Gets the CFG scope that this scope is nested under, if any. */
1320
final CfgScope getOuterCfgScope() {

0 commit comments

Comments
 (0)