MCPcopy Index your code
hub / github.com/prettier/prettier / normalizePrinter

Function normalizePrinter

src/main/parser-and-printer.js:175–181  ·  view source on GitHub ↗
(printer)

Source from the content-addressed store, hash-verified

173
174const normalizedPrinters = new WeakMap();
175function normalizePrinter(printer) {
176 return getOrInsertComputed(
177 normalizedPrinters,
178 printer,
179 normalizePrinterWithoutCache,
180 );
181}
182
183const PRINTER_FRONT_MATTER_SUPPORT_FEATURES = ["clean", "embed", "print"];
184const PRINTER_FRONT_MATTER_SUPPORT_OFF = Object.fromEntries(

Callers 2

massage-ast.jsFile · 0.90
initPrinterFunction · 0.85

Calls 1

getOrInsertComputedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…