File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
ruby/ql/lib/codeql/ruby/ast Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,20 @@ private import internal.AST
33private import internal.Scope
44private import internal.TreeSitter
55
6+ /**
7+ * A variable scope. This is either a top-level (file), a module, a class,
8+ * or a callable.
9+ */
610class Scope extends AstNode , TScopeType instanceof ScopeImpl {
11+ /** Gets the outer scope, if any. */
712 Scope getOuterScope ( ) { result = super .getOuterScopeImpl ( ) }
813
14+ /** Gets a variable declared in this scope. */
915 Variable getAVariable ( ) { result = super .getAVariableImpl ( ) }
1016
17+ /** Gets the variable named `name` declared in this scope. */
1118 Variable getVariable ( string name ) { result = super .getVariableImpl ( name ) }
1219}
1320
21+ /** A scope in which a `self` variable exists. */
1422class SelfScope extends Scope , TSelfScopeType { }
You can’t perform that action at this time.
0 commit comments