mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
Address comments
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user