Skip to content

Commit f9c9580

Browse files
committed
C#: Use the location of the unbound declaration for constructed generics.
1 parent 17752ea commit f9c9580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ class Method extends Callable, Virtualizable, Attributable, @method {
265265
result = Virtualizable.super.getAnUltimateImplementor()
266266
}
267267

268-
override Location getALocation() { method_location(this, result) }
268+
override Location getALocation() { method_location(this.getUnboundDeclaration(), result) }
269269

270270
/** Holds if this method is an extension method. */
271271
predicate isExtensionMethod() { this.getParameter(0).hasExtensionMethodModifier() }

0 commit comments

Comments
 (0)