(urls: StaticURLs, typeshedPath: string)
| 19 | } |
| 20 | |
| 21 | export const initialize = async (urls: StaticURLs, typeshedPath: string) => { |
| 22 | await tryModuleLoadPyodide() |
| 23 | staticURLs = urls |
| 24 | |
| 25 | pyodide = await setupPyodide([]) |
| 26 | |
| 27 | structuredProgram = createStructuredProgramWorker(new PyodideFakeFileSystem(typeshedPath, pyodide)) |
| 28 | |
| 29 | sendMessage({ type: 'ready' }) |
| 30 | } |
| 31 | |
| 32 | const updateParseTree = async (parseTreeInfo: ParseTreeInfo): Promise<SourceFile> => { |
| 33 | const { parseTree, path, modules } = parseTreeInfo |
nothing calls this directly
no test coverage detected