mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
simplify some code based on review
This commit is contained in:
@@ -2226,9 +2226,7 @@ class ModuleExpr extends TModuleExpr, TypeRef {
|
||||
or
|
||||
not exists(me.getName()) and result = me.getChild().(QL::SimpleId).getValue()
|
||||
or
|
||||
exists(QL::ModuleInstantiation instantiation | instantiation.getParent() = me |
|
||||
result = instantiation.getName().getChild().getValue()
|
||||
)
|
||||
result = me.getChild().(QL::ModuleInstantiation).getName().getChild().getValue()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2263,9 +2261,7 @@ class ModuleExpr extends TModuleExpr, TypeRef {
|
||||
* The result is either a `PredicateExpr` or a `TypeExpr`.
|
||||
*/
|
||||
SignatureExpr getArgument(int i) {
|
||||
exists(QL::ModuleInstantiation instantiation | instantiation.getParent() = me |
|
||||
result.toQL() = instantiation.getChild(i)
|
||||
)
|
||||
result.toQL() = me.getChild().(QL::ModuleInstantiation).getChild(i)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user