From c4c0a6310413801e7ea0a71ad604941a14bf8d2e Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Thu, 27 May 2021 09:31:47 +0000 Subject: [PATCH] use moduleExpr in Type --- ql/src/codeql_ql/ast/Ast.qll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ql/src/codeql_ql/ast/Ast.qll b/ql/src/codeql_ql/ast/Ast.qll index 96f17f2427a..cf5cc90f5db 100644 --- a/ql/src/codeql_ql/ast/Ast.qll +++ b/ql/src/codeql_ql/ast/Ast.qll @@ -169,10 +169,10 @@ class Type extends TType, AstNode { predicate isDBType() { type.getChild() instanceof Generated::Dbtype } /** - * Gets the module name of the type, if it exists. + * Gets the module of the type, if it exists. * E.g. `DataFlow` in `DataFlow::Node`. */ - string getModuleName() { result = type.getChild().(Generated::ModuleExpr).getName().getValue() } + ModuleExpr getModule() { toGenerated(result) = type.getChild() } } /**