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

Method parse

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

Source from the content-addressed store, hash-verified

79 }
80
81 parse(test, parser) {
82 const tests = typeof test.contents === "string" ? [test] : test.contents;
83
84 for (const { contents, ...options } of tests) {
85 parser(contents, options);
86 }
87 }
88
89 static getTestIdFromAllowlistLine(line) {
90 return /^- \[(.+?)\]/.exec(line)?.[1];

Callers 13

runTestMethod · 0.95
traverseFixturesFunction · 0.45
assignJSONFileFunction · 0.45
resolveIdFunction · 0.45
readPackageManagerSpecFunction · 0.45
publint.tsFile · 0.45
tsc.tsFile · 0.45
onTaskDoneFunction · 0.45
npm-ignore.tsFile · 0.45
importJSONFunction · 0.45

Calls 1

parserFunction · 0.50

Tested by

no test coverage detected