Skip to content

Commit db17005

Browse files
committed
Remove workaround
1 parent 4e16388 commit db17005

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/transform-node.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)