File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1088,7 +1088,6 @@ import {
1088
1088
UnionType,
1089
1089
UnionTypeNode,
1090
1090
UniqueESSymbolType,
1091
- unwrapParenthesizedType,
1092
1091
usingSingleLineStringWriter,
1093
1092
VariableDeclaration,
1094
1093
VariableDeclarationList,
@@ -8603,7 +8602,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
8603
8602
}
8604
8603
8605
8604
function tryVisitSimpleTypeNode(node: TypeNode): TypeNode | undefined {
8606
- const innerNode = unwrapParenthesizedType (node);
8605
+ const innerNode = skipTypeParentheses (node);
8607
8606
switch (innerNode.kind) {
8608
8607
case SyntaxKind.TypeReference:
8609
8608
return tryVisitTypeReference(innerNode as TypeReferenceNode);
Original file line number Diff line number Diff line change @@ -11644,14 +11644,6 @@ export function unwrapParenthesizedExpression(o: Expression) {
11644
11644
return o ;
11645
11645
}
11646
11646
11647
- /** @internal */
11648
- export function unwrapParenthesizedType ( o : TypeNode ) {
11649
- while ( o . kind === SyntaxKind . ParenthesizedType ) {
11650
- o = ( o as ParenthesizedTypeNode ) . type ;
11651
- }
11652
- return o ;
11653
- }
11654
-
11655
11647
/** @internal */
11656
11648
export function hasInferredType ( node : Node ) : node is HasInferredType {
11657
11649
Debug . type < HasInferredType > ( node ) ;
You can’t perform that action at this time.
0 commit comments