mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Fix ordering for definitionOf
Actually select the lexicographically least location, not the greatest.
This commit is contained in:
@@ -101,7 +101,7 @@ string constantQualifiedName(ConstantWriteAccess w) {
|
||||
*/
|
||||
ConstantWriteAccess definitionOf(ConstantReadAccess r) {
|
||||
result =
|
||||
max(ConstantWriteAccess w |
|
||||
min(ConstantWriteAccess w |
|
||||
constantQualifiedName(w) = resolveConstant(r)
|
||||
|
|
||||
w order by w.getLocation().toString()
|
||||
|
||||
Reference in New Issue
Block a user