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

Function parseAndGetObjectKey

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

Source from the content-addressed store, hash-verified

58}
59
60export function parseAndGetObjectKey(code: string): Object {
61 let parser = new Parser();
62 let program = parser.parse(`({${code}: 1})`);
63 return program.body[0].expression.properties[0].key;
64}
65
66export function parseAndGetSuper(code: string): Object {
67 let parser = new Parser();

Callers 1

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