@@ -196,7 +196,7 @@ class Property extends DeclarationWithGetSetAccessors, @property {
196196
197197 override PropertyAccess getAnAccess ( ) { result .getTarget ( ) = this }
198198
199- override Location getALocation ( ) { property_location ( this , result ) }
199+ override Location getALocation ( ) { property_location ( this . getUnboundDeclaration ( ) , result ) }
200200
201201 override Expr getAnAssignedValue ( ) {
202202 result = DeclarationWithGetSetAccessors .super .getAnAssignedValue ( )
@@ -328,7 +328,7 @@ class Indexer extends DeclarationWithGetSetAccessors, Parameterizable, @indexer
328328 result = DeclarationWithGetSetAccessors .super .getAnUltimateImplementor ( )
329329 }
330330
331- override Location getALocation ( ) { indexer_location ( this , result ) }
331+ override Location getALocation ( ) { indexer_location ( this . getUnboundDeclaration ( ) , result ) }
332332
333333 override string toStringWithTypes ( ) {
334334 result = this .getName ( ) + "[" + this .parameterTypesToString ( ) + "]"
@@ -408,7 +408,7 @@ class Accessor extends Callable, Modifiable, Attributable, Overridable, @callabl
408408
409409 override Accessor getUnboundDeclaration ( ) { accessors ( this , _, _, _, result ) }
410410
411- override Location getALocation ( ) { accessor_location ( this , result ) }
411+ override Location getALocation ( ) { accessor_location ( this . getUnboundDeclaration ( ) , result ) }
412412
413413 override string toString ( ) { result = this .getName ( ) }
414414}
0 commit comments