mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Ruby: Add missing QL docs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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(_) }
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user