MCPcopy Create free account
hub / github.com/Snapchat/Valdi / dumpSymbolsWithComments

Method dumpSymbolsWithComments

compiler/companion/src/Workspace.ts:422–438  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

420 }
421
422 async dumpSymbolsWithComments(fileName: string): Promise<DumpedSymbolsWithComments> {
423 const openedFile = this.getOpenedFile(fileName);
424
425 const references: AST.TypeReference[] = [];
426
427 const astReferences: AST.TypeReferences = {
428 typeChecker: openedFile.workspaceProject.typeChecker,
429 references: references,
430 };
431
432 const dumpedSymbols = dumpRootNodes(openedFile.sourceFile, astReferences);
433
434 return {
435 dumpedSymbols,
436 references,
437 };
438 }
439
440 async getInterfaceAST(fileName: string, position: number): Promise<DumpedInterface> {
441 const openedFile = this.getOpenedFile(fileName);

Callers

nothing calls this directly

Calls 2

getOpenedFileMethod · 0.95
dumpRootNodesFunction · 0.90

Tested by

no test coverage detected