Ruby: Add missing QL docs

This commit is contained in:
Tom Hvitved
2022-09-12 13:43:32 +02:00
parent 007ab2b7ce
commit b477a4cc81
3 changed files with 6 additions and 0 deletions

View File

@@ -5,6 +5,10 @@
import codeql.Locations
/**
* Provides classes for performing local (intra-procedural) and
* global (inter-procedural) data flow analyses.
*/
module DataFlow {
import codeql.ruby.dataflow.internal.DataFlowImpl
}

View File

@@ -37,6 +37,7 @@ class ErbTemplate extends TTemplate, ErbAstNode {
final override string getAPrimaryQlClass() { result = "ErbTemplate" }
/** Gets a child node, if any. */
ErbAstNode getAChildNode() { toGenerated(result) = g.getChild(_) }
}

View File

@@ -207,6 +207,7 @@ class BodyStmt extends StmtSequence, TBodyStmt {
result = unique(Ensure s | toGenerated(s) = getBodyStmtChild(this, _))
}
/** Holds if this block has an `ensure` block. */
final predicate hasEnsure() { exists(this.getEnsure()) }
override AstNode getAChild(string pred) {