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