Skip to content

Commit 6a89c09

Browse files
committed
C#: Add overlay[global] annotation to getALocation to ensure that old locations are discarded.
1 parent 8847986 commit 6a89c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/lib/semmle/code/csharp/Element.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class Element extends @element {
6666
final Location getLocation() { result = bestLocation(this) }
6767

6868
/** Gets a location of this element, including sources and assemblies. */
69+
overlay[global]
6970
Location getALocation() { none() }
7071

7172
/** Gets the parent of this element, if any. */

0 commit comments

Comments
 (0)