mirror of
https://github.com/github/codeql.git
synced 2026-02-19 16:33:40 +01:00
Update ql/src/codeql_ruby/ast/Scope.qll
Co-authored-by: Nick Rolfe <nickrolfe@github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user