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

Method parse

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

Source from the content-addressed store, hash-verified

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

Callers 14

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

Calls 1

parserFunction · 0.50

Tested by

no test coverage detected