mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Minor refactor of constantQualifiedName
This commit is contained in:
@@ -85,8 +85,8 @@ newtype DefLoc =
|
||||
*/
|
||||
string constantQualifiedName(ConstantWriteAccess w) {
|
||||
/* get the qualified name for the parent module, then append w */
|
||||
exists(ConstantWriteAccess parent |
|
||||
parent = w.getEnclosingModule() and result = constantQualifiedName(parent) + "::" + w.getName()
|
||||
exists(ConstantWriteAccess parent | parent = w.getEnclosingModule() |
|
||||
result = constantQualifiedName(parent) + "::" + w.getName()
|
||||
)
|
||||
or
|
||||
/* base case - there's no parent module */
|
||||
|
||||
Reference in New Issue
Block a user