@yalehwang/archguard 0.1.23 → 0.1.32

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 (866) hide show
  1. package/README.md +176 -32
  2. package/assets/grammars/benchmarks.md +101 -0
  3. package/assets/grammars/checksums.json +8 -0
  4. package/{node_modules/tree-sitter/LICENSE → assets/grammars/licenses/tree-sitter-cpp.LICENSE} +2 -2
  5. package/{node_modules/node-gyp-build/LICENSE → assets/grammars/licenses/tree-sitter-go.LICENSE} +5 -5
  6. package/assets/grammars/licenses/tree-sitter-java.LICENSE +21 -0
  7. package/assets/grammars/licenses/tree-sitter-kotlin.LICENSE +21 -0
  8. package/assets/grammars/licenses/tree-sitter-python.LICENSE +21 -0
  9. package/assets/grammars/licenses/tree-sitter.LICENSE +21 -0
  10. package/assets/grammars/provenance.json +66 -0
  11. package/assets/grammars/tree-sitter-cpp.wasm +0 -0
  12. package/assets/grammars/tree-sitter-go.wasm +0 -0
  13. package/assets/grammars/tree-sitter-java.wasm +0 -0
  14. package/assets/grammars/tree-sitter-kotlin.wasm +0 -0
  15. package/assets/grammars/tree-sitter-python.wasm +0 -0
  16. package/assets/grammars/tree-sitter.wasm +0 -0
  17. package/dist/analysis/atlas-metrics-analysis.d.ts +11 -0
  18. package/dist/analysis/atlas-metrics-analysis.d.ts.map +1 -0
  19. package/dist/analysis/atlas-metrics-analysis.js +17 -0
  20. package/dist/analysis/atlas-metrics-analysis.js.map +1 -0
  21. package/dist/analysis/fitness/dependency-checker.d.ts +4 -0
  22. package/dist/analysis/fitness/dependency-checker.d.ts.map +1 -0
  23. package/dist/analysis/fitness/dependency-checker.js +16 -0
  24. package/dist/analysis/fitness/dependency-checker.js.map +1 -0
  25. package/dist/analysis/fitness/rule-evaluator.d.ts +6 -0
  26. package/dist/analysis/fitness/rule-evaluator.d.ts.map +1 -0
  27. package/dist/analysis/fitness/rule-evaluator.js +64 -0
  28. package/dist/analysis/fitness/rule-evaluator.js.map +1 -0
  29. package/dist/analysis/fitness/rule-types.d.ts +2 -0
  30. package/dist/analysis/fitness/rule-types.d.ts.map +1 -0
  31. package/dist/analysis/fitness/rule-types.js +2 -0
  32. package/dist/analysis/fitness/rule-types.js.map +1 -0
  33. package/dist/analysis/gim/direction-hint.d.ts +18 -0
  34. package/dist/analysis/gim/direction-hint.d.ts.map +1 -0
  35. package/dist/analysis/gim/direction-hint.js +76 -0
  36. package/dist/analysis/gim/direction-hint.js.map +1 -0
  37. package/dist/analysis/gim/gim-loss-evaluator.d.ts +14 -0
  38. package/dist/analysis/gim/gim-loss-evaluator.d.ts.map +1 -0
  39. package/dist/analysis/gim/gim-loss-evaluator.js +80 -0
  40. package/dist/analysis/gim/gim-loss-evaluator.js.map +1 -0
  41. package/dist/analysis/gini.d.ts +2 -0
  42. package/dist/analysis/gini.d.ts.map +1 -0
  43. package/dist/analysis/gini.js +12 -0
  44. package/dist/analysis/gini.js.map +1 -0
  45. package/dist/analysis/git-history/git-log-reader.d.ts +24 -0
  46. package/dist/analysis/git-history/git-log-reader.d.ts.map +1 -0
  47. package/dist/analysis/git-history/git-log-reader.js +117 -0
  48. package/dist/analysis/git-history/git-log-reader.js.map +1 -0
  49. package/dist/analysis/git-history/history-aggregator.d.ts +19 -0
  50. package/dist/analysis/git-history/history-aggregator.d.ts.map +1 -0
  51. package/dist/analysis/git-history/history-aggregator.js +291 -0
  52. package/dist/analysis/git-history/history-aggregator.js.map +1 -0
  53. package/dist/analysis/git-history/history-query.d.ts +111 -0
  54. package/dist/analysis/git-history/history-query.d.ts.map +1 -0
  55. package/dist/analysis/git-history/history-query.js +201 -0
  56. package/dist/analysis/git-history/history-query.js.map +1 -0
  57. package/dist/analysis/git-history/index.d.ts +4 -0
  58. package/dist/analysis/git-history/index.d.ts.map +1 -0
  59. package/dist/analysis/git-history/index.js +4 -0
  60. package/dist/analysis/git-history/index.js.map +1 -0
  61. package/dist/analysis/metric-vector-builder.d.ts +5 -0
  62. package/dist/analysis/metric-vector-builder.d.ts.map +1 -0
  63. package/dist/analysis/metric-vector-builder.js +47 -0
  64. package/dist/analysis/metric-vector-builder.js.map +1 -0
  65. package/dist/analysis/metrics-history-reader.d.ts +4 -0
  66. package/dist/analysis/metrics-history-reader.d.ts.map +1 -0
  67. package/dist/analysis/metrics-history-reader.js +24 -0
  68. package/dist/analysis/metrics-history-reader.js.map +1 -0
  69. package/dist/analysis/package-metrics-analysis.d.ts +18 -0
  70. package/dist/analysis/package-metrics-analysis.d.ts.map +1 -0
  71. package/dist/analysis/package-metrics-analysis.js +59 -0
  72. package/dist/analysis/package-metrics-analysis.js.map +1 -0
  73. package/dist/analysis/project-semantics-loader.d.ts +3 -0
  74. package/dist/analysis/project-semantics-loader.d.ts.map +1 -0
  75. package/dist/analysis/project-semantics-loader.js +25 -0
  76. package/dist/analysis/project-semantics-loader.js.map +1 -0
  77. package/dist/analysis/snapshot-diff.d.ts +19 -0
  78. package/dist/analysis/snapshot-diff.d.ts.map +1 -0
  79. package/dist/analysis/snapshot-diff.js +54 -0
  80. package/dist/analysis/snapshot-diff.js.map +1 -0
  81. package/dist/analysis/snapshot-store.d.ts +15 -0
  82. package/dist/analysis/snapshot-store.d.ts.map +1 -0
  83. package/dist/analysis/snapshot-store.js +96 -0
  84. package/dist/analysis/snapshot-store.js.map +1 -0
  85. package/dist/analysis/test-analyzer.d.ts +4 -1
  86. package/dist/analysis/test-analyzer.d.ts.map +1 -1
  87. package/dist/analysis/test-analyzer.js +67 -14
  88. package/dist/analysis/test-analyzer.js.map +1 -1
  89. package/dist/analysis/test-coverage-mapper.d.ts +1 -1
  90. package/dist/analysis/test-coverage-mapper.d.ts.map +1 -1
  91. package/dist/analysis/test-coverage-mapper.js +32 -2
  92. package/dist/analysis/test-coverage-mapper.js.map +1 -1
  93. package/dist/analysis/test-issue-detector.d.ts +1 -1
  94. package/dist/analysis/test-issue-detector.d.ts.map +1 -1
  95. package/dist/analysis/test-issue-detector.js +7 -2
  96. package/dist/analysis/test-issue-detector.js.map +1 -1
  97. package/dist/analysis/test-pattern-advisor.d.ts +2 -0
  98. package/dist/analysis/test-pattern-advisor.d.ts.map +1 -0
  99. package/dist/analysis/test-pattern-advisor.js +59 -0
  100. package/dist/analysis/test-pattern-advisor.js.map +1 -0
  101. package/dist/cli/analyze/normalize-to-diagrams.d.ts +9 -0
  102. package/dist/cli/analyze/normalize-to-diagrams.d.ts.map +1 -1
  103. package/dist/cli/analyze/normalize-to-diagrams.js +35 -26
  104. package/dist/cli/analyze/normalize-to-diagrams.js.map +1 -1
  105. package/dist/cli/analyze/run-analysis.d.ts +5 -1
  106. package/dist/cli/analyze/run-analysis.d.ts.map +1 -1
  107. package/dist/cli/analyze/run-analysis.js +207 -33
  108. package/dist/cli/analyze/run-analysis.js.map +1 -1
  109. package/dist/cli/{cache-manager.d.ts → cache/cache-manager.d.ts} +1 -1
  110. package/dist/cli/cache/cache-manager.d.ts.map +1 -0
  111. package/dist/cli/{cache-manager.js → cache/cache-manager.js} +3 -3
  112. package/dist/cli/cache/cache-manager.js.map +1 -0
  113. package/dist/cli/cognitive/ccb-assembler.d.ts +8 -0
  114. package/dist/cli/cognitive/ccb-assembler.d.ts.map +1 -0
  115. package/dist/cli/cognitive/ccb-assembler.js +213 -0
  116. package/dist/cli/cognitive/ccb-assembler.js.map +1 -0
  117. package/dist/cli/cognitive/ccb-reader.d.ts +7 -0
  118. package/dist/cli/cognitive/ccb-reader.d.ts.map +1 -0
  119. package/dist/cli/cognitive/ccb-reader.js +27 -0
  120. package/dist/cli/cognitive/ccb-reader.js.map +1 -0
  121. package/dist/cli/cognitive/ccb-schema.d.ts +36 -0
  122. package/dist/cli/cognitive/ccb-schema.d.ts.map +1 -0
  123. package/dist/cli/cognitive/ccb-schema.js +2 -0
  124. package/dist/cli/cognitive/ccb-schema.js.map +1 -0
  125. package/dist/cli/cognitive/ccb-writer.d.ts +3 -0
  126. package/dist/cli/cognitive/ccb-writer.d.ts.map +1 -0
  127. package/dist/cli/cognitive/ccb-writer.js +12 -0
  128. package/dist/cli/cognitive/ccb-writer.js.map +1 -0
  129. package/dist/cli/commands/analyze.d.ts.map +1 -1
  130. package/dist/cli/commands/analyze.js +23 -4
  131. package/dist/cli/commands/analyze.js.map +1 -1
  132. package/dist/cli/commands/cache.js +2 -2
  133. package/dist/cli/commands/cache.js.map +1 -1
  134. package/dist/cli/commands/check.d.ts +3 -0
  135. package/dist/cli/commands/check.d.ts.map +1 -0
  136. package/dist/cli/commands/check.js +48 -0
  137. package/dist/cli/commands/check.js.map +1 -0
  138. package/dist/cli/commands/diff.d.ts +3 -0
  139. package/dist/cli/commands/diff.d.ts.map +1 -0
  140. package/dist/cli/commands/diff.js +89 -0
  141. package/dist/cli/commands/diff.js.map +1 -0
  142. package/dist/cli/commands/init.d.ts.map +1 -1
  143. package/dist/cli/commands/init.js +1 -2
  144. package/dist/cli/commands/init.js.map +1 -1
  145. package/dist/cli/commands/query.d.ts +51 -0
  146. package/dist/cli/commands/query.d.ts.map +1 -1
  147. package/dist/cli/commands/query.js +373 -17
  148. package/dist/cli/commands/query.js.map +1 -1
  149. package/dist/cli/config-loader.d.ts +50 -0
  150. package/dist/cli/config-loader.d.ts.map +1 -1
  151. package/dist/cli/config-loader.js +33 -0
  152. package/dist/cli/config-loader.js.map +1 -1
  153. package/dist/cli/{errors.d.ts → errors/index.d.ts} +16 -2
  154. package/dist/cli/errors/index.d.ts.map +1 -0
  155. package/dist/cli/{error-handler.js → errors/index.js} +32 -2
  156. package/dist/cli/errors/index.js.map +1 -0
  157. package/dist/cli/git-history/git-log-reader.d.ts +2 -0
  158. package/dist/cli/git-history/git-log-reader.d.ts.map +1 -0
  159. package/dist/cli/git-history/git-log-reader.js +2 -0
  160. package/dist/cli/git-history/git-log-reader.js.map +1 -0
  161. package/dist/cli/git-history/history-aggregator.d.ts +2 -0
  162. package/dist/cli/git-history/history-aggregator.d.ts.map +1 -0
  163. package/dist/cli/git-history/history-aggregator.js +2 -0
  164. package/dist/cli/git-history/history-aggregator.js.map +1 -0
  165. package/dist/cli/git-history/history-loader.d.ts +11 -0
  166. package/dist/cli/git-history/history-loader.d.ts.map +1 -0
  167. package/dist/cli/git-history/history-loader.js +30 -0
  168. package/dist/cli/git-history/history-loader.js.map +1 -0
  169. package/dist/cli/git-history/history-query.d.ts +2 -0
  170. package/dist/cli/git-history/history-query.d.ts.map +1 -0
  171. package/dist/cli/git-history/history-query.js +2 -0
  172. package/dist/cli/git-history/history-query.js.map +1 -0
  173. package/dist/cli/git-history/history-writer.d.ts +3 -0
  174. package/dist/cli/git-history/history-writer.d.ts.map +1 -0
  175. package/dist/cli/git-history/history-writer.js +14 -0
  176. package/dist/cli/git-history/history-writer.js.map +1 -0
  177. package/dist/cli/index.d.ts.map +1 -1
  178. package/dist/cli/index.js +5 -1
  179. package/dist/cli/index.js.map +1 -1
  180. package/dist/cli/mcp/analyze-tool.d.ts +2 -0
  181. package/dist/cli/mcp/analyze-tool.d.ts.map +1 -1
  182. package/dist/cli/mcp/analyze-tool.js +15 -4
  183. package/dist/cli/mcp/analyze-tool.js.map +1 -1
  184. package/dist/cli/mcp/mcp-server.d.ts +7 -2
  185. package/dist/cli/mcp/mcp-server.d.ts.map +1 -1
  186. package/dist/cli/mcp/mcp-server.js +203 -50
  187. package/dist/cli/mcp/mcp-server.js.map +1 -1
  188. package/dist/cli/mcp/tools/atlas-analytics-tools.d.ts +7 -0
  189. package/dist/cli/mcp/tools/atlas-analytics-tools.d.ts.map +1 -0
  190. package/dist/cli/mcp/tools/atlas-analytics-tools.js +190 -0
  191. package/dist/cli/mcp/tools/atlas-analytics-tools.js.map +1 -0
  192. package/dist/cli/mcp/tools/call-graph-tools.d.ts +3 -0
  193. package/dist/cli/mcp/tools/call-graph-tools.d.ts.map +1 -0
  194. package/dist/cli/mcp/tools/call-graph-tools.js +47 -0
  195. package/dist/cli/mcp/tools/call-graph-tools.js.map +1 -0
  196. package/dist/cli/mcp/tools/ccb-tool.d.ts +3 -0
  197. package/dist/cli/mcp/tools/ccb-tool.d.ts.map +1 -0
  198. package/dist/cli/mcp/tools/ccb-tool.js +63 -0
  199. package/dist/cli/mcp/tools/ccb-tool.js.map +1 -0
  200. package/dist/cli/mcp/tools/cognitive-summary-tool.d.ts +3 -0
  201. package/dist/cli/mcp/tools/cognitive-summary-tool.d.ts.map +1 -0
  202. package/dist/cli/mcp/tools/cognitive-summary-tool.js +118 -0
  203. package/dist/cli/mcp/tools/cognitive-summary-tool.js.map +1 -0
  204. package/dist/cli/mcp/tools/gim-tools.d.ts +3 -0
  205. package/dist/cli/mcp/tools/gim-tools.d.ts.map +1 -0
  206. package/dist/cli/mcp/tools/gim-tools.js +78 -0
  207. package/dist/cli/mcp/tools/gim-tools.js.map +1 -0
  208. package/dist/cli/mcp/tools/git-history-analyze-tool.d.ts +3 -0
  209. package/dist/cli/mcp/tools/git-history-analyze-tool.d.ts.map +1 -0
  210. package/dist/cli/mcp/tools/git-history-analyze-tool.js +172 -0
  211. package/dist/cli/mcp/tools/git-history-analyze-tool.js.map +1 -0
  212. package/dist/cli/mcp/tools/git-history-evidence-pack-tool.d.ts +3 -0
  213. package/dist/cli/mcp/tools/git-history-evidence-pack-tool.d.ts.map +1 -0
  214. package/dist/cli/mcp/tools/git-history-evidence-pack-tool.js +87 -0
  215. package/dist/cli/mcp/tools/git-history-evidence-pack-tool.js.map +1 -0
  216. package/dist/cli/mcp/tools/git-history-tools.d.ts +3 -0
  217. package/dist/cli/mcp/tools/git-history-tools.d.ts.map +1 -0
  218. package/dist/cli/mcp/tools/git-history-tools.js +125 -0
  219. package/dist/cli/mcp/tools/git-history-tools.js.map +1 -0
  220. package/dist/cli/mcp/tools/metric-trend-tools.d.ts +8 -0
  221. package/dist/cli/mcp/tools/metric-trend-tools.d.ts.map +1 -0
  222. package/dist/cli/mcp/tools/metric-trend-tools.js +50 -0
  223. package/dist/cli/mcp/tools/metric-trend-tools.js.map +1 -0
  224. package/dist/cli/mcp/tools/package-metrics-tools.d.ts +7 -0
  225. package/dist/cli/mcp/tools/package-metrics-tools.d.ts.map +1 -0
  226. package/dist/cli/mcp/tools/package-metrics-tools.js +62 -0
  227. package/dist/cli/mcp/tools/package-metrics-tools.js.map +1 -0
  228. package/dist/cli/mcp/tools/test-analysis-tools.d.ts.map +1 -1
  229. package/dist/cli/mcp/tools/test-analysis-tools.js +75 -84
  230. package/dist/cli/mcp/tools/test-analysis-tools.js.map +1 -1
  231. package/dist/cli/metrics-history-writer.d.ts +16 -0
  232. package/dist/cli/metrics-history-writer.d.ts.map +1 -0
  233. package/dist/cli/metrics-history-writer.js +16 -0
  234. package/dist/cli/metrics-history-writer.js.map +1 -0
  235. package/dist/cli/processors/arch-json-provider-types.d.ts +17 -0
  236. package/dist/cli/processors/arch-json-provider-types.d.ts.map +1 -0
  237. package/dist/cli/processors/arch-json-provider-types.js +2 -0
  238. package/dist/cli/processors/arch-json-provider-types.js.map +1 -0
  239. package/dist/cli/processors/arch-json-provider.d.ts +9 -13
  240. package/dist/cli/processors/arch-json-provider.d.ts.map +1 -1
  241. package/dist/cli/processors/arch-json-provider.js +144 -117
  242. package/dist/cli/processors/arch-json-provider.js.map +1 -1
  243. package/dist/cli/processors/arch-json-utils.d.ts +4 -0
  244. package/dist/cli/processors/arch-json-utils.d.ts.map +1 -0
  245. package/dist/cli/processors/arch-json-utils.js +82 -0
  246. package/dist/cli/processors/arch-json-utils.js.map +1 -0
  247. package/dist/cli/processors/diagram-output-router.d.ts +3 -1
  248. package/dist/cli/processors/diagram-output-router.d.ts.map +1 -1
  249. package/dist/cli/processors/diagram-output-router.js +28 -3
  250. package/dist/cli/processors/diagram-output-router.js.map +1 -1
  251. package/dist/cli/processors/diagram-pipeline-runner.d.ts +20 -0
  252. package/dist/cli/processors/diagram-pipeline-runner.d.ts.map +1 -0
  253. package/dist/cli/processors/diagram-pipeline-runner.js +171 -0
  254. package/dist/cli/processors/diagram-pipeline-runner.js.map +1 -0
  255. package/dist/cli/processors/diagram-processor.d.ts +15 -8
  256. package/dist/cli/processors/diagram-processor.d.ts.map +1 -1
  257. package/dist/cli/processors/diagram-processor.js +21 -148
  258. package/dist/cli/processors/diagram-processor.js.map +1 -1
  259. package/dist/cli/processors/query-scope-collector.d.ts +11 -0
  260. package/dist/cli/processors/query-scope-collector.d.ts.map +1 -0
  261. package/dist/cli/processors/query-scope-collector.js +44 -0
  262. package/dist/cli/processors/query-scope-collector.js.map +1 -0
  263. package/dist/cli/processors/test-coverage-writer.d.ts +4 -0
  264. package/dist/cli/processors/test-coverage-writer.d.ts.map +1 -0
  265. package/dist/cli/processors/test-coverage-writer.js +22 -0
  266. package/dist/cli/processors/test-coverage-writer.js.map +1 -0
  267. package/dist/cli/processors/worker-pool-factory.d.ts +9 -0
  268. package/dist/cli/processors/worker-pool-factory.d.ts.map +1 -0
  269. package/dist/cli/processors/worker-pool-factory.js +31 -0
  270. package/dist/cli/processors/worker-pool-factory.js.map +1 -0
  271. package/dist/cli/{progress.d.ts → progress/index.d.ts} +1 -1
  272. package/dist/cli/progress/index.d.ts.map +1 -0
  273. package/dist/cli/{progress.js → progress/index.js} +1 -1
  274. package/dist/cli/progress/index.js.map +1 -0
  275. package/dist/cli/query/arch-index-builder.d.ts +1 -3
  276. package/dist/cli/query/arch-index-builder.d.ts.map +1 -1
  277. package/dist/cli/query/arch-index-builder.js +1 -125
  278. package/dist/cli/query/arch-index-builder.js.map +1 -1
  279. package/dist/cli/query/arch-index.d.ts +2 -16
  280. package/dist/cli/query/arch-index.d.ts.map +1 -1
  281. package/dist/cli/query/arch-index.js +1 -1
  282. package/dist/cli/query/arch-index.js.map +1 -1
  283. package/dist/cli/query/engine-loader.d.ts +9 -1
  284. package/dist/cli/query/engine-loader.d.ts.map +1 -1
  285. package/dist/cli/query/engine-loader.js +5 -1
  286. package/dist/cli/query/engine-loader.js.map +1 -1
  287. package/dist/cli/query/query-artifacts.d.ts.map +1 -1
  288. package/dist/cli/query/query-artifacts.js +2 -1
  289. package/dist/cli/query/query-artifacts.js.map +1 -1
  290. package/dist/cli/query/query-engine.d.ts +3 -105
  291. package/dist/cli/query/query-engine.d.ts.map +1 -1
  292. package/dist/cli/query/query-engine.js +1 -417
  293. package/dist/cli/query/query-engine.js.map +1 -1
  294. package/dist/cli/utils/java-project-structure-detector.js +1 -1
  295. package/dist/cli/utils/java-project-structure-detector.js.map +1 -1
  296. package/dist/cli/utils/kotlin-project-structure-detector.d.ts +7 -0
  297. package/dist/cli/utils/kotlin-project-structure-detector.d.ts.map +1 -0
  298. package/dist/cli/utils/kotlin-project-structure-detector.js +101 -0
  299. package/dist/cli/utils/kotlin-project-structure-detector.js.map +1 -0
  300. package/dist/cli/utils/output-path-resolver.d.ts.map +1 -1
  301. package/dist/cli/utils/output-path-resolver.js.map +1 -1
  302. package/dist/cli/utils/project-language-detector.d.ts +1 -1
  303. package/dist/cli/utils/project-language-detector.d.ts.map +1 -1
  304. package/dist/cli/utils/project-language-detector.js +5 -1
  305. package/dist/cli/utils/project-language-detector.js.map +1 -1
  306. package/dist/cli/utils/project-structure-detector.js +3 -3
  307. package/dist/cli/utils/project-structure-detector.js.map +1 -1
  308. package/dist/cli/utils/test-output-writer.d.ts +1 -1
  309. package/dist/cli/utils/test-output-writer.d.ts.map +1 -1
  310. package/dist/cli/utils/test-output-writer.js.map +1 -1
  311. package/dist/core/entity-type-registry.d.ts +10 -0
  312. package/dist/core/entity-type-registry.d.ts.map +1 -0
  313. package/dist/core/entity-type-registry.js +17 -0
  314. package/dist/core/entity-type-registry.js.map +1 -0
  315. package/dist/core/interfaces/dependency.d.ts +1 -1
  316. package/dist/core/interfaces/dependency.d.ts.map +1 -1
  317. package/dist/core/interfaces/index.d.ts +2 -0
  318. package/dist/core/interfaces/index.d.ts.map +1 -1
  319. package/dist/core/interfaces/index.js.map +1 -1
  320. package/dist/core/interfaces/language-plugin.d.ts +8 -1
  321. package/dist/core/interfaces/language-plugin.d.ts.map +1 -1
  322. package/dist/core/interfaces/parser-facade.d.ts +5 -0
  323. package/dist/core/interfaces/parser-facade.d.ts.map +1 -0
  324. package/dist/core/interfaces/parser-facade.js +2 -0
  325. package/dist/core/interfaces/parser-facade.js.map +1 -0
  326. package/dist/core/interfaces/renderer-facade.d.ts +8 -0
  327. package/dist/core/interfaces/renderer-facade.d.ts.map +1 -0
  328. package/dist/core/interfaces/renderer-facade.js +2 -0
  329. package/dist/core/interfaces/renderer-facade.js.map +1 -0
  330. package/dist/core/interfaces/validation.d.ts.map +1 -1
  331. package/dist/core/plugin-registry.d.ts.map +1 -1
  332. package/dist/core/plugin-registry.js +2 -0
  333. package/dist/core/plugin-registry.js.map +1 -1
  334. package/dist/core/query/arch-index-builder.d.ts +4 -0
  335. package/dist/core/query/arch-index-builder.d.ts.map +1 -0
  336. package/dist/core/query/arch-index-builder.js +126 -0
  337. package/dist/core/query/arch-index-builder.js.map +1 -0
  338. package/dist/core/query/arch-index.d.ts +17 -0
  339. package/dist/core/query/arch-index.d.ts.map +1 -0
  340. package/dist/core/query/arch-index.js +2 -0
  341. package/dist/core/query/arch-index.js.map +1 -0
  342. package/dist/core/query/arch-metrics-cognitive.d.ts +32 -0
  343. package/dist/core/query/arch-metrics-cognitive.d.ts.map +1 -0
  344. package/dist/core/query/arch-metrics-cognitive.js +60 -0
  345. package/dist/core/query/arch-metrics-cognitive.js.map +1 -0
  346. package/dist/core/query/arch-metrics-quality.d.ts +24 -0
  347. package/dist/core/query/arch-metrics-quality.d.ts.map +1 -0
  348. package/dist/core/query/arch-metrics-quality.js +86 -0
  349. package/dist/core/query/arch-metrics-quality.js.map +1 -0
  350. package/dist/core/query/arch-metrics-structure.d.ts +43 -0
  351. package/dist/core/query/arch-metrics-structure.d.ts.map +1 -0
  352. package/dist/core/query/arch-metrics-structure.js +291 -0
  353. package/dist/core/query/arch-metrics-structure.js.map +1 -0
  354. package/dist/core/query/arch-metrics.d.ts +54 -0
  355. package/dist/core/query/arch-metrics.d.ts.map +1 -0
  356. package/dist/core/query/arch-metrics.js +42 -0
  357. package/dist/core/query/arch-metrics.js.map +1 -0
  358. package/dist/core/query/edge-list-serializer.d.ts +4 -0
  359. package/dist/core/query/edge-list-serializer.d.ts.map +1 -0
  360. package/dist/core/query/edge-list-serializer.js +24 -0
  361. package/dist/core/query/edge-list-serializer.js.map +1 -0
  362. package/dist/core/query/entity-query-service.d.ts +15 -0
  363. package/dist/core/query/entity-query-service.d.ts.map +1 -0
  364. package/dist/core/query/entity-query-service.js +51 -0
  365. package/dist/core/query/entity-query-service.js.map +1 -0
  366. package/dist/core/query/extension-accessor.d.ts +15 -0
  367. package/dist/core/query/extension-accessor.d.ts.map +1 -0
  368. package/dist/core/query/extension-accessor.js +28 -0
  369. package/dist/core/query/extension-accessor.js.map +1 -0
  370. package/dist/core/query/index.d.ts +8 -0
  371. package/dist/core/query/index.d.ts.map +1 -0
  372. package/dist/core/query/index.js +6 -0
  373. package/dist/core/query/index.js.map +1 -0
  374. package/dist/core/query/output-scope-filter.d.ts +6 -0
  375. package/dist/core/query/output-scope-filter.d.ts.map +1 -0
  376. package/dist/core/query/output-scope-filter.js +45 -0
  377. package/dist/core/query/output-scope-filter.js.map +1 -0
  378. package/dist/core/query/query-engine.d.ts +116 -0
  379. package/dist/core/query/query-engine.d.ts.map +1 -0
  380. package/dist/core/query/query-engine.js +105 -0
  381. package/dist/core/query/query-engine.js.map +1 -0
  382. package/dist/core/query/relation-query-service.d.ts +21 -0
  383. package/dist/core/query/relation-query-service.d.ts.map +1 -0
  384. package/dist/core/query/relation-query-service.js +124 -0
  385. package/dist/core/query/relation-query-service.js.map +1 -0
  386. package/dist/mermaid/auto-repair.d.ts +1 -1
  387. package/dist/mermaid/auto-repair.d.ts.map +1 -1
  388. package/dist/mermaid/auto-repair.js +6 -6
  389. package/dist/mermaid/auto-repair.js.map +1 -1
  390. package/dist/mermaid/cpp-package-flowchart-generator.js +1 -1
  391. package/dist/mermaid/cpp-package-flowchart-generator.js.map +1 -1
  392. package/dist/mermaid/diagram-generator.d.ts +2 -1
  393. package/dist/mermaid/diagram-generator.d.ts.map +1 -1
  394. package/dist/mermaid/diagram-generator.js +17 -16
  395. package/dist/mermaid/diagram-generator.js.map +1 -1
  396. package/dist/mermaid/generator-formatting.d.ts +1 -1
  397. package/dist/mermaid/generator-formatting.d.ts.map +1 -1
  398. package/dist/mermaid/generator-formatting.js +2 -0
  399. package/dist/mermaid/generator-formatting.js.map +1 -1
  400. package/dist/mermaid/generator-validation.d.ts.map +1 -1
  401. package/dist/mermaid/generator-validation.js.map +1 -1
  402. package/dist/mermaid/generator.d.ts +5 -10
  403. package/dist/mermaid/generator.d.ts.map +1 -1
  404. package/dist/mermaid/generator.js +210 -227
  405. package/dist/mermaid/generator.js.map +1 -1
  406. package/dist/mermaid/grouper.d.ts.map +1 -1
  407. package/dist/mermaid/grouper.js.map +1 -1
  408. package/dist/mermaid/renderer.d.ts.map +1 -1
  409. package/dist/mermaid/renderer.js +1 -1
  410. package/dist/mermaid/renderer.js.map +1 -1
  411. package/dist/mermaid/test-coverage-renderer.d.ts +1 -1
  412. package/dist/mermaid/test-coverage-renderer.d.ts.map +1 -1
  413. package/dist/mermaid/test-coverage-renderer.js +18 -12
  414. package/dist/mermaid/test-coverage-renderer.js.map +1 -1
  415. package/dist/mermaid/ts-module-graph-renderer.d.ts +6 -2
  416. package/dist/mermaid/ts-module-graph-renderer.d.ts.map +1 -1
  417. package/dist/mermaid/ts-module-graph-renderer.js +49 -2
  418. package/dist/mermaid/ts-module-graph-renderer.js.map +1 -1
  419. package/dist/mermaid/validator-quality.js +1 -1
  420. package/dist/mermaid/validator-quality.js.map +1 -1
  421. package/dist/mermaid/validator-render.js +1 -1
  422. package/dist/mermaid/validator-render.js.map +1 -1
  423. package/dist/parser/archjson-aggregator.d.ts +1 -0
  424. package/dist/parser/archjson-aggregator.d.ts.map +1 -1
  425. package/dist/parser/archjson-aggregator.js +38 -8
  426. package/dist/parser/archjson-aggregator.js.map +1 -1
  427. package/dist/parser/call-edge-extractor.d.ts +13 -0
  428. package/dist/parser/call-edge-extractor.d.ts.map +1 -0
  429. package/dist/parser/call-edge-extractor.js +70 -0
  430. package/dist/parser/call-edge-extractor.js.map +1 -0
  431. package/dist/parser/metrics-calculator.d.ts.map +1 -1
  432. package/dist/parser/metrics-calculator.js +2 -1
  433. package/dist/parser/metrics-calculator.js.map +1 -1
  434. package/dist/parser/parallel-parser.d.ts +12 -1
  435. package/dist/parser/parallel-parser.d.ts.map +1 -1
  436. package/dist/parser/parallel-parser.js +80 -37
  437. package/dist/parser/parallel-parser.js.map +1 -1
  438. package/dist/parser/parse-worker-pool.d.ts +59 -0
  439. package/dist/parser/parse-worker-pool.d.ts.map +1 -0
  440. package/dist/parser/parse-worker-pool.js +170 -0
  441. package/dist/parser/parse-worker-pool.js.map +1 -0
  442. package/dist/parser/parse-worker.d.ts +2 -0
  443. package/dist/parser/parse-worker.d.ts.map +1 -0
  444. package/dist/parser/parse-worker.js +71 -0
  445. package/dist/parser/parse-worker.js.map +1 -0
  446. package/dist/parser/process-parse-worker-pools.d.ts +18 -0
  447. package/dist/parser/process-parse-worker-pools.d.ts.map +1 -0
  448. package/dist/parser/process-parse-worker-pools.js +31 -0
  449. package/dist/parser/process-parse-worker-pools.js.map +1 -0
  450. package/dist/parser/relation-extractor.d.ts +1 -0
  451. package/dist/parser/relation-extractor.d.ts.map +1 -1
  452. package/dist/parser/relation-extractor.js +84 -4
  453. package/dist/parser/relation-extractor.js.map +1 -1
  454. package/dist/parser/typescript-parser.d.ts +2 -0
  455. package/dist/parser/typescript-parser.d.ts.map +1 -1
  456. package/dist/parser/typescript-parser.js +44 -5
  457. package/dist/parser/typescript-parser.js.map +1 -1
  458. package/dist/plugins/cpp/archjson-mapper.d.ts.map +1 -1
  459. package/dist/plugins/cpp/archjson-mapper.js.map +1 -1
  460. package/dist/plugins/cpp/builders/class-builder.d.ts +2 -2
  461. package/dist/plugins/cpp/builders/class-builder.d.ts.map +1 -1
  462. package/dist/plugins/cpp/builders/class-builder.js +6 -1
  463. package/dist/plugins/cpp/builders/class-builder.js.map +1 -1
  464. package/dist/plugins/cpp/index.d.ts +7 -4
  465. package/dist/plugins/cpp/index.d.ts.map +1 -1
  466. package/dist/plugins/cpp/index.js +47 -9
  467. package/dist/plugins/cpp/index.js.map +1 -1
  468. package/dist/plugins/cpp/tree-sitter-bridge.d.ts +3 -2
  469. package/dist/plugins/cpp/tree-sitter-bridge.d.ts.map +1 -1
  470. package/dist/plugins/cpp/tree-sitter-bridge.js +27 -22
  471. package/dist/plugins/cpp/tree-sitter-bridge.js.map +1 -1
  472. package/dist/plugins/golang/archjson-mapper.d.ts +3 -1
  473. package/dist/plugins/golang/archjson-mapper.d.ts.map +1 -1
  474. package/dist/plugins/golang/archjson-mapper.js +56 -1
  475. package/dist/plugins/golang/archjson-mapper.js.map +1 -1
  476. package/dist/plugins/golang/atlas/behavior-analyzer.d.ts +2 -1
  477. package/dist/plugins/golang/atlas/behavior-analyzer.d.ts.map +1 -1
  478. package/dist/plugins/golang/atlas/behavior-analyzer.js +2 -2
  479. package/dist/plugins/golang/atlas/behavior-analyzer.js.map +1 -1
  480. package/dist/plugins/golang/atlas/builders/capability-graph-builder.d.ts +5 -1
  481. package/dist/plugins/golang/atlas/builders/capability-graph-builder.d.ts.map +1 -1
  482. package/dist/plugins/golang/atlas/builders/capability-graph-builder.js +43 -1
  483. package/dist/plugins/golang/atlas/builders/capability-graph-builder.js.map +1 -1
  484. package/dist/plugins/golang/atlas/builders/flow-graph-builder.d.ts +3 -0
  485. package/dist/plugins/golang/atlas/builders/flow-graph-builder.d.ts.map +1 -1
  486. package/dist/plugins/golang/atlas/builders/flow-graph-builder.js +166 -6
  487. package/dist/plugins/golang/atlas/builders/flow-graph-builder.js.map +1 -1
  488. package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.d.ts.map +1 -1
  489. package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.js +12 -5
  490. package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.js.map +1 -1
  491. package/dist/plugins/golang/atlas/builders/package-graph-builder.js +5 -5
  492. package/dist/plugins/golang/atlas/builders/package-graph-builder.js.map +1 -1
  493. package/dist/plugins/golang/atlas/framework-detector.d.ts.map +1 -1
  494. package/dist/plugins/golang/atlas/framework-detector.js +2 -0
  495. package/dist/plugins/golang/atlas/framework-detector.js.map +1 -1
  496. package/dist/plugins/golang/atlas/go-mod-resolver.d.ts.map +1 -1
  497. package/dist/plugins/golang/atlas/go-mod-resolver.js +3 -3
  498. package/dist/plugins/golang/atlas/go-mod-resolver.js.map +1 -1
  499. package/dist/plugins/golang/atlas/renderers/atlas-renderer.d.ts.map +1 -1
  500. package/dist/plugins/golang/atlas/renderers/atlas-renderer.js +32 -2
  501. package/dist/plugins/golang/atlas/renderers/atlas-renderer.js.map +1 -1
  502. package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.d.ts.map +1 -1
  503. package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.js +16 -5
  504. package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.js.map +1 -1
  505. package/dist/plugins/golang/atlas/renderers/flow-mermaid-template.js.map +1 -1
  506. package/dist/plugins/golang/atlas/renderers/goroutine-mermaid-template.d.ts.map +1 -1
  507. package/dist/plugins/golang/atlas/renderers/goroutine-mermaid-template.js.map +1 -1
  508. package/dist/plugins/golang/atlas/renderers/mermaid-templates.d.ts.map +1 -1
  509. package/dist/plugins/golang/atlas/renderers/mermaid-templates.js.map +1 -1
  510. package/dist/plugins/golang/atlas/renderers/package-mermaid-template.d.ts.map +1 -1
  511. package/dist/plugins/golang/atlas/renderers/package-mermaid-template.js +5 -5
  512. package/dist/plugins/golang/atlas/renderers/package-mermaid-template.js.map +1 -1
  513. package/dist/plugins/golang/atlas/renderers/template-shared.d.ts.map +1 -1
  514. package/dist/plugins/golang/atlas/renderers/template-shared.js.map +1 -1
  515. package/dist/plugins/golang/atlas/types.d.ts +9 -3
  516. package/dist/plugins/golang/atlas/types.d.ts.map +1 -1
  517. package/dist/plugins/golang/atlas/types.js +1 -1
  518. package/dist/plugins/golang/atlas/types.js.map +1 -1
  519. package/dist/plugins/golang/builders/function-builder.d.ts +19 -0
  520. package/dist/plugins/golang/builders/function-builder.d.ts.map +1 -0
  521. package/dist/plugins/golang/builders/function-builder.js +206 -0
  522. package/dist/plugins/golang/builders/function-builder.js.map +1 -0
  523. package/dist/plugins/golang/builders/goroutine-builder.d.ts +11 -0
  524. package/dist/plugins/golang/builders/goroutine-builder.d.ts.map +1 -0
  525. package/dist/plugins/golang/builders/goroutine-builder.js +147 -0
  526. package/dist/plugins/golang/builders/goroutine-builder.js.map +1 -0
  527. package/dist/plugins/golang/builders/interface-builder.d.ts +9 -0
  528. package/dist/plugins/golang/builders/interface-builder.d.ts.map +1 -0
  529. package/dist/plugins/golang/builders/interface-builder.js +126 -0
  530. package/dist/plugins/golang/builders/interface-builder.js.map +1 -0
  531. package/dist/plugins/golang/builders/node-utils.d.ts +8 -0
  532. package/dist/plugins/golang/builders/node-utils.d.ts.map +1 -0
  533. package/dist/plugins/golang/builders/node-utils.js +18 -0
  534. package/dist/plugins/golang/builders/node-utils.js.map +1 -0
  535. package/dist/plugins/golang/builders/struct-builder.d.ts +12 -0
  536. package/dist/plugins/golang/builders/struct-builder.d.ts.map +1 -0
  537. package/dist/plugins/golang/builders/struct-builder.js +81 -0
  538. package/dist/plugins/golang/builders/struct-builder.js.map +1 -0
  539. package/dist/plugins/golang/go-atlas-adapter.d.ts +11 -0
  540. package/dist/plugins/golang/go-atlas-adapter.d.ts.map +1 -0
  541. package/dist/plugins/golang/go-atlas-adapter.js +47 -0
  542. package/dist/plugins/golang/go-atlas-adapter.js.map +1 -0
  543. package/dist/plugins/golang/go-atlas-coordinator.d.ts +12 -0
  544. package/dist/plugins/golang/go-atlas-coordinator.d.ts.map +1 -0
  545. package/dist/plugins/golang/go-atlas-coordinator.js +76 -0
  546. package/dist/plugins/golang/go-atlas-coordinator.js.map +1 -0
  547. package/dist/plugins/golang/go-mod-reader.d.ts +2 -0
  548. package/dist/plugins/golang/go-mod-reader.d.ts.map +1 -0
  549. package/dist/plugins/golang/go-mod-reader.js +12 -0
  550. package/dist/plugins/golang/go-mod-reader.js.map +1 -0
  551. package/dist/plugins/golang/go-parse-coordinator.d.ts +31 -0
  552. package/dist/plugins/golang/go-parse-coordinator.d.ts.map +1 -0
  553. package/dist/plugins/golang/go-parse-coordinator.js +175 -0
  554. package/dist/plugins/golang/go-parse-coordinator.js.map +1 -0
  555. package/dist/plugins/golang/go-test-analyzer.d.ts +10 -0
  556. package/dist/plugins/golang/go-test-analyzer.d.ts.map +1 -0
  557. package/dist/plugins/golang/go-test-analyzer.js +90 -0
  558. package/dist/plugins/golang/go-test-analyzer.js.map +1 -0
  559. package/dist/plugins/golang/gopls-client.d.ts +31 -2
  560. package/dist/plugins/golang/gopls-client.d.ts.map +1 -1
  561. package/dist/plugins/golang/gopls-client.js +234 -36
  562. package/dist/plugins/golang/gopls-client.js.map +1 -1
  563. package/dist/plugins/golang/gopls-interface-resolver.d.ts +32 -0
  564. package/dist/plugins/golang/gopls-interface-resolver.d.ts.map +1 -0
  565. package/dist/plugins/golang/gopls-interface-resolver.js +80 -0
  566. package/dist/plugins/golang/gopls-interface-resolver.js.map +1 -0
  567. package/dist/plugins/golang/index.d.ts +15 -18
  568. package/dist/plugins/golang/index.d.ts.map +1 -1
  569. package/dist/plugins/golang/index.js +59 -327
  570. package/dist/plugins/golang/index.js.map +1 -1
  571. package/dist/plugins/golang/interface-matcher.d.ts.map +1 -1
  572. package/dist/plugins/golang/interface-matcher.js +32 -30
  573. package/dist/plugins/golang/interface-matcher.js.map +1 -1
  574. package/dist/plugins/golang/tree-sitter-bridge.d.ts +7 -26
  575. package/dist/plugins/golang/tree-sitter-bridge.d.ts.map +1 -1
  576. package/dist/plugins/golang/tree-sitter-bridge.js +36 -544
  577. package/dist/plugins/golang/tree-sitter-bridge.js.map +1 -1
  578. package/dist/plugins/golang/types.d.ts +5 -0
  579. package/dist/plugins/golang/types.d.ts.map +1 -1
  580. package/dist/plugins/java/archjson-mapper.d.ts +3 -1
  581. package/dist/plugins/java/archjson-mapper.d.ts.map +1 -1
  582. package/dist/plugins/java/archjson-mapper.js +123 -0
  583. package/dist/plugins/java/archjson-mapper.js.map +1 -1
  584. package/dist/plugins/java/dependency-extractor.js +2 -2
  585. package/dist/plugins/java/dependency-extractor.js.map +1 -1
  586. package/dist/plugins/java/index.d.ts +6 -2
  587. package/dist/plugins/java/index.d.ts.map +1 -1
  588. package/dist/plugins/java/index.js +85 -17
  589. package/dist/plugins/java/index.js.map +1 -1
  590. package/dist/plugins/java/maven-crossmodule-parser.d.ts +9 -0
  591. package/dist/plugins/java/maven-crossmodule-parser.d.ts.map +1 -0
  592. package/dist/plugins/java/maven-crossmodule-parser.js +54 -0
  593. package/dist/plugins/java/maven-crossmodule-parser.js.map +1 -0
  594. package/dist/plugins/java/tree-sitter-bridge.d.ts +5 -2
  595. package/dist/plugins/java/tree-sitter-bridge.d.ts.map +1 -1
  596. package/dist/plugins/java/tree-sitter-bridge.js +103 -38
  597. package/dist/plugins/java/tree-sitter-bridge.js.map +1 -1
  598. package/dist/plugins/java/types.d.ts +7 -0
  599. package/dist/plugins/java/types.d.ts.map +1 -1
  600. package/dist/plugins/kotlin/archjson-mapper.d.ts +12 -0
  601. package/dist/plugins/kotlin/archjson-mapper.d.ts.map +1 -0
  602. package/dist/plugins/kotlin/archjson-mapper.js +157 -0
  603. package/dist/plugins/kotlin/archjson-mapper.js.map +1 -0
  604. package/dist/plugins/kotlin/builders/class-builder.d.ts +27 -0
  605. package/dist/plugins/kotlin/builders/class-builder.d.ts.map +1 -0
  606. package/dist/plugins/kotlin/builders/class-builder.js +366 -0
  607. package/dist/plugins/kotlin/builders/class-builder.js.map +1 -0
  608. package/dist/plugins/kotlin/builders/function-builder.d.ts +16 -0
  609. package/dist/plugins/kotlin/builders/function-builder.d.ts.map +1 -0
  610. package/dist/plugins/kotlin/builders/function-builder.js +172 -0
  611. package/dist/plugins/kotlin/builders/function-builder.js.map +1 -0
  612. package/dist/plugins/kotlin/builders/import-resolver.d.ts +5 -0
  613. package/dist/plugins/kotlin/builders/import-resolver.d.ts.map +1 -0
  614. package/dist/plugins/kotlin/builders/import-resolver.js +10 -0
  615. package/dist/plugins/kotlin/builders/import-resolver.js.map +1 -0
  616. package/dist/plugins/kotlin/dependency-extractor.d.ts +13 -0
  617. package/dist/plugins/kotlin/dependency-extractor.d.ts.map +1 -0
  618. package/dist/plugins/kotlin/dependency-extractor.js +104 -0
  619. package/dist/plugins/kotlin/dependency-extractor.js.map +1 -0
  620. package/dist/plugins/kotlin/index.d.ts +29 -0
  621. package/dist/plugins/kotlin/index.d.ts.map +1 -0
  622. package/dist/plugins/kotlin/index.js +246 -0
  623. package/dist/plugins/kotlin/index.js.map +1 -0
  624. package/dist/plugins/kotlin/kotlin-type-extractor.d.ts +7 -0
  625. package/dist/plugins/kotlin/kotlin-type-extractor.d.ts.map +1 -0
  626. package/dist/plugins/kotlin/kotlin-type-extractor.js +96 -0
  627. package/dist/plugins/kotlin/kotlin-type-extractor.js.map +1 -0
  628. package/dist/plugins/kotlin/tree-sitter-bridge.d.ts +15 -0
  629. package/dist/plugins/kotlin/tree-sitter-bridge.d.ts.map +1 -0
  630. package/dist/plugins/kotlin/tree-sitter-bridge.js +78 -0
  631. package/dist/plugins/kotlin/tree-sitter-bridge.js.map +1 -0
  632. package/dist/plugins/kotlin/types.d.ts +48 -0
  633. package/dist/plugins/kotlin/types.d.ts.map +1 -0
  634. package/dist/plugins/kotlin/types.js +2 -0
  635. package/dist/plugins/kotlin/types.js.map +1 -0
  636. package/dist/plugins/python/archjson-mapper.d.ts +7 -2
  637. package/dist/plugins/python/archjson-mapper.d.ts.map +1 -1
  638. package/dist/plugins/python/archjson-mapper.js +117 -10
  639. package/dist/plugins/python/archjson-mapper.js.map +1 -1
  640. package/dist/plugins/python/dependency-extractor.js +1 -1
  641. package/dist/plugins/python/dependency-extractor.js.map +1 -1
  642. package/dist/plugins/python/import-extractor.d.ts +11 -0
  643. package/dist/plugins/python/import-extractor.d.ts.map +1 -0
  644. package/dist/plugins/python/import-extractor.js +67 -0
  645. package/dist/plugins/python/import-extractor.js.map +1 -0
  646. package/dist/plugins/python/index.d.ts +8 -3
  647. package/dist/plugins/python/index.d.ts.map +1 -1
  648. package/dist/plugins/python/index.js +98 -12
  649. package/dist/plugins/python/index.js.map +1 -1
  650. package/dist/plugins/python/tree-sitter-bridge.d.ts +5 -2
  651. package/dist/plugins/python/tree-sitter-bridge.d.ts.map +1 -1
  652. package/dist/plugins/python/tree-sitter-bridge.js +117 -49
  653. package/dist/plugins/python/tree-sitter-bridge.js.map +1 -1
  654. package/dist/plugins/python/types.d.ts +6 -0
  655. package/dist/plugins/python/types.d.ts.map +1 -1
  656. package/dist/plugins/shared/mapper-utils.d.ts +1 -1
  657. package/dist/plugins/shared/mapper-utils.d.ts.map +1 -1
  658. package/dist/plugins/shared/mapper-utils.js.map +1 -1
  659. package/dist/plugins/shared/native-parser-backend.d.ts +33 -0
  660. package/dist/plugins/shared/native-parser-backend.d.ts.map +1 -0
  661. package/dist/plugins/shared/native-parser-backend.js +84 -0
  662. package/dist/plugins/shared/native-parser-backend.js.map +1 -0
  663. package/dist/plugins/shared/parser-backend.d.ts +13 -0
  664. package/dist/plugins/shared/parser-backend.d.ts.map +1 -0
  665. package/dist/plugins/shared/parser-backend.js +38 -0
  666. package/dist/plugins/shared/parser-backend.js.map +1 -0
  667. package/dist/plugins/shared/parser-runtime.d.ts +32 -0
  668. package/dist/plugins/shared/parser-runtime.d.ts.map +1 -0
  669. package/dist/plugins/shared/parser-runtime.js +152 -0
  670. package/dist/plugins/shared/parser-runtime.js.map +1 -0
  671. package/dist/plugins/shared/plugin-factory.d.ts +5 -0
  672. package/dist/plugins/shared/plugin-factory.d.ts.map +1 -0
  673. package/dist/plugins/shared/plugin-factory.js +27 -0
  674. package/dist/plugins/shared/plugin-factory.js.map +1 -0
  675. package/dist/plugins/shared/syntax-tree.d.ts +32 -0
  676. package/dist/plugins/shared/syntax-tree.d.ts.map +1 -0
  677. package/dist/plugins/shared/syntax-tree.js +2 -0
  678. package/dist/plugins/shared/syntax-tree.js.map +1 -0
  679. package/dist/plugins/shared/wasm-parser-backend.d.ts +18 -0
  680. package/dist/plugins/shared/wasm-parser-backend.d.ts.map +1 -0
  681. package/dist/plugins/shared/wasm-parser-backend.js +118 -0
  682. package/dist/plugins/shared/wasm-parser-backend.js.map +1 -0
  683. package/dist/plugins/typescript/builders/module-graph-builder.d.ts +2 -2
  684. package/dist/plugins/typescript/builders/module-graph-builder.d.ts.map +1 -1
  685. package/dist/plugins/typescript/builders/module-graph-builder.js +31 -9
  686. package/dist/plugins/typescript/builders/module-graph-builder.js.map +1 -1
  687. package/dist/plugins/typescript/index.d.ts +3 -2
  688. package/dist/plugins/typescript/index.d.ts.map +1 -1
  689. package/dist/plugins/typescript/index.js +116 -10
  690. package/dist/plugins/typescript/index.js.map +1 -1
  691. package/dist/plugins/typescript/typescript-analyzer.d.ts +2 -2
  692. package/dist/plugins/typescript/typescript-analyzer.d.ts.map +1 -1
  693. package/dist/plugins/typescript/typescript-analyzer.js +1 -1
  694. package/dist/plugins/typescript/typescript-analyzer.js.map +1 -1
  695. package/dist/types/cognitive-summary.d.ts +20 -0
  696. package/dist/types/cognitive-summary.d.ts.map +1 -0
  697. package/dist/types/cognitive-summary.js +2 -0
  698. package/dist/types/cognitive-summary.js.map +1 -0
  699. package/dist/types/config-cli.d.ts +4 -0
  700. package/dist/types/config-cli.d.ts.map +1 -1
  701. package/dist/types/config-global.d.ts +10 -0
  702. package/dist/types/config-global.d.ts.map +1 -1
  703. package/dist/types/config.d.ts +1 -0
  704. package/dist/types/config.d.ts.map +1 -1
  705. package/dist/types/config.js +1 -0
  706. package/dist/types/config.js.map +1 -1
  707. package/dist/types/{extensions.d.ts → extensions/go-atlas.d.ts} +5 -106
  708. package/dist/types/extensions/go-atlas.d.ts.map +1 -0
  709. package/dist/types/extensions/go-atlas.js +2 -0
  710. package/dist/types/extensions/go-atlas.js.map +1 -0
  711. package/dist/types/extensions/index.d.ts +15 -0
  712. package/dist/types/extensions/index.d.ts.map +1 -0
  713. package/dist/types/extensions/index.js +5 -0
  714. package/dist/types/extensions/index.js.map +1 -0
  715. package/dist/types/extensions/project-semantics.d.ts +55 -0
  716. package/dist/types/extensions/project-semantics.d.ts.map +1 -0
  717. package/dist/types/extensions/project-semantics.js +126 -0
  718. package/dist/types/extensions/project-semantics.js.map +1 -0
  719. package/dist/types/extensions/test-analysis.d.ts +68 -0
  720. package/dist/types/extensions/test-analysis.d.ts.map +1 -0
  721. package/dist/types/extensions/test-analysis.js +2 -0
  722. package/dist/types/extensions/test-analysis.js.map +1 -0
  723. package/dist/types/extensions/ts-analysis.d.ts +33 -0
  724. package/dist/types/extensions/ts-analysis.d.ts.map +1 -0
  725. package/dist/types/extensions/ts-analysis.js +2 -0
  726. package/dist/types/extensions/ts-analysis.js.map +1 -0
  727. package/dist/types/fitness-rules.d.ts +34 -0
  728. package/dist/types/fitness-rules.d.ts.map +1 -0
  729. package/dist/types/fitness-rules.js +2 -0
  730. package/dist/types/fitness-rules.js.map +1 -0
  731. package/dist/types/git-history.d.ts +68 -0
  732. package/dist/types/git-history.d.ts.map +1 -0
  733. package/dist/types/git-history.js +2 -0
  734. package/dist/types/git-history.js.map +1 -0
  735. package/dist/types/index.d.ts +38 -29
  736. package/dist/types/index.d.ts.map +1 -1
  737. package/dist/types/index.js +2 -1
  738. package/dist/types/index.js.map +1 -1
  739. package/dist/types/metric-vector.d.ts +17 -0
  740. package/dist/types/metric-vector.d.ts.map +1 -0
  741. package/dist/types/metric-vector.js +2 -0
  742. package/dist/types/metric-vector.js.map +1 -0
  743. package/dist/types/parser-runtime.d.ts +4 -0
  744. package/dist/types/parser-runtime.d.ts.map +1 -0
  745. package/dist/types/parser-runtime.js +5 -0
  746. package/dist/types/parser-runtime.js.map +1 -0
  747. package/dist/utils/cli-detector.js +2 -2
  748. package/dist/utils/cli-detector.js.map +1 -1
  749. package/dist/utils/tsconfig-finder.d.ts.map +1 -1
  750. package/dist/utils/tsconfig-finder.js +6 -1
  751. package/dist/utils/tsconfig-finder.js.map +1 -1
  752. package/package.json +32 -16
  753. package/dist/cli/cache-manager.d.ts.map +0 -1
  754. package/dist/cli/cache-manager.js.map +0 -1
  755. package/dist/cli/error-handler.d.ts +0 -15
  756. package/dist/cli/error-handler.d.ts.map +0 -1
  757. package/dist/cli/error-handler.js.map +0 -1
  758. package/dist/cli/errors.d.ts.map +0 -1
  759. package/dist/cli/errors.js +0 -31
  760. package/dist/cli/errors.js.map +0 -1
  761. package/dist/cli/progress.d.ts.map +0 -1
  762. package/dist/cli/progress.js.map +0 -1
  763. package/dist/types/extensions.d.ts.map +0 -1
  764. package/dist/types/extensions.js +0 -4
  765. package/dist/types/extensions.js.map +0 -1
  766. package/node_modules/node-addon-api/LICENSE.md +0 -9
  767. package/node_modules/node-addon-api/README.md +0 -95
  768. package/node_modules/node-addon-api/common.gypi +0 -21
  769. package/node_modules/node-addon-api/except.gypi +0 -25
  770. package/node_modules/node-addon-api/index.js +0 -14
  771. package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
  772. package/node_modules/node-addon-api/napi-inl.h +0 -7033
  773. package/node_modules/node-addon-api/napi.h +0 -3309
  774. package/node_modules/node-addon-api/node_addon_api.gyp +0 -42
  775. package/node_modules/node-addon-api/node_api.gyp +0 -9
  776. package/node_modules/node-addon-api/noexcept.gypi +0 -26
  777. package/node_modules/node-addon-api/nothing.c +0 -0
  778. package/node_modules/node-addon-api/package-support.json +0 -21
  779. package/node_modules/node-addon-api/package.json +0 -480
  780. package/node_modules/node-addon-api/tools/README.md +0 -73
  781. package/node_modules/node-addon-api/tools/check-napi.js +0 -99
  782. package/node_modules/node-addon-api/tools/clang-format.js +0 -71
  783. package/node_modules/node-addon-api/tools/conversion.js +0 -301
  784. package/node_modules/node-gyp-build/README.md +0 -58
  785. package/node_modules/node-gyp-build/SECURITY.md +0 -5
  786. package/node_modules/node-gyp-build/bin.js +0 -84
  787. package/node_modules/node-gyp-build/build-test.js +0 -19
  788. package/node_modules/node-gyp-build/index.js +0 -6
  789. package/node_modules/node-gyp-build/node-gyp-build.js +0 -207
  790. package/node_modules/node-gyp-build/optional.js +0 -7
  791. package/node_modules/node-gyp-build/package.json +0 -43
  792. package/node_modules/tree-sitter/README.md +0 -128
  793. package/node_modules/tree-sitter/binding.gyp +0 -80
  794. package/node_modules/tree-sitter/index.js +0 -916
  795. package/node_modules/tree-sitter/package.json +0 -76
  796. package/node_modules/tree-sitter/prebuilds/linux-x64/node.napi.glibc.node +0 -0
  797. package/node_modules/tree-sitter/src/addon_data.h +0 -47
  798. package/node_modules/tree-sitter/src/binding.cc +0 -35
  799. package/node_modules/tree-sitter/src/conversions.cc +0 -140
  800. package/node_modules/tree-sitter/src/conversions.h +0 -22
  801. package/node_modules/tree-sitter/src/language.cc +0 -106
  802. package/node_modules/tree-sitter/src/language.h +0 -17
  803. package/node_modules/tree-sitter/src/logger.cc +0 -70
  804. package/node_modules/tree-sitter/src/logger.h +0 -19
  805. package/node_modules/tree-sitter/src/lookaheaditerator.cc +0 -122
  806. package/node_modules/tree-sitter/src/lookaheaditerator.h +0 -33
  807. package/node_modules/tree-sitter/src/node.cc +0 -1088
  808. package/node_modules/tree-sitter/src/node.h +0 -30
  809. package/node_modules/tree-sitter/src/parser.cc +0 -306
  810. package/node_modules/tree-sitter/src/parser.h +0 -35
  811. package/node_modules/tree-sitter/src/query.cc +0 -397
  812. package/node_modules/tree-sitter/src/query.h +0 -40
  813. package/node_modules/tree-sitter/src/tree.cc +0 -316
  814. package/node_modules/tree-sitter/src/tree.h +0 -45
  815. package/node_modules/tree-sitter/src/tree_cursor.cc +0 -213
  816. package/node_modules/tree-sitter/src/tree_cursor.h +0 -52
  817. package/node_modules/tree-sitter/tree-sitter.d.ts +0 -1042
  818. package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +0 -1478
  819. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +0 -48
  820. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +0 -41
  821. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +0 -291
  822. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +0 -68
  823. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +0 -146
  824. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +0 -11
  825. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +0 -523
  826. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +0 -36
  827. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +0 -21
  828. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +0 -293
  829. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +0 -293
  830. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +0 -52
  831. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +0 -483
  832. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +0 -54
  833. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +0 -12
  834. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +0 -875
  835. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +0 -2293
  836. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +0 -286
  837. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +0 -48
  838. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +0 -239
  839. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +0 -4350
  840. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +0 -34
  841. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +0 -95
  842. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +0 -911
  843. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +0 -133
  844. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +0 -1034
  845. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +0 -399
  846. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +0 -170
  847. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +0 -31
  848. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +0 -717
  849. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +0 -48
  850. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +0 -11
  851. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +0 -1
  852. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +0 -414
  853. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +0 -29
  854. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +0 -1
  855. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +0 -448
  856. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +0 -1
  857. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +0 -1
  858. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +0 -733
  859. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +0 -881
  860. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +0 -75
  861. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +0 -24
  862. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +0 -113
  863. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +0 -1314
  864. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +0 -1935
  865. package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +0 -31
  866. package/scripts/postinstall-tree-sitter.mjs +0 -28
