MCPcopy Create free account
hub / github.com/babel/babel / parse

Method parse

scripts/parser-tests/utils/parser-test-runner.js:80–86  ·  view source on GitHub ↗
(test, parser)

Source from the content-addressed store, hash-verified

78 }
79
80 parse(test, parser) {
81 const tests = typeof test.contents === "string" ? [test] : test.contents;
82
83 for (const { contents, ...options } of tests) {
84 parser(contents, options);
85 }
86 }
87
88 async getAllowlist() {
89 const contents = await fs.readFile(this.allowlist, "utf-8");

Callers 10

runTestMethod · 0.95
traverseFixturesFunction · 0.45
resolveIdFunction · 0.45
assignJSONFileFunction · 0.45
tsc.jsFile · 0.45
onTaskDoneFunction · 0.45
npm-ignore.jsFile · 0.45
importJSONFunction · 0.45
loadTestsFunction · 0.45

Calls 1

parserFunction · 0.50

Tested by

no test coverage detected