File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -276,19 +276,13 @@ class Transformer extends Source {
276
276
node instanceof angular . KeyedRead ||
277
277
node instanceof angular . SafeKeyedRead
278
278
) {
279
- // TODO: Use `node.sourceSpan.end` directly
280
- // https://github.com/angular/angular/issues/62617
281
- const end =
282
- this . text . charAt ( node . sourceSpan . end - 1 ) === '='
283
- ? this . getCharacterLastIndex ( / \S / , node . sourceSpan . end - 2 ) + 1
284
- : node . sourceSpan . end ;
285
279
return this . #transformReceiverAndName(
286
280
node . receiver ,
287
281
this . #transform< babel . Expression > ( node . key ) ,
288
282
{
289
283
computed : true ,
290
284
optional : node instanceof angular . SafeKeyedRead ,
291
- end : end , // ]
285
+ end : node . sourceSpan . end , // ]
292
286
hasParentParens : isInParentParens ,
293
287
} ,
294
288
) ;
You can’t perform that action at this time.
0 commit comments