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 {
276276 node instanceof angular . KeyedRead ||
277277 node instanceof angular . SafeKeyedRead
278278 ) {
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 ;
285279 return this . #transformReceiverAndName(
286280 node . receiver ,
287281 this . #transform< babel . Expression > ( node . key ) ,
288282 {
289283 computed : true ,
290284 optional : node instanceof angular . SafeKeyedRead ,
291- end : end , // ]
285+ end : node . sourceSpan . end , // ]
292286 hasParentParens : isInParentParens ,
293287 } ,
294288 ) ;
You can’t perform that action at this time.
0 commit comments