mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
AST: make some classes instance of Scope
This commit is contained in:
@@ -6,7 +6,7 @@ private import internal.TreeSitter
|
||||
/**
|
||||
* The base class for classes, singleton classes, and modules.
|
||||
*/
|
||||
class ModuleBase extends BodyStmt, TModuleBase {
|
||||
class ModuleBase extends BodyStmt, Scope, TModuleBase {
|
||||
/** Gets a method defined in this module/class. */
|
||||
MethodBase getAMethod() { result = this.getAStmt() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user