We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getOuterStart
1 parent 8b564a1 commit 3ddd98fCopy full SHA for 3ddd98f
src/transform-node.ts
@@ -14,9 +14,6 @@ import type {
14
function isParenthesized(node: NGNode) {
15
return Boolean(node.extra?.parenthesized);
16
}
17
-function getOuterStart(node: NGNode): number {
18
- return isParenthesized(node) ? node.extra.parenStart : node.start!;
19
-}
20
21
function isOptionalObjectOrCallee(node: NGNode): boolean {
22
if (node.type === 'TSNonNullExpression' && !isParenthesized(node)) {
@@ -320,7 +317,7 @@ class Transformer extends Source {
320
317
value,
321
318
shorthand,
322
319
computed: false,
323
- start: getOuterStart(tKey),
+ start: tKey.start,
324
end: valueEnd,
325
},
326
[],
0 commit comments