@samchon/graph 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +129 -0
  3. package/lib/AsyncSamchonGraphSource.d.ts +2 -0
  4. package/lib/AsyncSamchonGraphSource.js +3 -0
  5. package/lib/AsyncSamchonGraphSource.js.map +1 -0
  6. package/lib/SamchonGraphApplication.d.ts +10 -0
  7. package/lib/SamchonGraphApplication.js +64 -0
  8. package/lib/SamchonGraphApplication.js.map +1 -0
  9. package/lib/SamchonGraphSource.d.ts +2 -0
  10. package/lib/SamchonGraphSource.js +3 -0
  11. package/lib/SamchonGraphSource.js.map +1 -0
  12. package/lib/application.d.ts +3 -0
  13. package/lib/application.js +20 -0
  14. package/lib/application.js.map +1 -0
  15. package/lib/bin.d.ts +2 -0
  16. package/lib/bin.js +8 -0
  17. package/lib/bin.js.map +1 -0
  18. package/lib/index.d.ts +13 -0
  19. package/lib/index.js +30 -0
  20. package/lib/index.js.map +1 -0
  21. package/lib/indexer/IBuildGraphOptions.d.ts +41 -0
  22. package/lib/indexer/IBuildGraphOptions.js +3 -0
  23. package/lib/indexer/IBuildGraphOptions.js.map +1 -0
  24. package/lib/indexer/IIndexerResult.d.ts +5 -0
  25. package/lib/indexer/IIndexerResult.js +3 -0
  26. package/lib/indexer/IIndexerResult.js.map +1 -0
  27. package/lib/indexer/ILanguageSpec.d.ts +10 -0
  28. package/lib/indexer/ILanguageSpec.js +3 -0
  29. package/lib/indexer/ILanguageSpec.js.map +1 -0
  30. package/lib/indexer/LANGUAGE_SPECS.d.ts +2 -0
  31. package/lib/indexer/LANGUAGE_SPECS.js +114 -0
  32. package/lib/indexer/LANGUAGE_SPECS.js.map +1 -0
  33. package/lib/indexer/allExtensions.d.ts +2 -0
  34. package/lib/indexer/allExtensions.js +16 -0
  35. package/lib/indexer/allExtensions.js.map +1 -0
  36. package/lib/indexer/buildGraph.d.ts +3 -0
  37. package/lib/indexer/buildGraph.js +10 -0
  38. package/lib/indexer/buildGraph.js.map +1 -0
  39. package/lib/indexer/buildGraphDump.d.ts +3 -0
  40. package/lib/indexer/buildGraphDump.js +394 -0
  41. package/lib/indexer/buildGraphDump.js.map +1 -0
  42. package/lib/indexer/buildLspGraph.d.ts +3 -0
  43. package/lib/indexer/buildLspGraph.js +617 -0
  44. package/lib/indexer/buildLspGraph.js.map +1 -0
  45. package/lib/indexer/buildStaticGraph.d.ts +3 -0
  46. package/lib/indexer/buildStaticGraph.js +479 -0
  47. package/lib/indexer/buildStaticGraph.js.map +1 -0
  48. package/lib/indexer/decoratorsAbove.d.ts +1 -0
  49. package/lib/indexer/decoratorsAbove.js +14 -0
  50. package/lib/indexer/decoratorsAbove.js.map +1 -0
  51. package/lib/indexer/languageOf.d.ts +2 -0
  52. package/lib/indexer/languageOf.js +19 -0
  53. package/lib/indexer/languageOf.js.map +1 -0
  54. package/lib/indexer/languages.d.ts +5 -0
  55. package/lib/indexer/languages.js +22 -0
  56. package/lib/indexer/languages.js.map +1 -0
  57. package/lib/indexer/lspIndexer.d.ts +1 -0
  58. package/lib/indexer/lspIndexer.js +18 -0
  59. package/lib/indexer/lspIndexer.js.map +1 -0
  60. package/lib/indexer/overrideEdges.d.ts +2 -0
  61. package/lib/indexer/overrideEdges.js +45 -0
  62. package/lib/indexer/overrideEdges.js.map +1 -0
  63. package/lib/indexer/resolveType.d.ts +2 -0
  64. package/lib/indexer/resolveType.js +11 -0
  65. package/lib/indexer/resolveType.js.map +1 -0
  66. package/lib/indexer/specOf.d.ts +3 -0
  67. package/lib/indexer/specOf.js +8 -0
  68. package/lib/indexer/specOf.js.map +1 -0
  69. package/lib/indexer/staticIndexer.d.ts +1 -0
  70. package/lib/indexer/staticIndexer.js +18 -0
  71. package/lib/indexer/staticIndexer.js.map +1 -0
  72. package/lib/indexer/supertypesOf.d.ts +4 -0
  73. package/lib/indexer/supertypesOf.js +48 -0
  74. package/lib/indexer/supertypesOf.js.map +1 -0
  75. package/lib/lsp/DocumentSymbolResult.d.ts +3 -0
  76. package/lib/lsp/DocumentSymbolResult.js +3 -0
  77. package/lib/lsp/DocumentSymbolResult.js.map +1 -0
  78. package/lib/lsp/IDiagnostic.d.ts +8 -0
  79. package/lib/lsp/IDiagnostic.js +3 -0
  80. package/lib/lsp/IDiagnostic.js.map +1 -0
  81. package/lib/lsp/IDocumentSymbol.d.ts +9 -0
  82. package/lib/lsp/IDocumentSymbol.js +3 -0
  83. package/lib/lsp/IDocumentSymbol.js.map +1 -0
  84. package/lib/lsp/ILocation.d.ts +5 -0
  85. package/lib/lsp/ILocation.js +3 -0
  86. package/lib/lsp/ILocation.js.map +1 -0
  87. package/lib/lsp/IPosition.d.ts +4 -0
  88. package/lib/lsp/IPosition.js +3 -0
  89. package/lib/lsp/IPosition.js.map +1 -0
  90. package/lib/lsp/IRange.d.ts +5 -0
  91. package/lib/lsp/IRange.js +3 -0
  92. package/lib/lsp/IRange.js.map +1 -0
  93. package/lib/lsp/ISymbolInformation.d.ts +7 -0
  94. package/lib/lsp/ISymbolInformation.js +3 -0
  95. package/lib/lsp/ISymbolInformation.js.map +1 -0
  96. package/lib/lsp/LspClient.d.ts +17 -0
  97. package/lib/lsp/LspClient.js +140 -0
  98. package/lib/lsp/LspClient.js.map +1 -0
  99. package/lib/lsp/isDocumentSymbol.d.ts +3 -0
  100. package/lib/lsp/isDocumentSymbol.js +7 -0
  101. package/lib/lsp/isDocumentSymbol.js.map +1 -0
  102. package/lib/lsp/types.d.ts +8 -0
  103. package/lib/lsp/types.js +25 -0
  104. package/lib/lsp/types.js.map +1 -0
  105. package/lib/mcp/createServer.d.ts +3 -0
  106. package/lib/mcp/createServer.js +1947 -0
  107. package/lib/mcp/createServer.js.map +1 -0
  108. package/lib/mcp/startServer.d.ts +5 -0
  109. package/lib/mcp/startServer.js +23 -0
  110. package/lib/mcp/startServer.js.map +1 -0
  111. package/lib/model/GraphMemory.d.ts +25 -0
  112. package/lib/model/GraphMemory.js +141 -0
  113. package/lib/model/GraphMemory.js.map +1 -0
  114. package/lib/operations/bound.d.ts +1 -0
  115. package/lib/operations/bound.js +8 -0
  116. package/lib/operations/bound.js.map +1 -0
  117. package/lib/operations/common.d.ts +15 -0
  118. package/lib/operations/common.js +32 -0
  119. package/lib/operations/common.js.map +1 -0
  120. package/lib/operations/compareEdges.d.ts +2 -0
  121. package/lib/operations/compareEdges.js +10 -0
  122. package/lib/operations/compareEdges.js.map +1 -0
  123. package/lib/operations/edgeRank.d.ts +1 -0
  124. package/lib/operations/edgeRank.js +25 -0
  125. package/lib/operations/edgeRank.js.map +1 -0
  126. package/lib/operations/isExecution.d.ts +1 -0
  127. package/lib/operations/isExecution.js +11 -0
  128. package/lib/operations/isExecution.js.map +1 -0
  129. package/lib/operations/isPublicApiNoisePath.d.ts +2 -0
  130. package/lib/operations/isPublicApiNoisePath.js +11 -0
  131. package/lib/operations/isPublicApiNoisePath.js.map +1 -0
  132. package/lib/operations/isStructural.d.ts +1 -0
  133. package/lib/operations/isStructural.js +7 -0
  134. package/lib/operations/isStructural.js.map +1 -0
  135. package/lib/operations/isSupportPath.d.ts +2 -0
  136. package/lib/operations/isSupportPath.js +16 -0
  137. package/lib/operations/isSupportPath.js.map +1 -0
  138. package/lib/operations/isTestPath.d.ts +1 -0
  139. package/lib/operations/isTestPath.js +9 -0
  140. package/lib/operations/isTestPath.js.map +1 -0
  141. package/lib/operations/isTypeEdge.d.ts +1 -0
  142. package/lib/operations/isTypeEdge.js +11 -0
  143. package/lib/operations/isTypeEdge.js.map +1 -0
  144. package/lib/operations/publicEvidence.d.ts +2 -0
  145. package/lib/operations/publicEvidence.js +13 -0
  146. package/lib/operations/publicEvidence.js.map +1 -0
  147. package/lib/operations/referencesFromEdges.d.ts +3 -0
  148. package/lib/operations/referencesFromEdges.js +38 -0
  149. package/lib/operations/referencesFromEdges.js.map +1 -0
  150. package/lib/operations/resolveHandle.d.ts +6 -0
  151. package/lib/operations/resolveHandle.js +28 -0
  152. package/lib/operations/resolveHandle.js.map +1 -0
  153. package/lib/operations/resultGuide.d.ts +1 -0
  154. package/lib/operations/resultGuide.js +7 -0
  155. package/lib/operations/resultGuide.js.map +1 -0
  156. package/lib/operations/resultNext.d.ts +2 -0
  157. package/lib/operations/resultNext.js +7 -0
  158. package/lib/operations/resultNext.js.map +1 -0
  159. package/lib/operations/runDetails.d.ts +8 -0
  160. package/lib/operations/runDetails.js +190 -0
  161. package/lib/operations/runDetails.js.map +1 -0
  162. package/lib/operations/runEntrypoints.d.ts +9 -0
  163. package/lib/operations/runEntrypoints.js +122 -0
  164. package/lib/operations/runEntrypoints.js.map +1 -0
  165. package/lib/operations/runLookup.d.ts +10 -0
  166. package/lib/operations/runLookup.js +229 -0
  167. package/lib/operations/runLookup.js.map +1 -0
  168. package/lib/operations/runOverview.d.ts +10 -0
  169. package/lib/operations/runOverview.js +142 -0
  170. package/lib/operations/runOverview.js.map +1 -0
  171. package/lib/operations/runTour.d.ts +8 -0
  172. package/lib/operations/runTour.js +539 -0
  173. package/lib/operations/runTour.js.map +1 -0
  174. package/lib/operations/runTrace.d.ts +10 -0
  175. package/lib/operations/runTrace.js +283 -0
  176. package/lib/operations/runTrace.js.map +1 -0
  177. package/lib/operations/signatureOf.d.ts +2 -0
  178. package/lib/operations/signatureOf.js +45 -0
  179. package/lib/operations/signatureOf.js.map +1 -0
  180. package/lib/operations/subwords.d.ts +1 -0
  181. package/lib/operations/subwords.js +12 -0
  182. package/lib/operations/subwords.js.map +1 -0
  183. package/lib/operations/summaryOf.d.ts +2 -0
  184. package/lib/operations/summaryOf.js +24 -0
  185. package/lib/operations/summaryOf.js.map +1 -0
  186. package/lib/runGraph.d.ts +1 -0
  187. package/lib/runGraph.js +165 -0
  188. package/lib/runGraph.js.map +1 -0
  189. package/lib/structures/GraphEdgeKind.d.ts +10 -0
  190. package/lib/structures/GraphEdgeKind.js +3 -0
  191. package/lib/structures/GraphEdgeKind.js.map +1 -0
  192. package/lib/structures/GraphLanguage.d.ts +2 -0
  193. package/lib/structures/GraphLanguage.js +3 -0
  194. package/lib/structures/GraphLanguage.js.map +1 -0
  195. package/lib/structures/GraphNodeKind.d.ts +11 -0
  196. package/lib/structures/GraphNodeKind.js +3 -0
  197. package/lib/structures/GraphNodeKind.js.map +1 -0
  198. package/lib/structures/IGraphDecorator.d.ts +22 -0
  199. package/lib/structures/IGraphDecorator.js +3 -0
  200. package/lib/structures/IGraphDecorator.js.map +1 -0
  201. package/lib/structures/IGraphDetails.d.ts +126 -0
  202. package/lib/structures/IGraphDetails.js +3 -0
  203. package/lib/structures/IGraphDetails.js.map +1 -0
  204. package/lib/structures/IGraphDiagnostic.d.ts +23 -0
  205. package/lib/structures/IGraphDiagnostic.js +3 -0
  206. package/lib/structures/IGraphDiagnostic.js.map +1 -0
  207. package/lib/structures/IGraphDump.d.ts +37 -0
  208. package/lib/structures/IGraphDump.js +3 -0
  209. package/lib/structures/IGraphDump.js.map +1 -0
  210. package/lib/structures/IGraphEdge.d.ts +20 -0
  211. package/lib/structures/IGraphEdge.js +3 -0
  212. package/lib/structures/IGraphEdge.js.map +1 -0
  213. package/lib/structures/IGraphEntrypoints.d.ts +57 -0
  214. package/lib/structures/IGraphEntrypoints.js +3 -0
  215. package/lib/structures/IGraphEntrypoints.js.map +1 -0
  216. package/lib/structures/IGraphEscape.d.ts +40 -0
  217. package/lib/structures/IGraphEscape.js +3 -0
  218. package/lib/structures/IGraphEscape.js.map +1 -0
  219. package/lib/structures/IGraphEvidence.d.ts +24 -0
  220. package/lib/structures/IGraphEvidence.js +3 -0
  221. package/lib/structures/IGraphEvidence.js.map +1 -0
  222. package/lib/structures/IGraphLookup.d.ts +66 -0
  223. package/lib/structures/IGraphLookup.js +3 -0
  224. package/lib/structures/IGraphLookup.js.map +1 -0
  225. package/lib/structures/IGraphNext.d.ts +15 -0
  226. package/lib/structures/IGraphNext.js +3 -0
  227. package/lib/structures/IGraphNext.js.map +1 -0
  228. package/lib/structures/IGraphNode.d.ts +62 -0
  229. package/lib/structures/IGraphNode.js +3 -0
  230. package/lib/structures/IGraphNode.js.map +1 -0
  231. package/lib/structures/IGraphOverview.d.ts +100 -0
  232. package/lib/structures/IGraphOverview.js +3 -0
  233. package/lib/structures/IGraphOverview.js.map +1 -0
  234. package/lib/structures/IGraphTour.d.ts +54 -0
  235. package/lib/structures/IGraphTour.js +3 -0
  236. package/lib/structures/IGraphTour.js.map +1 -0
  237. package/lib/structures/IGraphTrace.d.ts +126 -0
  238. package/lib/structures/IGraphTrace.js +3 -0
  239. package/lib/structures/IGraphTrace.js.map +1 -0
  240. package/lib/structures/ISamchonGraphApplication.d.ts +162 -0
  241. package/lib/structures/ISamchonGraphApplication.js +3 -0
  242. package/lib/structures/ISamchonGraphApplication.js.map +1 -0
  243. package/lib/structures/index.d.ts +18 -0
  244. package/lib/structures/index.js +35 -0
  245. package/lib/structures/index.js.map +1 -0
  246. package/lib/structures.d.ts +1 -0
  247. package/lib/structures.js +18 -0
  248. package/lib/structures.js.map +1 -0
  249. package/lib/utils/DEFAULT_IGNORES.d.ts +1 -0
  250. package/lib/utils/DEFAULT_IGNORES.js +39 -0
  251. package/lib/utils/DEFAULT_IGNORES.js.map +1 -0
  252. package/lib/utils/IWalkOptions.d.ts +5 -0
  253. package/lib/utils/IWalkOptions.js +3 -0
  254. package/lib/utils/IWalkOptions.js.map +1 -0
  255. package/lib/utils/basename.d.ts +1 -0
  256. package/lib/utils/basename.js +10 -0
  257. package/lib/utils/basename.js.map +1 -0
  258. package/lib/utils/dirname.d.ts +1 -0
  259. package/lib/utils/dirname.js +10 -0
  260. package/lib/utils/dirname.js.map +1 -0
  261. package/lib/utils/fileFromUri.d.ts +1 -0
  262. package/lib/utils/fileFromUri.js +20 -0
  263. package/lib/utils/fileFromUri.js.map +1 -0
  264. package/lib/utils/fileUri.d.ts +1 -0
  265. package/lib/utils/fileUri.js +19 -0
  266. package/lib/utils/fileUri.js.map +1 -0
  267. package/lib/utils/fs.d.ts +6 -0
  268. package/lib/utils/fs.js +23 -0
  269. package/lib/utils/fs.js.map +1 -0
  270. package/lib/utils/isSubPath.d.ts +1 -0
  271. package/lib/utils/isSubPath.js +15 -0
  272. package/lib/utils/isSubPath.js.map +1 -0
  273. package/lib/utils/normalizePath.d.ts +1 -0
  274. package/lib/utils/normalizePath.js +7 -0
  275. package/lib/utils/normalizePath.js.map +1 -0
  276. package/lib/utils/path.d.ts +7 -0
  277. package/lib/utils/path.js +24 -0
  278. package/lib/utils/path.js.map +1 -0
  279. package/lib/utils/projectRelative.d.ts +1 -0
  280. package/lib/utils/projectRelative.js +9 -0
  281. package/lib/utils/projectRelative.js.map +1 -0
  282. package/lib/utils/readLines.d.ts +1 -0
  283. package/lib/utils/readLines.js +8 -0
  284. package/lib/utils/readLines.js.map +1 -0
  285. package/lib/utils/readText.d.ts +1 -0
  286. package/lib/utils/readText.js +17 -0
  287. package/lib/utils/readText.js.map +1 -0
  288. package/lib/utils/relativePath.d.ts +1 -0
  289. package/lib/utils/relativePath.js +12 -0
  290. package/lib/utils/relativePath.js.map +1 -0
  291. package/lib/utils/walkSourceFiles.d.ts +2 -0
  292. package/lib/utils/walkSourceFiles.js +44 -0
  293. package/lib/utils/walkSourceFiles.js.map +1 -0
  294. package/package.json +55 -0
  295. package/src/AsyncSamchonGraphSource.ts +5 -0
  296. package/src/SamchonGraphApplication.ts +74 -0
  297. package/src/SamchonGraphSource.ts +3 -0
  298. package/src/application.ts +3 -0
  299. package/src/bin.ts +6 -0
  300. package/src/index.ts +13 -0
  301. package/src/indexer/IBuildGraphOptions.ts +42 -0
  302. package/src/indexer/IIndexerResult.ts +6 -0
  303. package/src/indexer/ILanguageSpec.ts +11 -0
  304. package/src/indexer/LANGUAGE_SPECS.ts +112 -0
  305. package/src/indexer/allExtensions.ts +12 -0
  306. package/src/indexer/buildGraph.ts +10 -0
  307. package/src/indexer/buildGraphDump.ts +29 -0
  308. package/src/indexer/buildLspGraph.ts +710 -0
  309. package/src/indexer/buildStaticGraph.ts +507 -0
  310. package/src/indexer/decoratorsAbove.ts +9 -0
  311. package/src/indexer/languageOf.ts +13 -0
  312. package/src/indexer/languages.ts +5 -0
  313. package/src/indexer/lspIndexer.ts +1 -0
  314. package/src/indexer/overrideEdges.ts +42 -0
  315. package/src/indexer/resolveType.ts +14 -0
  316. package/src/indexer/specOf.ts +7 -0
  317. package/src/indexer/staticIndexer.ts +1 -0
  318. package/src/indexer/supertypesOf.ts +43 -0
  319. package/src/lsp/DocumentSymbolResult.ts +4 -0
  320. package/src/lsp/IDiagnostic.ts +9 -0
  321. package/src/lsp/IDocumentSymbol.ts +10 -0
  322. package/src/lsp/ILocation.ts +6 -0
  323. package/src/lsp/IPosition.ts +4 -0
  324. package/src/lsp/IRange.ts +6 -0
  325. package/src/lsp/ISymbolInformation.ts +8 -0
  326. package/src/lsp/LspClient.ts +165 -0
  327. package/src/lsp/isDocumentSymbol.ts +8 -0
  328. package/src/lsp/types.ts +8 -0
  329. package/src/mcp/createServer.ts +23 -0
  330. package/src/mcp/startServer.ts +23 -0
  331. package/src/model/GraphMemory.ts +165 -0
  332. package/src/operations/bound.ts +9 -0
  333. package/src/operations/common.ts +15 -0
  334. package/src/operations/compareEdges.ts +10 -0
  335. package/src/operations/edgeRank.ts +23 -0
  336. package/src/operations/isExecution.ts +9 -0
  337. package/src/operations/isPublicApiNoisePath.ts +10 -0
  338. package/src/operations/isStructural.ts +3 -0
  339. package/src/operations/isSupportPath.ts +16 -0
  340. package/src/operations/isTestPath.ts +7 -0
  341. package/src/operations/isTypeEdge.ts +9 -0
  342. package/src/operations/publicEvidence.ts +11 -0
  343. package/src/operations/referencesFromEdges.ts +37 -0
  344. package/src/operations/resolveHandle.ts +27 -0
  345. package/src/operations/resultGuide.ts +3 -0
  346. package/src/operations/resultNext.ts +9 -0
  347. package/src/operations/runDetails.ts +240 -0
  348. package/src/operations/runEntrypoints.ts +153 -0
  349. package/src/operations/runLookup.ts +269 -0
  350. package/src/operations/runOverview.ts +158 -0
  351. package/src/operations/runTour.ts +582 -0
  352. package/src/operations/runTrace.ts +339 -0
  353. package/src/operations/signatureOf.ts +40 -0
  354. package/src/operations/subwords.ts +8 -0
  355. package/src/operations/summaryOf.ts +21 -0
  356. package/src/runGraph.ts +144 -0
  357. package/src/structures/GraphEdgeKind.ts +24 -0
  358. package/src/structures/GraphLanguage.ts +21 -0
  359. package/src/structures/GraphNodeKind.ts +27 -0
  360. package/src/structures/IGraphDecorator.ts +25 -0
  361. package/src/structures/IGraphDetails.ts +153 -0
  362. package/src/structures/IGraphDiagnostic.ts +29 -0
  363. package/src/structures/IGraphDump.ts +45 -0
  364. package/src/structures/IGraphEdge.ts +24 -0
  365. package/src/structures/IGraphEntrypoints.ts +70 -0
  366. package/src/structures/IGraphEscape.ts +49 -0
  367. package/src/structures/IGraphEvidence.ts +29 -0
  368. package/src/structures/IGraphLookup.ts +80 -0
  369. package/src/structures/IGraphNext.ts +23 -0
  370. package/src/structures/IGraphNode.ts +76 -0
  371. package/src/structures/IGraphOverview.ts +121 -0
  372. package/src/structures/IGraphTour.ts +68 -0
  373. package/src/structures/IGraphTrace.ts +154 -0
  374. package/src/structures/ISamchonGraphApplication.ts +186 -0
  375. package/src/structures/index.ts +18 -0
  376. package/src/structures.ts +1 -0
  377. package/src/utils/DEFAULT_IGNORES.ts +35 -0
  378. package/src/utils/IWalkOptions.ts +5 -0
  379. package/src/utils/basename.ts +7 -0
  380. package/src/utils/dirname.ts +7 -0
  381. package/src/utils/fileFromUri.ts +14 -0
  382. package/src/utils/fileUri.ts +13 -0
  383. package/src/utils/fs.ts +6 -0
  384. package/src/utils/isSubPath.ts +9 -0
  385. package/src/utils/normalizePath.ts +3 -0
  386. package/src/utils/path.ts +7 -0
  387. package/src/utils/projectRelative.ts +6 -0
  388. package/src/utils/readLines.ts +5 -0
  389. package/src/utils/readText.ts +10 -0
  390. package/src/utils/relativePath.ts +7 -0
  391. package/src/utils/walkSourceFiles.ts +35 -0
