Skip to content

Commit b477a4c

Browse files
committed
Ruby: Add missing QL docs
1 parent 007ab2b commit b477a4c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ruby/ql/lib/codeql/ruby/DataFlow.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
import codeql.Locations
77

8+
/**
9+
* Provides classes for performing local (intra-procedural) and
10+
* global (inter-procedural) data flow analyses.
11+
*/
812
module DataFlow {
913
import codeql.ruby.dataflow.internal.DataFlowImpl
1014
}

ruby/ql/lib/codeql/ruby/ast/Erb.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ErbTemplate extends TTemplate, ErbAstNode {
3737

3838
final override string getAPrimaryQlClass() { result = "ErbTemplate" }
3939

40+
/** Gets a child node, if any. */
4041
ErbAstNode getAChildNode() { toGenerated(result) = g.getChild(_) }
4142
}
4243

ruby/ql/lib/codeql/ruby/ast/Expr.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ class BodyStmt extends StmtSequence, TBodyStmt {
207207
result = unique(Ensure s | toGenerated(s) = getBodyStmtChild(this, _))
208208
}
209209

210+
/** Holds if this block has an `ensure` block. */
210211
final predicate hasEnsure() { exists(this.getEnsure()) }
211212

212213
override AstNode getAChild(string pred) {

0 commit comments

Comments
 (0)