MCPcopy Create free account
hub / github.com/cst/cst / parseAndGetProgram

Function parseAndGetProgram

test/utils.js:8–11  ·  view source on GitHub ↗
(code: string, options: CSTParserOptions)

Source from the content-addressed store, hash-verified

6import Parser from '../src/Parser';
7
8export function parseAndGetProgram(code: string, options: CSTParserOptions): Program {
9 let parser = new Parser(options);
10 return parser.parse(code);
11}
12
13export function parseAndGetStatement(code: string, options: CSTParserOptions): Object {
14 let parser = new Parser(options);

Callers 15

parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
parseFunction · 0.90
Parser.jsFile · 0.90

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…