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

Function resolveParser

src/main/parser-and-printer.js:59–62  ·  view source on GitHub ↗
({ plugins, parser })

Source from the content-addressed store, hash-verified

57}
58
59function resolveParser({ plugins, parser }) {
60 const plugin = getParserPluginByParserName(plugins, parser);
61 return initParser(plugin, parser);
62}
63
64function initParser(plugin, parserName) {
65 const parserOrParserInitFunction = plugin.parsers[parserName];

Callers 4

hasPragmaFunction · 0.90
hasIgnorePragmaFunction · 0.90
parseFunction · 0.90
resolve-parser.jsFile · 0.90

Calls 2

initParserFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…