We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e16388 commit db17005Copy full SHA for db17005
1 file changed
src/transform-node.ts
@@ -276,19 +276,13 @@ class Transformer extends Source {
276
node instanceof angular.KeyedRead ||
277
node instanceof angular.SafeKeyedRead
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
return this.#transformReceiverAndName(
286
node.receiver,
287
this.#transform<babel.Expression>(node.key),
288
{
289
computed: true,
290
optional: node instanceof angular.SafeKeyedRead,
291
- end: end, // ]
+ end: node.sourceSpan.end, // ]
292
hasParentParens: isInParentParens,
293
},
294
);
0 commit comments