MCPcopy
hub / github.com/prettier/prettier / initParser

Function initParser

src/main/parser-and-printer.js:64–69  ·  view source on GitHub ↗
(plugin, parserName)

Source from the content-addressed store, hash-verified

62}
63
64function initParser(plugin, parserName) {
65 const parserOrParserInitFunction = plugin.parsers[parserName];
66 return typeof parserOrParserInitFunction === "function"
67 ? parserOrParserInitFunction()
68 : parserOrParserInitFunction;
69}
70
71async function initPrinter(plugin, astFormat) {
72 const printerOrPrinterInitFunction = plugin.printers[astFormat];

Callers 2

normalizeFormatOptionsFunction · 0.90
resolveParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…