@@ -0,0 +1,394 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.buildGraphDump = buildGraphDump;
40
+ const _a = __importStar(require("typia/lib/internal/_assertGuard"));
41
+ const node_path_1 = __importDefault(require("node:path"));
42
+ const typia_1 = __importDefault(require("typia"));
43
+ const lspIndexer_1 = require("./lspIndexer");
44
+ const staticIndexer_1 = require("./staticIndexer");
45
+ async function buildGraphDump(options = {}) {
46
+ const normalized = {
47
+ ...options,
48
+ cwd: node_path_1.default.resolve(options.cwd ?? process.cwd()),
49
+ mode: options.mode ?? "auto",
50
+ };
51
+ if (normalized.mode === "static") {
52
+ return validateDump((0, staticIndexer_1.buildStaticGraph)(normalized));
53
+ }
54
+ if (normalized.mode === "lsp") {
55
+ return validateDump((await (0, lspIndexer_1.buildLspGraph)(normalized)).dump);
56
+ }
57
+ return validateDump((await (0, lspIndexer_1.buildLspGraph)(normalized)).dump);
58
+ }
59
+ function validateDump(dump) {
60
+ return (() => {
61
+ const _iv0 = new Set(["bash", "c", "cpp", "csharp", "dart", "go", "java", "javascript", "kotlin", "lua", "php", "python", "ruby", "rust", "scala", "swift", "typescript", "unknown", "zig"]);
62
+ const _iv1 = new Set(["class", "constructor", "enum", "external_symbol", "field", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
63
+ const _ip0 = input => "string" === typeof input["name"];
64
+ const _ip1 = input => "string" === typeof input["file"];
65
+ const _ip2 = input => undefined === input["evidence"] || "object" === typeof input["evidence"] && null !== input["evidence"] && _io3(input["evidence"]);
66
+ const _iv2 = new Set(["accesses", "calls", "contains", "decorates", "exports", "extends", "implements", "imports", "instantiates", "overrides", "references", "renders", "tests", "type_ref"]);
67
+ const _av0 = new Set(["bash", "c", "cpp", "csharp", "dart", "go", "java", "javascript", "kotlin", "lua", "php", "python", "ruby", "rust", "scala", "swift", "typescript", "unknown", "zig"]);
68
+ const _ae0 = "(\"bash\" | \"c\" | \"cpp\" | \"csharp\" | \"dart\" | \"go\" | \"java\" | \"javascript\" | \"kotlin\" | \"lua\" | \"php\" | \"python\" | \"ruby\" | \"rust\" | \"scala\" | \"swift\" | \"typescript\" | \"unknown\" | \"zig\")";
69
+ const _av1 = new Set(["class", "constructor", "enum", "external_symbol", "field", "file", "function", "interface", "method", "module", "namespace", "package", "parameter", "property", "type", "variable"]);
70
+ const _ae1 = "(\"class\" | \"constructor\" | \"enum\" | \"external_symbol\" | \"field\" | \"file\" | \"function\" | \"interface\" | \"method\" | \"module\" | \"namespace\" | \"package\" | \"parameter\" | \"property\" | \"type\" | \"variable\")";
71
+ const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["name"] || _a._assertGuard(_exceptionable, {
72
+ method: "typia.assert",
73
+ path: _path + ".name",
74
+ expected: "string",
75
+ value: input["name"]
76
+ }, _errorFactory);
77
+ const _ap1 = (input, _path, _exceptionable = true) => "string" === typeof input["file"] || _a._assertGuard(_exceptionable, {
78
+ method: "typia.assert",
79
+ path: _path + ".file",
80
+ expected: "string",
81
+ value: input["file"]
82
+ }, _errorFactory);
83
+ const _ap2 = (input, _path, _exceptionable = true) => undefined === input["evidence"] || ("object" === typeof input["evidence"] && null !== input["evidence"] || _a._assertGuard(_exceptionable, {
84
+ method: "typia.assert",
85
+ path: _path + ".evidence",
86
+ expected: "(IGraphEvidence | undefined)",
87
+ value: input["evidence"]
88
+ }, _errorFactory)) && _ao3(input["evidence"], _path + ".evidence", true && _exceptionable) || _a._assertGuard(_exceptionable, {
89
+ method: "typia.assert",
90
+ path: _path + ".evidence",
91
+ expected: "(IGraphEvidence | undefined)",
92
+ value: input["evidence"]
93
+ }, _errorFactory);
94
+ const _av2 = new Set(["accesses", "calls", "contains", "decorates", "exports", "extends", "implements", "imports", "instantiates", "overrides", "references", "renders", "tests", "type_ref"]);
95
+ const _ae2 = "(\"accesses\" | \"calls\" | \"contains\" | \"decorates\" | \"exports\" | \"extends\" | \"implements\" | \"imports\" | \"instantiates\" | \"overrides\" | \"references\" | \"renders\" | \"tests\" | \"type_ref\")";
96
+ const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.project || _a._assertGuard(_exceptionable, {
97
+ method: "typia.assert",
98
+ path: _path + ".project",
99
+ expected: "string",
100
+ value: input.project
101
+ }, _errorFactory)) && ((Array.isArray(input.languages) || _a._assertGuard(_exceptionable, {
102
+ method: "typia.assert",
103
+ path: _path + ".languages",
104
+ expected: "Array<GraphLanguage>",
105
+ value: input.languages
106
+ }, _errorFactory)) && input.languages.every((elem, _index9) => true === _av0.has(elem) || _a._assertGuard(_exceptionable, {
107
+ method: "typia.assert",
108
+ path: _path + ".languages[" + _index9 + "]",
109
+ expected: _ae0,
110
+ value: elem
111
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
112
+ method: "typia.assert",
113
+ path: _path + ".languages",
114
+ expected: "Array<GraphLanguage>",
115
+ value: input.languages
116
+ }, _errorFactory)) && ("string" === typeof input.generatedAt || _a._assertGuard(_exceptionable, {
117
+ method: "typia.assert",
118
+ path: _path + ".generatedAt",
119
+ expected: "string",
120
+ value: input.generatedAt
121
+ }, _errorFactory)) && ("hybrid" === input.indexer || "lsp" === input.indexer || "static" === input.indexer || _a._assertGuard(_exceptionable, {
122
+ method: "typia.assert",
123
+ path: _path + ".indexer",
124
+ expected: "(\"hybrid\" | \"lsp\" | \"static\")",
125
+ value: input.indexer
126
+ }, _errorFactory)) && ((Array.isArray(input.nodes) || _a._assertGuard(_exceptionable, {
127
+ method: "typia.assert",
128
+ path: _path + ".nodes",
129
+ expected: "Array<IGraphNode>",
130
+ value: input.nodes
131
+ }, _errorFactory)) && input.nodes.every((elem, _index10) => ("object" === typeof elem && null !== elem || _a._assertGuard(_exceptionable, {
132
+ method: "typia.assert",
133
+ path: _path + ".nodes[" + _index10 + "]",
134
+ expected: "IGraphNode",
135
+ value: elem
136
+ }, _errorFactory)) && _ao1(elem, _path + ".nodes[" + _index10 + "]", true && _exceptionable) || _a._assertGuard(_exceptionable, {
137
+ method: "typia.assert",
138
+ path: _path + ".nodes[" + _index10 + "]",
139
+ expected: "IGraphNode",
140
+ value: elem
141
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
142
+ method: "typia.assert",
143
+ path: _path + ".nodes",
144
+ expected: "Array<IGraphNode>",
145
+ value: input.nodes
146
+ }, _errorFactory)) && ((Array.isArray(input.edges) || _a._assertGuard(_exceptionable, {
147
+ method: "typia.assert",
148
+ path: _path + ".edges",
149
+ expected: "Array<IGraphEdge>",
150
+ value: input.edges
151
+ }, _errorFactory)) && input.edges.every((elem, _index11) => ("object" === typeof elem && null !== elem || _a._assertGuard(_exceptionable, {
152
+ method: "typia.assert",
153
+ path: _path + ".edges[" + _index11 + "]",
154
+ expected: "IGraphEdge",
155
+ value: elem
156
+ }, _errorFactory)) && _ao4(elem, _path + ".edges[" + _index11 + "]", true && _exceptionable) || _a._assertGuard(_exceptionable, {
157
+ method: "typia.assert",
158
+ path: _path + ".edges[" + _index11 + "]",
159
+ expected: "IGraphEdge",
160
+ value: elem
161
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
162
+ method: "typia.assert",
163
+ path: _path + ".edges",
164
+ expected: "Array<IGraphEdge>",
165
+ value: input.edges
166
+ }, _errorFactory)) && (undefined === input.diagnostics || (Array.isArray(input.diagnostics) || _a._assertGuard(_exceptionable, {
167
+ method: "typia.assert",
168
+ path: _path + ".diagnostics",
169
+ expected: "(Array<IGraphDiagnostic> | undefined)",
170
+ value: input.diagnostics
171
+ }, _errorFactory)) && input.diagnostics.every((elem, _index12) => ("object" === typeof elem && null !== elem || _a._assertGuard(_exceptionable, {
172
+ method: "typia.assert",
173
+ path: _path + ".diagnostics[" + _index12 + "]",
174
+ expected: "IGraphDiagnostic",
175
+ value: elem
176
+ }, _errorFactory)) && _ao5(elem, _path + ".diagnostics[" + _index12 + "]", true && _exceptionable) || _a._assertGuard(_exceptionable, {
177
+ method: "typia.assert",
178
+ path: _path + ".diagnostics[" + _index12 + "]",
179
+ expected: "IGraphDiagnostic",
180
+ value: elem
181
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
182
+ method: "typia.assert",
183
+ path: _path + ".diagnostics",
184
+ expected: "(Array<IGraphDiagnostic> | undefined)",
185
+ value: input.diagnostics
186
+ }, _errorFactory)) && (undefined === input.warnings || (Array.isArray(input.warnings) || _a._assertGuard(_exceptionable, {
187
+ method: "typia.assert",
188
+ path: _path + ".warnings",
189
+ expected: "(Array<string> | undefined)",
190
+ value: input.warnings
191
+ }, _errorFactory)) && input.warnings.every((elem, _index13) => "string" === typeof elem || _a._assertGuard(_exceptionable, {
192
+ method: "typia.assert",
193
+ path: _path + ".warnings[" + _index13 + "]",
194
+ expected: "string",
195
+ value: elem
196
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
197
+ method: "typia.assert",
198
+ path: _path + ".warnings",
199
+ expected: "(Array<string> | undefined)",
200
+ value: input.warnings
201
+ }, _errorFactory));
202
+ const _ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || _a._assertGuard(_exceptionable, {
203
+ method: "typia.assert",
204
+ path: _path + ".id",
205
+ expected: "string",
206
+ value: input.id
207
+ }, _errorFactory)) && (true === _av1.has(input.kind) || _a._assertGuard(_exceptionable, {
208
+ method: "typia.assert",
209
+ path: _path + ".kind",
210
+ expected: _ae1,
211
+ value: input.kind
212
+ }, _errorFactory)) && (true === _av0.has(input.language) || _a._assertGuard(_exceptionable, {
213
+ method: "typia.assert",
214
+ path: _path + ".language",
215
+ expected: _ae0,
216
+ value: input.language
217
+ }, _errorFactory)) && _ap0(input, _path, true && _exceptionable) && (undefined === input.qualifiedName || "string" === typeof input.qualifiedName || _a._assertGuard(_exceptionable, {
218
+ method: "typia.assert",
219
+ path: _path + ".qualifiedName",
220
+ expected: "(string | undefined)",
221
+ value: input.qualifiedName
222
+ }, _errorFactory)) && _ap1(input, _path, true && _exceptionable) && ("boolean" === typeof input.external || _a._assertGuard(_exceptionable, {
223
+ method: "typia.assert",
224
+ path: _path + ".external",
225
+ expected: "boolean",
226
+ value: input.external
227
+ }, _errorFactory)) && (undefined === input.ignored || "boolean" === typeof input.ignored || _a._assertGuard(_exceptionable, {
228
+ method: "typia.assert",
229
+ path: _path + ".ignored",
230
+ expected: "(boolean | undefined)",
231
+ value: input.ignored
232
+ }, _errorFactory)) && (undefined === input.exported || "boolean" === typeof input.exported || _a._assertGuard(_exceptionable, {
233
+ method: "typia.assert",
234
+ path: _path + ".exported",
235
+ expected: "(boolean | undefined)",
236
+ value: input.exported
237
+ }, _errorFactory)) && (undefined === input.signature || "string" === typeof input.signature || _a._assertGuard(_exceptionable, {
238
+ method: "typia.assert",
239
+ path: _path + ".signature",
240
+ expected: "(string | undefined)",
241
+ value: input.signature
242
+ }, _errorFactory)) && (undefined === input.modifiers || (Array.isArray(input.modifiers) || _a._assertGuard(_exceptionable, {
243
+ method: "typia.assert",
244
+ path: _path + ".modifiers",
245
+ expected: "(Array<string> | undefined)",
246
+ value: input.modifiers
247
+ }, _errorFactory)) && input.modifiers.every((elem, _index14) => "string" === typeof elem || _a._assertGuard(_exceptionable, {
248
+ method: "typia.assert",
249
+ path: _path + ".modifiers[" + _index14 + "]",
250
+ expected: "string",
251
+ value: elem
252
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
253
+ method: "typia.assert",
254
+ path: _path + ".modifiers",
255
+ expected: "(Array<string> | undefined)",
256
+ value: input.modifiers
257
+ }, _errorFactory)) && (undefined === input.decorators || (Array.isArray(input.decorators) || _a._assertGuard(_exceptionable, {
258
+ method: "typia.assert",
259
+ path: _path + ".decorators",
260
+ expected: "(Array<IGraphDecorator> | undefined)",
261
+ value: input.decorators
262
+ }, _errorFactory)) && input.decorators.every((elem, _index15) => ("object" === typeof elem && null !== elem || _a._assertGuard(_exceptionable, {
263
+ method: "typia.assert",
264
+ path: _path + ".decorators[" + _index15 + "]",
265
+ expected: "IGraphDecorator",
266
+ value: elem
267
+ }, _errorFactory)) && _ao2(elem, _path + ".decorators[" + _index15 + "]", true && _exceptionable) || _a._assertGuard(_exceptionable, {
268
+ method: "typia.assert",
269
+ path: _path + ".decorators[" + _index15 + "]",
270
+ expected: "IGraphDecorator",
271
+ value: elem
272
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
273
+ method: "typia.assert",
274
+ path: _path + ".decorators",
275
+ expected: "(Array<IGraphDecorator> | undefined)",
276
+ value: input.decorators
277
+ }, _errorFactory)) && _ap2(input, _path, true && _exceptionable) && (undefined === input.implementation || ("object" === typeof input.implementation && null !== input.implementation || _a._assertGuard(_exceptionable, {
278
+ method: "typia.assert",
279
+ path: _path + ".implementation",
280
+ expected: "(IGraphEvidence | undefined)",
281
+ value: input.implementation
282
+ }, _errorFactory)) && _ao3(input.implementation, _path + ".implementation", true && _exceptionable) || _a._assertGuard(_exceptionable, {
283
+ method: "typia.assert",
284
+ path: _path + ".implementation",
285
+ expected: "(IGraphEvidence | undefined)",
286
+ value: input.implementation
287
+ }, _errorFactory));
288
+ const _ao2 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && (undefined === input.arguments || (Array.isArray(input.arguments) || _a._assertGuard(_exceptionable, {
289
+ method: "typia.assert",
290
+ path: _path + ".arguments",
291
+ expected: "(Array<string> | undefined)",
292
+ value: input.arguments
293
+ }, _errorFactory)) && input.arguments.every((elem, _index16) => "string" === typeof elem || _a._assertGuard(_exceptionable, {
294
+ method: "typia.assert",
295
+ path: _path + ".arguments[" + _index16 + "]",
296
+ expected: "string",
297
+ value: elem
298
+ }, _errorFactory)) || _a._assertGuard(_exceptionable, {
299
+ method: "typia.assert",
300
+ path: _path + ".arguments",
301
+ expected: "(Array<string> | undefined)",
302
+ value: input.arguments
303
+ }, _errorFactory)) && _ap2(input, _path, true && _exceptionable);
304
+ const _ao3 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && ("number" === typeof input.startLine || _a._assertGuard(_exceptionable, {
305
+ method: "typia.assert",
306
+ path: _path + ".startLine",
307
+ expected: "number",
308
+ value: input.startLine
309
+ }, _errorFactory)) && (undefined === input.startCol || "number" === typeof input.startCol || _a._assertGuard(_exceptionable, {
310
+ method: "typia.assert",
311
+ path: _path + ".startCol",
312
+ expected: "(number | undefined)",
313
+ value: input.startCol
314
+ }, _errorFactory)) && (undefined === input.endLine || "number" === typeof input.endLine || _a._assertGuard(_exceptionable, {
315
+ method: "typia.assert",
316
+ path: _path + ".endLine",
317
+ expected: "(number | undefined)",
318
+ value: input.endLine
319
+ }, _errorFactory)) && (undefined === input.endCol || "number" === typeof input.endCol || _a._assertGuard(_exceptionable, {
320
+ method: "typia.assert",
321
+ path: _path + ".endCol",
322
+ expected: "(number | undefined)",
323
+ value: input.endCol
324
+ }, _errorFactory)) && (undefined === input.text || "string" === typeof input.text || _a._assertGuard(_exceptionable, {
325
+ method: "typia.assert",
326
+ path: _path + ".text",
327
+ expected: "(string | undefined)",
328
+ value: input.text
329
+ }, _errorFactory));
330
+ const _ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.from || _a._assertGuard(_exceptionable, {
331
+ method: "typia.assert",
332
+ path: _path + ".from",
333
+ expected: "string",
334
+ value: input.from
335
+ }, _errorFactory)) && ("string" === typeof input.to || _a._assertGuard(_exceptionable, {
336
+ method: "typia.assert",
337
+ path: _path + ".to",
338
+ expected: "string",
339
+ value: input.to
340
+ }, _errorFactory)) && (true === _av2.has(input.kind) || _a._assertGuard(_exceptionable, {
341
+ method: "typia.assert",
342
+ path: _path + ".kind",
343
+ expected: _ae2,
344
+ value: input.kind
345
+ }, _errorFactory)) && _ap2(input, _path, true && _exceptionable);
346
+ const _ao5 = (input, _path, _exceptionable = true) => _ap1(input, _path, true && _exceptionable) && ("string" === typeof input.message || _a._assertGuard(_exceptionable, {
347
+ method: "typia.assert",
348
+ path: _path + ".message",
349
+ expected: "string",
350
+ value: input.message
351
+ }, _errorFactory)) && ("error" === input.severity || "hint" === input.severity || "information" === input.severity || "warning" === input.severity || _a._assertGuard(_exceptionable, {
352
+ method: "typia.assert",
353
+ path: _path + ".severity",
354
+ expected: "(\"error\" | \"hint\" | \"information\" | \"warning\")",
355
+ value: input.severity
356
+ }, _errorFactory)) && (undefined === input.source || "string" === typeof input.source || _a._assertGuard(_exceptionable, {
357
+ method: "typia.assert",
358
+ path: _path + ".source",
359
+ expected: "(string | undefined)",
360
+ value: input.source
361
+ }, _errorFactory)) && (undefined === input.code || "string" === typeof input.code || "number" === typeof input.code || _a._assertGuard(_exceptionable, {
362
+ method: "typia.assert",
363
+ path: _path + ".code",
364
+ expected: "(number | string | undefined)",
365
+ value: input.code
366
+ }, _errorFactory)) && _ap2(input, _path, true && _exceptionable);
367
+ const _io0 = input => "string" === typeof input.project && (Array.isArray(input.languages) && input.languages.every(elem => true === _iv0.has(elem))) && "string" === typeof input.generatedAt && ("hybrid" === input.indexer || "lsp" === input.indexer || "static" === input.indexer) && (Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (Array.isArray(input.edges) && input.edges.every(elem => "object" === typeof elem && null !== elem && _io4(elem))) && (undefined === input.diagnostics || Array.isArray(input.diagnostics) && input.diagnostics.every(elem => "object" === typeof elem && null !== elem && _io5(elem))) && (undefined === input.warnings || Array.isArray(input.warnings) && input.warnings.every(elem => "string" === typeof elem));
368
+ const _io1 = input => "string" === typeof input.id && true === _iv1.has(input.kind) && true === _iv0.has(input.language) && _ip0(input) && (undefined === input.qualifiedName || "string" === typeof input.qualifiedName) && _ip1(input) && "boolean" === typeof input.external && (undefined === input.ignored || "boolean" === typeof input.ignored) && (undefined === input.exported || "boolean" === typeof input.exported) && (undefined === input.signature || "string" === typeof input.signature) && (undefined === input.modifiers || Array.isArray(input.modifiers) && input.modifiers.every(elem => "string" === typeof elem)) && (undefined === input.decorators || Array.isArray(input.decorators) && input.decorators.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && _ip2(input) && (undefined === input.implementation || "object" === typeof input.implementation && null !== input.implementation && _io3(input.implementation));
369
+ const _io2 = input => _ip0(input) && (undefined === input.arguments || Array.isArray(input.arguments) && input.arguments.every(elem => "string" === typeof elem)) && _ip2(input);
370
+ const _io3 = input => _ip1(input) && "number" === typeof input.startLine && (undefined === input.startCol || "number" === typeof input.startCol) && (undefined === input.endLine || "number" === typeof input.endLine) && (undefined === input.endCol || "number" === typeof input.endCol) && (undefined === input.text || "string" === typeof input.text);
371
+ const _io4 = input => "string" === typeof input.from && "string" === typeof input.to && true === _iv2.has(input.kind) && _ip2(input);
372
+ const _io5 = input => _ip1(input) && "string" === typeof input.message && ("error" === input.severity || "hint" === input.severity || "information" === input.severity || "warning" === input.severity) && (undefined === input.source || "string" === typeof input.source) && (undefined === input.code || "string" === typeof input.code || "number" === typeof input.code) && _ip2(input);
373
+ const __is = input => "object" === typeof input && null !== input && _io0(input);
374
+ let _errorFactory;
375
+ return (input, errorFactory) => {
376
+ if (false === __is(input)) {
377
+ _errorFactory = errorFactory;
378
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _a._assertGuard(true, {
379
+ method: "typia.assert",
380
+ path: _path + "",
381
+ expected: "IGraphDump",
382
+ value: input
383
+ }, _errorFactory)) && _ao0(input, _path + "", true) || _a._assertGuard(true, {
384
+ method: "typia.assert",
385
+ path: _path + "",
386
+ expected: "IGraphDump",
387
+ value: input
388
+ }, _errorFactory))(input, "$input", true);
389
+ }
390
+ return input;
391
+ };
392
+ })()(dump);
393
+ }
394
+ //# sourceMappingURL=buildGraphDump.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildGraphDump.js","sourceRoot":"","sources":["../../src/indexer/buildGraphDump.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA6B;AAE7B,kDAA0B;AAI1B,6CAA6C;AAC7C,mDAAmD;AAE5C,KAAK,yBACV,OAAO,GAAuB,EAAE;IAEhC,MAAM,UAAU,GAAuB;QACrC,GAAG,OAAO;QACV,GAAG,EAAE,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAC/C,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,MAAM;KAC7B,CAAC;IACF,IAAI,UAAU,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACjC,OAAO,YAAY,CAAC,IAAA,gCAAgB,EAAC,UAAU,CAAC,CAAC,CAAC;IACpD,CAAC;IACD,IAAI,UAAU,CAAC,IAAI,KAAK,KAAK,EAAE,CAAC;QAC9B,OAAO,YAAY,CAAC,CAAC,MAAM,IAAA,0BAAa,EAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,YAAY,CAAC,CAAC,MAAM,IAAA,0BAAa,EAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,YAAY,CAAC,IAAgB;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAgC,IAAI,EAAE;AACxC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IBuildGraphOptions } from "./IBuildGraphOptions";
2
+ import { IIndexerResult } from "./IIndexerResult";
3
+ export declare function buildLspGraph(options?: IBuildGraphOptions): Promise<IIndexerResult>;