@@ -1,916 +0,0 @@
1
- const binding = typeof process.versions.bun === "string" ?
2
- // Statically analyzable enough for `bun build --compile` to embed the tree-sitter.node napi addon
3
- require(`./prebuilds/${process.platform}-${process.arch}/tree-sitter.node`) :
4
- require('node-gyp-build')(__dirname);
5
- const {Query, Parser, NodeMethods, Tree, TreeCursor, LookaheadIterator} = binding;
6
-
7
- const util = require('util');
8
-
9
- /*
10
- * Tree
11
- */
12
-
13
- const {rootNode, rootNodeWithOffset, edit} = Tree.prototype;
14
-
15
- Object.defineProperty(Tree.prototype, 'rootNode', {
16
- get() {
17
- /*
18
- Due to a race condition arising from Jest's worker pool, "this"
19
- has no knowledge of the native extension if the extension has not
20
- yet loaded when multiple Jest tests are being run simultaneously.
21
- If the extension has correctly loaded, "this" should be an instance
22
- of the class whose prototype we are acting on (in this case, Tree).
23
- Furthermore, the race condition sometimes results in the function in
24
- question being undefined even when the context is correct, so we also
25
- perform a null function check.
26
- */
27
- if (this instanceof Tree && rootNode) {
28
- return unmarshalNode(rootNode.call(this), this);
29
- }
30
- },
31
- // Jest worker pool may attempt to override property due to race condition,
32
- // we don't want to error on this
33
- configurable: true
34
- });
35
-
36
- Tree.prototype.rootNodeWithOffset = function(offset_bytes, offset_extent) {
37
- return unmarshalNode(rootNodeWithOffset.call(this, offset_bytes, offset_extent.row, offset_extent.column), this);
38
- }
39
-
40
- Tree.prototype.edit = function(arg) {
41
- if (this instanceof Tree && edit) {
42
- edit.call(
43
- this,
44
- arg.startPosition.row, arg.startPosition.column,
45
- arg.oldEndPosition.row, arg.oldEndPosition.column,
46
- arg.newEndPosition.row, arg.newEndPosition.column,
47
- arg.startIndex,
48
- arg.oldEndIndex,
49
- arg.newEndIndex
50
- );
51
- }
52
- };
53
-
54
- Tree.prototype.walk = function() {
55
- return this.rootNode.walk()
56
- };
57
-
58
- /*
59
- * Node
60
- */
61
-
62
- class SyntaxNode {
63
- constructor(tree) {
64
- this.tree = tree;
65
- }
66
-
67
- [util.inspect.custom]() {
68
- return this.constructor.name + ' {\n' +
69
- ' type: ' + this.type + ',\n' +
70
- ' startPosition: ' + pointToString(this.startPosition) + ',\n' +
71
- ' endPosition: ' + pointToString(this.endPosition) + ',\n' +
72
- ' childCount: ' + this.childCount + ',\n' +
73
- '}'
74
- }
75
-
76
- get id() {
77
- marshalNode(this);
78
- return NodeMethods.id(this.tree);
79
- }
80
-
81
- get typeId() {
82
- marshalNode(this);
83
- return NodeMethods.typeId(this.tree);
84
- }
85
-
86
- get grammarId() {
87
- marshalNode(this);
88
- return NodeMethods.grammarId(this.tree);
89
- }
90
-
91
- get type() {
92
- marshalNode(this);
93
- return NodeMethods.type(this.tree);
94
- }
95
-
96
- get grammarType() {
97
- marshalNode(this);
98
- return NodeMethods.grammarType(this.tree);
99
- }
100
-
101
- get isExtra() {
102
- marshalNode(this);
103
- return NodeMethods.isExtra(this.tree);
104
- }
105
-
106
- get isNamed() {
107
- marshalNode(this);
108
- return NodeMethods.isNamed(this.tree);
109
- }
110
-
111
- get isMissing() {
112
- marshalNode(this);
113
- return NodeMethods.isMissing(this.tree);
114
- }
115
-
116
- get hasChanges() {
117
- marshalNode(this);
118
- return NodeMethods.hasChanges(this.tree);
119
- }
120
-
121
- get hasError() {
122
- marshalNode(this);
123
- return NodeMethods.hasError(this.tree);
124
- }
125
-
126
- get isError() {
127
- marshalNode(this);
128
- return NodeMethods.isError(this.tree);
129
- }
130
-
131
- get text() {
132
- return this.tree.getText(this);
133
- }
134
-
135
- get startPosition() {
136
- marshalNode(this);
137
- NodeMethods.startPosition(this.tree);
138
- return unmarshalPoint();
139
- }
140
-
141
- get endPosition() {
142
- marshalNode(this);
143
- NodeMethods.endPosition(this.tree);
144
- return unmarshalPoint();
145
- }
146
-
147
- get startIndex() {
148
- marshalNode(this);
149
- return NodeMethods.startIndex(this.tree);
150
- }
151
-
152
- get endIndex() {
153
- marshalNode(this);
154
- return NodeMethods.endIndex(this.tree);
155
- }
156
-
157
- get parent() {
158
- marshalNode(this);
159
- return unmarshalNode(NodeMethods.parent(this.tree), this.tree);
160
- }
161
-
162
- get children() {
163
- marshalNode(this);
164
- return unmarshalNodes(NodeMethods.children(this.tree), this.tree);
165
- }
166
-
167
- get namedChildren() {
168
- marshalNode(this);
169
- return unmarshalNodes(NodeMethods.namedChildren(this.tree), this.tree);
170
- }
171
-
172
- get childCount() {
173
- marshalNode(this);
174
- return NodeMethods.childCount(this.tree);
175
- }
176
-
177
- get namedChildCount() {
178
- marshalNode(this);
179
- return NodeMethods.namedChildCount(this.tree);
180
- }
181
-
182
- get firstChild() {
183
- marshalNode(this);
184
- return unmarshalNode(NodeMethods.firstChild(this.tree), this.tree);
185
- }
186
-
187
- get firstNamedChild() {
188
- marshalNode(this);
189
- return unmarshalNode(NodeMethods.firstNamedChild(this.tree), this.tree);
190
- }
191
-
192
- get lastChild() {
193
- marshalNode(this);
194
- return unmarshalNode(NodeMethods.lastChild(this.tree), this.tree);
195
- }
196
-
197
- get lastNamedChild() {
198
- marshalNode(this);
199
- return unmarshalNode(NodeMethods.lastNamedChild(this.tree), this.tree);
200
- }
201
-
202
- get nextSibling() {
203
- marshalNode(this);
204
- return unmarshalNode(NodeMethods.nextSibling(this.tree), this.tree);
205
- }
206
-
207
- get nextNamedSibling() {
208
- marshalNode(this);
209
- return unmarshalNode(NodeMethods.nextNamedSibling(this.tree), this.tree);
210
- }
211
-
212
- get previousSibling() {
213
- marshalNode(this);
214
- return unmarshalNode(NodeMethods.previousSibling(this.tree), this.tree);
215
- }
216
-
217
- get previousNamedSibling() {
218
- marshalNode(this);
219
- return unmarshalNode(NodeMethods.previousNamedSibling(this.tree), this.tree);
220
- }
221
-
222
- get parseState() {
223
- marshalNode(this);
224
- return NodeMethods.parseState(this.tree);
225
- }
226
-
227
- get nextParseState() {
228
- marshalNode(this);
229
- return NodeMethods.nextParseState(this.tree);
230
- }
231
-
232
- get descendantCount() {
233
- marshalNode(this);
234
- return NodeMethods.descendantCount(this.tree);
235
- }
236
-
237
- toString() {
238
- marshalNode(this);
239
- return NodeMethods.toString(this.tree);
240
- }
241
-
242
- child(index) {
243
- marshalNode(this);
244
- return unmarshalNode(NodeMethods.child(this.tree, index), this.tree);
245
- }
246
-
247
- namedChild(index) {
248
- marshalNode(this);
249
- return unmarshalNode(NodeMethods.namedChild(this.tree, index), this.tree);
250
- }
251
-
252
- childForFieldName(fieldName) {
253
- marshalNode(this);
254
- return unmarshalNode(NodeMethods.childForFieldName(this.tree, fieldName), this.tree);
255
- }
256
-
257
- childForFieldId(fieldId) {
258
- marshalNode(this);
259
- return unmarshalNode(NodeMethods.childForFieldId(this.tree, fieldId), this.tree);
260
- }
261
-
262
- fieldNameForChild(childIndex) {
263
- marshalNode(this);
264
- return NodeMethods.fieldNameForChild(this.tree, childIndex);
265
- }
266
-
267
- fieldNameForNamedChild(namedChildIndex) {
268
- marshalNode(this);
269
- return NodeMethods.fieldNameForNamedChild(this.tree, namedChildIndex);
270
- }
271
-
272
- childrenForFieldName(fieldName) {
273
- marshalNode(this);
274
- return unmarshalNodes(NodeMethods.childrenForFieldName(this.tree, fieldName), this.tree);
275
- }
276
-
277
- childrenForFieldId(fieldId) {
278
- marshalNode(this);
279
- return unmarshalNodes(NodeMethods.childrenForFieldId(this.tree, fieldId), this.tree);
280
- }
281
-
282
- firstChildForIndex(index) {
283
- marshalNode(this);
284
- return unmarshalNode(NodeMethods.firstChildForIndex(this.tree, index), this.tree);
285
- }
286
-
287
- firstNamedChildForIndex(index) {
288
- marshalNode(this);
289
- return unmarshalNode(NodeMethods.firstNamedChildForIndex(this.tree, index), this.tree);
290
- }
291
-
292
- childWithDescendant(descendant) {
293
- marshalNodes([this, descendant]);
294
- return unmarshalNode(NodeMethods.childWithDescendant(this.tree, descendant.tree), this.tree);
295
- }
296
-
297
- namedDescendantForIndex(start, end) {
298
- marshalNode(this);
299
- if (end == null) end = start;
300
- return unmarshalNode(NodeMethods.namedDescendantForIndex(this.tree, start, end), this.tree);
301
- }
302
-
303
- descendantForIndex(start, end) {
304
- marshalNode(this);
305
- if (end == null) end = start;
306
- return unmarshalNode(NodeMethods.descendantForIndex(this.tree, start, end), this.tree);
307
- }
308
-
309
- descendantsOfType(types, start, end) {
310
- marshalNode(this);
311
- if (typeof types === 'string') types = [types]
312
- return unmarshalNodes(NodeMethods.descendantsOfType(this.tree, types, start, end), this.tree);
313
- }
314
-
315
- namedDescendantForPosition(start, end) {
316
- marshalNode(this);
317
- if (end == null) end = start;
318
- return unmarshalNode(NodeMethods.namedDescendantForPosition(this.tree, start, end), this.tree);
319
- }
320
-
321
- descendantForPosition(start, end) {
322
- marshalNode(this);
323
- if (end == null) end = start;
324
- return unmarshalNode(NodeMethods.descendantForPosition(this.tree, start, end), this.tree);
325
- }
326
-
327
- closest(types) {
328
- marshalNode(this);
329
- if (typeof types === 'string') types = [types]
330
- return unmarshalNode(NodeMethods.closest(this.tree, types), this.tree);
331
- }
332
-
333
- walk () {
334
- marshalNode(this);
335
- const cursor = NodeMethods.walk(this.tree);
336
- cursor.tree = this.tree;
337
- unmarshalNode(cursor.currentNode, this.tree);
338
- return cursor;
339
- }
340
- }
341
-
342
- /*
343
- * Parser
344
- */
345
-
346
- const {parse, setLanguage} = Parser.prototype;
347
- const languageSymbol = Symbol('parser.language');
348
-
349
- Parser.prototype.setLanguage = function(language) {
350
- if (this instanceof Parser && setLanguage) {
351
- setLanguage.call(this, language);
352
- }
353
- this[languageSymbol] = language;
354
- if (!language.nodeSubclasses) {
355
- initializeLanguageNodeClasses(language)
356
- }
357
- return this;
358
- };
359
-
360
- Parser.prototype.getLanguage = function(_language) {
361
- return this[languageSymbol] || null;
362
- };
363
-
364
- Parser.prototype.parse = function(input, oldTree, {bufferSize, includedRanges}={}) {
365
- let getText, treeInput = input
366
- if (typeof input === 'string') {
367
- const inputString = input;
368
- input = (offset, _position) => inputString.slice(offset)
369
- getText = getTextFromString
370
- } else {
371
- getText = getTextFromFunction
372
- }
373
- const tree = this instanceof Parser && parse
374
- ? parse.call(
375
- this,
376
- input,
377
- oldTree,
378
- bufferSize,
379
- includedRanges,
380
- )
381
- : undefined;
382
-
383
- if (tree) {
384
- tree.input = treeInput
385
- tree.getText = getText
386
- tree.language = this.getLanguage()
387
- }
388
- return tree
389
- };
390
-
391
- /*
392
- * TreeCursor
393
- */
394
-
395
- const {startPosition, endPosition, currentNode} = TreeCursor.prototype;
396
-
397
- Object.defineProperties(TreeCursor.prototype, {
398
- currentNode: {
399
- get() {
400
- if (this instanceof TreeCursor && currentNode) {
401
- return unmarshalNode(currentNode.call(this), this.tree);
402
- }
403
- },
404
- configurable: true
405
- },
406
- startPosition: {
407
- get() {
408
- if (this instanceof TreeCursor && startPosition) {
409
- startPosition.call(this);
410
- return unmarshalPoint();
411
- }
412
- },
413
- configurable: true
414
- },
415
- endPosition: {
416
- get() {
417
- if (this instanceof TreeCursor && endPosition) {
418
- endPosition.call(this);
419
- return unmarshalPoint();
420
- }
421
- },
422
- configurable: true
423
- },
424
- nodeText: {
425
- get() {
426
- return this.tree.getText(this)
427
- },
428
- configurable: true
429
- }
430
- });
431
-
432
- /*
433
- * Query
434
- */
435
-
436
- const {_matches, _captures} = Query.prototype;
437
-
438
- const PREDICATE_STEP_TYPE = {
439
- DONE: 0,
440
- CAPTURE: 1,
441
- STRING: 2,
442
- }
443
-
444
- const ZERO_POINT = { row: 0, column: 0 };
445
-
446
- Query.prototype._init = function() {
447
- /*
448
- * Initialize predicate functions
449
- * format: [type1, value1, type2, value2, ...]
450
- */
451
- const predicateDescriptions = this._getPredicates();
452
- const patternCount = predicateDescriptions.length;
453
-
454
- const setProperties = new Array(patternCount);
455
- const assertedProperties = new Array(patternCount);
456
- const refutedProperties = new Array(patternCount);
457
- const predicates = new Array(patternCount);
458
-
459
- const FIRST = 0
460
- const SECOND = 2
461
- const THIRD = 4
462
-
463
- for (let i = 0; i < predicateDescriptions.length; i++) {
464
- predicates[i] = [];
465
-
466
- for (let j = 0; j < predicateDescriptions[i].length; j++) {
467
-
468
- const steps = predicateDescriptions[i][j];
469
- const stepsLength = steps.length / 2;
470
-
471
- if (steps[FIRST] !== PREDICATE_STEP_TYPE.STRING) {
472
- throw new Error('Predicates must begin with a literal value');
473
- }
474
-
475
- const operator = steps[FIRST + 1];
476
-
477
- let isPositive = true;
478
- let matchAll = true;
479
- let captureName;
480
- switch (operator) {
481
- case 'any-not-eq?':
482
- case 'not-eq?':
483
- isPositive = false;
484
- case 'any-eq?':
485
- case 'eq?':
486
- if (stepsLength !== 3) throw new Error(
487
- `Wrong number of arguments to \`#eq?\` predicate. Expected 2, got ${stepsLength - 1}`
488
- );
489
- if (steps[SECOND] !== PREDICATE_STEP_TYPE.CAPTURE) throw new Error(
490
- `First argument of \`#eq?\` predicate must be a capture. Got "${steps[SECOND + 1]}"`
491
- );
492
- matchAll = !operator.startsWith('any-');
493
- if (steps[THIRD] === PREDICATE_STEP_TYPE.CAPTURE) {
494
- const captureName1 = steps[SECOND + 1];
495
- const captureName2 = steps[THIRD + 1];
496
- predicates[i].push(function (captures) {
497
- let nodes_1 = [];
498
- let nodes_2 = [];
499
- for (const c of captures) {
500
- if (c.name === captureName1) nodes_1.push(c.node);
501
- if (c.name === captureName2) nodes_2.push(c.node);
502
- }
503
- let compare = (n1, n2, positive) => {
504
- return positive ?
505
- n1.text === n2.text :
506
- n1.text !== n2.text;
507
- };
508
- return matchAll
509
- ? nodes_1.every(n1 => nodes_2.some(n2 => compare(n1, n2, isPositive)))
510
- : nodes_1.some(n1 => nodes_2.some(n2 => compare(n1, n2, isPositive)));
511
- });
512
- } else {
513
- captureName = steps[SECOND + 1];
514
- const stringValue = steps[THIRD + 1];
515
- let matches = (n) => n.text === stringValue;
516
- let doesNotMatch = (n) => n.text !== stringValue;
517
- predicates[i].push(function (captures) {
518
- let nodes = [];
519
- for (const c of captures) {
520
- if (c.name === captureName) nodes.push(c.node);
521
- }
522
- let test = isPositive ? matches : doesNotMatch;
523
- return matchAll
524
- ? nodes.every(test)
525
- : nodes.some(test);
526
- });
527
- }
528
- break;
529
-
530
- case 'any-not-match?':
531
- case 'not-match?':
532
- isPositive = false;
533
- case 'any-match?':
534
- case 'match?':
535
- if (stepsLength !== 3) throw new Error(
536
- `Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${stepsLength - 1}.`
537
- );
538
- if (steps[SECOND] !== PREDICATE_STEP_TYPE.CAPTURE) throw new Error(
539
- `First argument of \`#match?\` predicate must be a capture. Got "${steps[SECOND + 1]}".`
540
- );
541
- if (steps[THIRD] !== PREDICATE_STEP_TYPE.STRING) throw new Error(
542
- `Second argument of \`#match?\` predicate must be a string. Got @${steps[THIRD + 1]}.`
543
- );
544
- captureName = steps[SECOND + 1];
545
- const regex = new RegExp(steps[THIRD + 1]);
546
- matchAll = !operator.startsWith('any-');
547
- predicates[i].push(function (captures) {
548
- const nodes = [];
549
- for (const c of captures) {
550
- if (c.name === captureName) nodes.push(c.node.text);
551
- }
552
- let test = (text, positive) => {
553
- return positive ?
554
- regex.test(text) :
555
- !regex.test(text);
556
- };
557
- if (nodes.length === 0) return !isPositive;
558
- return matchAll
559
- ? nodes.every(text => test(text, isPositive))
560
- : nodes.some(text => test(text, isPositive))
561
- });
562
- break;
563
-
564
- case 'set!':
565
- if (stepsLength < 2 || stepsLength > 3) throw new Error(
566
- `Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${stepsLength - 1}.`
567
- );
568
- if (steps.some((s, i) => (i % 2 !== 1) && s !== PREDICATE_STEP_TYPE.STRING)) throw new Error(
569
- `Arguments to \`#set!\` predicate must be a strings.".`
570
- );
571
- if (!setProperties[i]) setProperties[i] = {};
572
- setProperties[i][steps[SECOND + 1]] = steps[THIRD] ? steps[THIRD + 1] : null;
573
- break;
574
-
575
- case 'is?':
576
- case 'is-not?':
577
- if (stepsLength < 2 || stepsLength > 3) throw new Error(
578
- `Wrong number of arguments to \`#${operator}\` predicate. Expected 1 or 2. Got ${stepsLength - 1}.`
579
- );
580
- if (steps.some((s, i) => (i % 2 !== 1) && s !== PREDICATE_STEP_TYPE.STRING)) throw new Error(
581
- `Arguments to \`#${operator}\` predicate must be a strings.".`
582
- );
583
- const properties = operator === 'is?' ? assertedProperties : refutedProperties;
584
- if (!properties[i]) properties[i] = {};
585
- properties[i][steps[SECOND + 1]] = steps[THIRD] ? steps[THIRD + 1] : null;
586
- break;
587
-
588
- case 'not-any-of?':
589
- isPositive = false;
590
- case 'any-of?':
591
- if (stepsLength < 2) throw new Error(
592
- `Wrong number of arguments to \`#${operator}\` predicate. Expected at least 1. Got ${stepsLength - 1}.`
593
- );
594
- if (steps[SECOND] !== PREDICATE_STEP_TYPE.CAPTURE) throw new Error(
595
- `First argument of \`#${operator}\` predicate must be a capture. Got "${steps[1].value}".`
596
- );
597
- const stringValues = [];
598
- for (let k = THIRD; k < 2 * stepsLength; k += 2) {
599
- if (steps[k] !== PREDICATE_STEP_TYPE.STRING) throw new Error(
600
- `Arguments to \`#${operator}\` predicate must be a strings.".`
601
- );
602
- stringValues.push(steps[k + 1]);
603
- }
604
- captureName = steps[SECOND + 1];
605
- predicates[i].push(function (captures) {
606
- const nodes = [];
607
- for (const c of captures) {
608
- if (c.name === captureName) nodes.push(c.node.text);
609
- }
610
- if (nodes.length === 0) return !isPositive;
611
- return nodes.every(text => stringValues.includes(text)) === isPositive;
612
- });
613
- break;
614
-
615
- default:
616
- throw new Error(`Unknown query predicate \`#${steps[FIRST + 1]}\``);
617
- }
618
- }
619
- }
620
-
621
- this.predicates = Object.freeze(predicates);
622
- this.setProperties = Object.freeze(setProperties);
623
- this.assertedProperties = Object.freeze(assertedProperties);
624
- this.refutedProperties = Object.freeze(refutedProperties);
625
- }
626
-
627
- Query.prototype.matches = function(
628
- node,
629
- {
630
- startPosition = ZERO_POINT,
631
- endPosition = ZERO_POINT,
632
- startIndex = 0,
633
- endIndex = 0,
634
- matchLimit = 0xFFFFFFFF,
635
- maxStartDepth = 0xFFFFFFFF,
636
- timeoutMicros = 0
637
- } = {}
638
- ) {
639
- marshalNode(node);
640
- const [returnedMatches, returnedNodes] = _matches.call(this, node.tree,
641
- startPosition.row, startPosition.column,
642
- endPosition.row, endPosition.column,
643
- startIndex, endIndex, matchLimit, maxStartDepth, timeoutMicros
644
- );
645
- const nodes = unmarshalNodes(returnedNodes, node.tree);
646
- const results = [];
647
-
648
- let i = 0
649
- let nodeIndex = 0;
650
- while (i < returnedMatches.length) {
651
- const patternIndex = returnedMatches[i++];
652
- const captures = [];
653
-
654
- while (i < returnedMatches.length && typeof returnedMatches[i] === 'string') {
655
- const captureName = returnedMatches[i++];
656
- captures.push({
657
- name: captureName,
658
- node: nodes[nodeIndex++],
659
- })
660
- }
661
-
662
- if (this.predicates[patternIndex].every(p => p(captures))) {
663
- const result = {pattern: patternIndex, captures};
664
- const setProperties = this.setProperties[patternIndex];
665
- const assertedProperties = this.assertedProperties[patternIndex];
666
- const refutedProperties = this.refutedProperties[patternIndex];
667
- if (setProperties) result.setProperties = setProperties;
668
- if (assertedProperties) result.assertedProperties = assertedProperties;
669
- if (refutedProperties) result.refutedProperties = refutedProperties;
670
- results.push(result);
671
- }
672
- }
673
-
674
- return results;
675
- }
676
-
677
- Query.prototype.captures = function(
678
- node,
679
- {
680
- startPosition = ZERO_POINT,
681
- endPosition = ZERO_POINT,
682
- startIndex = 0,
683
- endIndex = 0,
684
- matchLimit = 0xFFFFFFFF,
685
- maxStartDepth = 0xFFFFFFFF,
686
- timeoutMicros = 0,
687
- } = {}
688
- ) {
689
- marshalNode(node);
690
- const [returnedMatches, returnedNodes] = _captures.call(this, node.tree,
691
- startPosition.row, startPosition.column,
692
- endPosition.row, endPosition.column,
693
- startIndex, endIndex, matchLimit, maxStartDepth, timeoutMicros
694
- );
695
- const nodes = unmarshalNodes(returnedNodes, node.tree);
696
- const results = [];
697
-
698
- let i = 0
699
- let nodeIndex = 0;
700
- while (i < returnedMatches.length) {
701
- const patternIndex = returnedMatches[i++];
702
- const captureIndex = returnedMatches[i++];
703
- const captures = [];
704
-
705
- while (i < returnedMatches.length && typeof returnedMatches[i] === 'string') {
706
- const captureName = returnedMatches[i++];
707
- captures.push({
708
- name: captureName,
709
- node: nodes[nodeIndex++],
710
- })
711
- }
712
-
713
- if (this.predicates[patternIndex].every(p => p(captures))) {
714
- const result = captures[captureIndex];
715
- const setProperties = this.setProperties[patternIndex];
716
- const assertedProperties = this.assertedProperties[patternIndex];
717
- const refutedProperties = this.refutedProperties[patternIndex];
718
- if (setProperties) result.setProperties = setProperties;
719
- if (assertedProperties) result.assertedProperties = assertedProperties;
720
- if (refutedProperties) result.refutedProperties = refutedProperties;
721
- results.push(result);
722
- }
723
- }
724
-
725
- return results;
726
- }
727
-
728
- /*
729
- * LookaheadIterator
730
- */
731
-
732
- LookaheadIterator.prototype[Symbol.iterator] = function() {
733
- const self = this;
734
- return {
735
- next() {
736
- if (self._next()) {
737
- return {done: false, value: self.currentType};
738
- }
739
-
740
- return {done: true, value: ''};
741
- },
742
- };
743
- }
744
-
745
- /*
746
- * Other functions
747
- */
748
-
749
- function getTextFromString (node) {
750
- return this.input.substring(node.startIndex, node.endIndex);
751
- }
752
-
753
- function getTextFromFunction ({startIndex, endIndex}) {
754
- const {input} = this
755
- let result = '';
756
- const goalLength = endIndex - startIndex;
757
- while (result.length < goalLength) {
758
- const text = input(startIndex + result.length);
759
- result += text;
760
- }
761
- return result.slice(0, goalLength);
762
- }
763
-
764
- const {pointTransferArray} = binding;
765
-
766
- const NODE_FIELD_COUNT = 6;
767
- const ERROR_TYPE_ID = 0xFFFF
768
-
769
- function getID(buffer, offset) {
770
- const low = BigInt(buffer[offset]);
771
- const high = BigInt(buffer[offset + 1]);
772
- return (high << 32n) + low;
773
- }
774
-
775
- function unmarshalNode(value, tree, offset = 0, cache = null) {
776
- /* case 1: node from the tree cache */
777
- if (typeof value === 'object') {
778
- const node = value;
779
- return node;
780
- }
781
-
782
- /* case 2: node being transferred */
783
- const nodeTypeId = value;
784
- const NodeClass = nodeTypeId === ERROR_TYPE_ID
785
- ? SyntaxNode
786
- : tree.language.nodeSubclasses[nodeTypeId];
787
-
788
- const {nodeTransferArray} = binding;
789
- const id = getID(nodeTransferArray, offset)
790
- if (id === 0n) {
791
- return null
792
- }
793
-
794
- let cachedResult;
795
- if (cache && (cachedResult = cache.get(id)))
796
- return cachedResult;
797
-
798
- const result = new NodeClass(tree);
799
- for (let i = 0; i < NODE_FIELD_COUNT; i++) {
800
- result[i] = nodeTransferArray[offset + i];
801
- }
802
-
803
- if (cache)
804
- cache.set(id, result);
805
- else
806
- tree._cacheNode(result);
807
-
808
- return result;
809
- }
810
-
811
- function unmarshalNodes(nodes, tree) {
812
- const cache = new Map();
813
-
814
- let offset = 0;
815
- for (let i = 0, {length} = nodes; i < length; i++) {
816
- const node = unmarshalNode(nodes[i], tree, offset, cache);
817
- if (node !== nodes[i]) {
818
- nodes[i] = node;
819
- offset += NODE_FIELD_COUNT
820
- }
821
- }
822
-
823
- tree._cacheNodes(Array.from(cache.values()));
824
-
825
- return nodes;
826
- }
827
-
828
- function marshalNode(node, offset = 0) {
829
- if (!(node.tree instanceof Tree)) {
830
- throw new TypeError("SyntaxNode must belong to a Tree")
831
- }
832
- const { nodeTransferArray } = binding;
833
- for (let i = 0; i < NODE_FIELD_COUNT; i++) {
834
- nodeTransferArray[offset * NODE_FIELD_COUNT + i] = node[i];
835
- }
836
- }
837
-
838
- function marshalNodes(nodes) {
839
- for (let i = 0, { length } = nodes; i < length; i++) {
840
- marshalNode(nodes[i], i);
841
- }
842
- }
843
-
844
- function unmarshalPoint() {
845
- return {row: pointTransferArray[0], column: pointTransferArray[1]};
846
- }
847
-
848
- function pointToString(point) {
849
- return `{row: ${point.row}, column: ${point.column}}`;
850
- }
851
-
852
- function initializeLanguageNodeClasses(language) {
853
- const nodeTypeNamesById = binding.getNodeTypeNamesById(language);
854
- const nodeFieldNamesById = binding.getNodeFieldNamesById(language);
855
- const nodeTypeInfo = language.nodeTypeInfo || [];
856
-
857
- const nodeSubclasses = [];
858
- for (let id = 0, n = nodeTypeNamesById.length; id < n; id++) {
859
- nodeSubclasses[id] = SyntaxNode;
860
-
861
- const typeName = nodeTypeNamesById[id];
862
- if (!typeName) continue;
863
-
864
- const typeInfo = nodeTypeInfo.find(info => info.named && info.type === typeName);
865
- if (!typeInfo) continue;
866
-
867
- const fieldNames = [];
868
- let classBody = '\n';
869
- if (typeInfo.fields) {
870
- for (const fieldName in typeInfo.fields) {
871
- const fieldId = nodeFieldNamesById.indexOf(fieldName);
872
- if (fieldId === -1) continue;
873
- if (typeInfo.fields[fieldName].multiple) {
874
- const getterName = camelCase(fieldName) + 'Nodes';
875
- fieldNames.push(getterName);
876
- classBody += `
877
- get ${getterName}() {
878
- marshalNode(this);
879
- return unmarshalNodes(NodeMethods.childNodesForFieldId(this.tree, ${fieldId}), this.tree);
880
- }
881
- `.replace(/\s+/g, ' ') + '\n';
882
- } else {
883
- const getterName = camelCase(fieldName, false) + 'Node';
884
- fieldNames.push(getterName);
885
- classBody += `
886
- get ${getterName}() {
887
- marshalNode(this);
888
- return unmarshalNode(NodeMethods.childNodeForFieldId(this.tree, ${fieldId}), this.tree);
889
- }
890
- `.replace(/\s+/g, ' ') + '\n';
891
- }
892
- }
893
- }
894
-
895
- const className = camelCase(typeName, true) + 'Node';
896
- const nodeSubclass = eval(`class ${className} extends SyntaxNode {${classBody}}; ${className}`);
897
- nodeSubclass.prototype.type = typeName;
898
- nodeSubclass.prototype.fields = Object.freeze(fieldNames.sort())
899
- nodeSubclasses[id] = nodeSubclass;
900
- }
901
-
902
- language.nodeSubclasses = nodeSubclasses
903
- }
904
-
905
- function camelCase(name, upperCase) {
906
- name = name.replace(/_(\w)/g, (_match, letter) => letter.toUpperCase());
907
- if (upperCase) name = name[0].toUpperCase() + name.slice(1);
908
- return name;
909
- }
910
-
911
- module.exports = Parser;
912
- module.exports.Query = Query;
913
- module.exports.Tree = Tree;
914
- module.exports.SyntaxNode = SyntaxNode;
915
- module.exports.TreeCursor = TreeCursor;
916
- module.exports.LookaheadIterator = LookaheadIterator;