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

Function parseAndGetSuper

test/utils.js:66–70  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

64}
65
66export function parseAndGetSuper(code: string): Object {
67 let parser = new Parser();
68 let program = parser.parse(`(class{ constructor() { ${code} }})`);
69 return program.body[0].expression.body.body[0].body.body[0].expression;
70}
71
72export function parseAndGetStatementInLoop(code: string, loopLabel: string): Object {
73 let parser = new Parser();

Callers 1

Super.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…