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
3
3
private import internal.Scope
4
4
private import internal.TreeSitter
5
5
6
+ /**
7
+ * A variable scope. This is either a top-level (file), a module, a class,
8
+ * or a callable.
9
+ */
6
10
class Scope extends AstNode , TScopeType instanceof ScopeImpl {
11
+ /** Gets the outer scope, if any. */
7
12
Scope getOuterScope ( ) { result = super .getOuterScopeImpl ( ) }
8
13
14
+ /** Gets a variable declared in this scope. */
9
15
Variable getAVariable ( ) { result = super .getAVariableImpl ( ) }
10
16
17
+ /** Gets the variable named `name` declared in this scope. */
11
18
Variable getVariable ( string name ) { result = super .getVariableImpl ( name ) }
12
19
}
13
20
21
+ /** A scope in which a `self` variable exists. */
14
22
class SelfScope extends Scope , TSelfScopeType { }
You can’t perform that action at this time.
0 commit comments