@@ -196,7 +196,7 @@ class Property extends DeclarationWithGetSetAccessors, @property {
196
196
197
197
override PropertyAccess getAnAccess ( ) { result .getTarget ( ) = this }
198
198
199
- override Location getALocation ( ) { property_location ( this , result ) }
199
+ override Location getALocation ( ) { property_location ( this . getUnboundDeclaration ( ) , result ) }
200
200
201
201
override Expr getAnAssignedValue ( ) {
202
202
result = DeclarationWithGetSetAccessors .super .getAnAssignedValue ( )
@@ -328,7 +328,7 @@ class Indexer extends DeclarationWithGetSetAccessors, Parameterizable, @indexer
328
328
result = DeclarationWithGetSetAccessors .super .getAnUltimateImplementor ( )
329
329
}
330
330
331
- override Location getALocation ( ) { indexer_location ( this , result ) }
331
+ override Location getALocation ( ) { indexer_location ( this . getUnboundDeclaration ( ) , result ) }
332
332
333
333
override string toStringWithTypes ( ) {
334
334
result = this .getName ( ) + "[" + this .parameterTypesToString ( ) + "]"
@@ -408,7 +408,7 @@ class Accessor extends Callable, Modifiable, Attributable, Overridable, @callabl
408
408
409
409
override Accessor getUnboundDeclaration ( ) { accessors ( this , _, _, _, result ) }
410
410
411
- override Location getALocation ( ) { accessor_location ( this , result ) }
411
+ override Location getALocation ( ) { accessor_location ( this . getUnboundDeclaration ( ) , result ) }
412
412
413
413
override string toString ( ) { result = this .getName ( ) }
414
414
}
0 commit comments