Update ql/src/codeql_ruby/ast/Scope.qll

Co-authored-by: Nick Rolfe <nickrolfe@github.com>
This commit is contained in:
Arthur Baars
2021-03-09 18:57:24 +01:00
committed by GitHub
parent 600d9c66ae
commit 6a284378d6

View File

@@ -16,7 +16,7 @@ class Scope extends AstNode, Scope::ScopeType {
/** Gets a variable that is declared in this scope. */
final Variable getAVariable() { result.getDeclaringScope() = this }
/** Gets the variable with the given name that is declared in this scope. */
/** Gets the variable declared in this scope with the given name, if any. */
final Variable getVariable(string name) {
result = this.getAVariable() and
result.getName() = name