mirror of
https://github.com/github/codeql.git
synced 2026-02-08 11:11:06 +01:00
use moduleExpr in Type
This commit is contained in:
committed by
GitHub
parent
01d4b8a41c
commit
c4c0a63104
@@ -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() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user