Address comments

This commit is contained in:
Arthur Baars
2021-04-08 15:11:57 +02:00
parent 039e8b36a5
commit ceb2eb21d8
2 changed files with 2 additions and 4 deletions

View File

@@ -8,8 +8,6 @@ private import internal.TreeSitter
* A representation of a run-time `module` or `class` value.
*/
class Module extends TModule {
Module() { this = TResolved(_) or this = TUnresolved(_) }
/** Get a declaration of this module, if any. */
ModuleBase getADeclaration() { result.getModule() = this }

View File

@@ -598,7 +598,7 @@ module Trees {
private class CharacterTree extends LeafTree, CharacterLiteral { }
private class ClassTree extends BodyStmtPreOrderTree, ClassDeclaration {
private class ClassDeclarationTree extends BodyStmtPreOrderTree, ClassDeclaration {
/** Gets the `i`th child in the body of this block. */
final override AstNode getBodyChild(int i, boolean rescuable) {
result = this.getScopeExpr() and i = 0 and rescuable = false
@@ -934,7 +934,7 @@ module Trees {
}
}
private class ModuleTree extends BodyStmtPreOrderTree, ModuleDeclaration {
private class ModuleDeclarationTree extends BodyStmtPreOrderTree, ModuleDeclaration {
/** Gets the `i`th child in the body of this block. */
final override AstNode getBodyChild(int i, boolean rescuable) {
result = this.getScopeExpr() and i = 0 and rescuable = false