Skip to content

Commit 3ddd98f

Browse files
committed
Kill getOuterStart
1 parent 8b564a1 commit 3ddd98f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/transform-node.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ import type {
1414
function isParenthesized(node: NGNode) {
1515
return Boolean(node.extra?.parenthesized);
1616
}
17-
function getOuterStart(node: NGNode): number {
18-
return isParenthesized(node) ? node.extra.parenStart : node.start!;
19-
}
2017

2118
function isOptionalObjectOrCallee(node: NGNode): boolean {
2219
if (node.type === 'TSNonNullExpression' && !isParenthesized(node)) {
@@ -320,7 +317,7 @@ class Transformer extends Source {
320317
value,
321318
shorthand,
322319
computed: false,
323-
start: getOuterStart(tKey),
320+
start: tKey.start,
324321
end: valueEnd,
325322
},
326323
[],

0 commit comments

Comments
 (0)