MCPcopy Index your code
hub / github.com/jsdoc/jsdoc / parse

Function parse

lib/jsdoc/src/astbuilder.js:44–56  ·  view source on GitHub ↗
(source, filename)

Source from the content-addressed store, hash-verified

42};
43
44function parse(source, filename) {
45 let ast;
46
47 try {
48 ast = babelParser.parse(source, parserOptions);
49 // console.log(JSON.stringify(ast, null, 2));
50 }
51 catch (e) {
52 logger.error('Unable to parse %s: %s', filename, e.message);
53 }
54
55 return ast;
56}
57
58// TODO: docs
59class AstBuilder {

Callers 3

buildMethod · 0.70
constructorMethod · 0.50
processFunction · 0.50

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…