Skip to content

Commit cd3192e

Browse files
committed
Fix ordering for definitionOf
Actually select the lexicographically least location, not the greatest.
1 parent 8901eba commit cd3192e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/src/queries/analysis/Definitions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ string constantQualifiedName(ConstantWriteAccess w) {
101101
*/
102102
ConstantWriteAccess definitionOf(ConstantReadAccess r) {
103103
result =
104-
max(ConstantWriteAccess w |
104+
min(ConstantWriteAccess w |
105105
constantQualifiedName(w) = resolveConstant(r)
106106
|
107107
w order by w.getLocation().toString()

0 commit comments

Comments
 (0)