mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Export internal functions needed by dtsBundler.mjs (#52941)
This commit is contained in:
@@ -27,7 +27,6 @@ import {
|
||||
last,
|
||||
map,
|
||||
Node,
|
||||
nullTransformationContext,
|
||||
ParameterDeclaration,
|
||||
PropertyDeclaration,
|
||||
PropertySignature,
|
||||
@@ -144,7 +143,7 @@ function transformJSDocType(node: Node): Node {
|
||||
case SyntaxKind.JSDocTypeLiteral:
|
||||
return transformJSDocTypeLiteral(node as JSDocTypeLiteral);
|
||||
default:
|
||||
const visited = visitEachChild(node, transformJSDocType, nullTransformationContext);
|
||||
const visited = visitEachChild(node, transformJSDocType, /*context*/ undefined);
|
||||
setEmitFlags(visited, EmitFlags.SingleLine);
|
||||
return visited;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,6 @@ import {
|
||||
NodeArray,
|
||||
NodeBuilderFlags,
|
||||
NodeFlags,
|
||||
nullTransformationContext,
|
||||
ObjectFlags,
|
||||
ObjectLiteralExpression,
|
||||
ObjectType,
|
||||
@@ -913,7 +912,7 @@ export function tryGetAutoImportableReferenceFromTypeNode(importTypeNode: TypeNo
|
||||
const typeArguments = visitNodes(node.typeArguments, visit, isTypeNode);
|
||||
return factory.createTypeReferenceNode(qualifier, typeArguments);
|
||||
}
|
||||
return visitEachChild(node, visit, nullTransformationContext);
|
||||
return visitEachChild(node, visit, /*context*/ undefined);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user