From 2882f6d37cb59ea2644684f7164a3f604397a8d6 Mon Sep 17 00:00:00 2001 From: Taus Date: Thu, 27 May 2021 14:11:20 +0000 Subject: [PATCH] Link up `ModuleExpr` with `PredicateCall` --- ql/src/codeql_ql/ast/Ast.qll | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ql/src/codeql_ql/ast/Ast.qll b/ql/src/codeql_ql/ast/Ast.qll index 78ad68225c3..77a78695dd4 100644 --- a/ql/src/codeql_ql/ast/Ast.qll +++ b/ql/src/codeql_ql/ast/Ast.qll @@ -968,4 +968,11 @@ class ModuleExpr extends TModuleExpr, ModuleRef { final override FileOrModule getResolvedModule() { resolveModuleExpr(this, result) } final override string toString() { result = this.getName() } + + override string getAPrimaryQlClass() { result = "ModuleExpr" } + + override AstNode getParent() { + result = super.getParent() or + result.(PredicateCall).getQualifier() = this + } }