Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 521a00a

Browse files
committedJan 25, 2023
Restore previous formatting
1 parent bc7ad5d commit 521a00a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/compiler/checker.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -6123,9 +6123,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
61236123
function symbolToStringWorker(writer: EmitTextWriter) {
61246124
const entity = builder(symbol, meaning!, enclosingDeclaration, nodeFlags)!; // TODO: GH#18217
61256125
// add neverAsciiEscape for GH#39027
6126-
const printer = enclosingDeclaration?.kind === SyntaxKind.SourceFile
6127-
? createOrReusePrinter({ removeComments: true, neverAsciiEscape: true })
6128-
: createOrReusePrinter({ removeComments: true });
6126+
const printer = enclosingDeclaration?.kind === SyntaxKind.SourceFile ? createOrReusePrinter({ removeComments: true, neverAsciiEscape: true }) : createOrReusePrinter({ removeComments: true });
61296127
const sourceFile = enclosingDeclaration && getSourceFileOfNode(enclosingDeclaration);
61306128
printer.writeNode(EmitHint.Unspecified, entity, /*sourceFile*/ sourceFile, writer);
61316129
return writer;

0 commit comments

Comments
 (0)
Please sign in to comment.