MCPcopy Create free account
hub / github.com/SplootCode/splootcode / parseJs

Function parseJs

packages/language-web/code_io/import_js.ts:240–244  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

238}
239
240export function parseJs(source: string): SplootNode {
241 const ast = recast.parse(source, { parser: babylon })
242 const splootNode = createNodeFromAst(null, ast)
243 return splootNode
244}

Callers 1

createScriptElementFunction · 0.90

Calls 1

createNodeFromAstFunction · 0.85

Tested by

no test coverage detected