Skip to content

Commit f794fbf

Browse files
authored
Mark new createPrinter vars as pure to remove new code from typingsInstaller (#52438)
1 parent 5a419a2 commit f794fbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compiler/emitter.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1344,16 +1344,16 @@ const enum PipelinePhase {
13441344
}
13451345

13461346
/** @internal */
1347-
export const createPrinterWithDefaults = memoize(() => createPrinter({}));
1347+
export const createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({}));
13481348

13491349
/** @internal */
1350-
export const createPrinterWithRemoveComments = memoize(() => createPrinter({ removeComments: true }));
1350+
export const createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true }));
13511351

13521352
/** @internal */
1353-
export const createPrinterWithRemoveCommentsNeverAsciiEscape = memoize(() => createPrinter({ removeComments: true, neverAsciiEscape: true }));
1353+
export const createPrinterWithRemoveCommentsNeverAsciiEscape = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, neverAsciiEscape: true }));
13541354

13551355
/** @internal */
1356-
export const createPrinterWithRemoveCommentsOmitTrailingSemicolon = memoize(() => createPrinter({ removeComments: true, omitTrailingSemicolon: true }));
1356+
export const createPrinterWithRemoveCommentsOmitTrailingSemicolon = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, omitTrailingSemicolon: true }));
13571357

13581358
export function createPrinter(printerOptions: PrinterOptions = {}, handlers: PrintHandlers = {}): Printer {
13591359
const {

0 commit comments

Comments
 (0)