MCPcopy
hub / github.com/jsdoc/jsdoc / parse

Function parse

test/specs/jsdoc/src/astnode.js:8–10  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

6 const Syntax = require('jsdoc/src/syntax').Syntax;
7
8 function parse(str) {
9 return babelParser.parse(str, astBuilder.parserOptions).program.body[0];
10 }
11
12 // create the AST nodes we'll be testing
13 const arrayExpression = parse('[,]').expression;

Callers 2

astnode.jsFile · 0.70
postfixNodeToValueFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…