@coana-tech/cli 14.12.76 → 14.12.77

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 (149) hide show
  1. package/cli.mjs +1 -1
  2. package/package.json +1 -1
  3. package/reachability-analyzers-cli.mjs +1 -1
  4. package/repos/coana-tech/alucard/alucard.jar +0 -0
  5. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/cli.mjs +24669 -0
  6. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/LICENSE.md +9 -0
  7. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/README.md +95 -0
  8. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/common.gypi +21 -0
  9. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/except.gypi +25 -0
  10. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/index.js +14 -0
  11. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
  12. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi-inl.h +6941 -0
  13. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi.h +3295 -0
  14. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/node_addon_api.gyp +42 -0
  15. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/node_api.gyp +9 -0
  16. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/noexcept.gypi +26 -0
  17. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/nothing.c +0 -0
  18. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/package-support.json +21 -0
  19. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/package.json +480 -0
  20. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/README.md +73 -0
  21. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/check-napi.js +99 -0
  22. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/clang-format.js +71 -0
  23. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/conversion.js +301 -0
  24. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/LICENSE +21 -0
  25. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/README.md +58 -0
  26. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/SECURITY.md +5 -0
  27. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/bin.js +84 -0
  28. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/build-test.js +19 -0
  29. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/index.js +6 -0
  30. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  31. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/optional.js +7 -0
  32. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/package.json +43 -0
  33. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/LICENSE +21 -0
  34. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/README.md +128 -0
  35. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/binding.gyp +80 -0
  36. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/index.js +919 -0
  37. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build +16 -0
  38. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build-optional +16 -0
  39. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build-test +16 -0
  40. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/package.json +76 -0
  41. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/darwin-arm64/tree-sitter.node +0 -0
  42. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node +0 -0
  43. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/linux-arm64/tree-sitter.node +0 -0
  44. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/linux-x64/tree-sitter.node +0 -0
  45. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/win32-arm64/tree-sitter.node +0 -0
  46. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/win32-x64/tree-sitter.node +0 -0
  47. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/addon_data.h +47 -0
  48. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/binding.cc +35 -0
  49. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/conversions.cc +140 -0
  50. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/conversions.h +22 -0
  51. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/language.cc +106 -0
  52. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/language.h +17 -0
  53. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/logger.cc +70 -0
  54. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/logger.h +19 -0
  55. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
  56. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
  57. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/node.cc +1088 -0
  58. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/node.h +30 -0
  59. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/parser.cc +306 -0
  60. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/parser.h +35 -0
  61. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/query.cc +397 -0
  62. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/query.h +40 -0
  63. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree.cc +316 -0
  64. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree.h +45 -0
  65. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
  66. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree_cursor.h +52 -0
  67. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/tree-sitter.d.ts +1042 -0
  68. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1318 -0
  69. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
  70. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
  71. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +291 -0
  72. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
  73. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
  74. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
  75. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +501 -0
  76. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
  77. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
  78. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +223 -0
  79. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +297 -0
  80. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
  81. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +435 -0
  82. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +49 -0
  83. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +12 -0
  84. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +920 -0
  85. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2165 -0
  86. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +266 -0
  87. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +62 -0
  88. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +206 -0
  89. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4187 -0
  90. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
  91. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
  92. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +899 -0
  93. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +130 -0
  94. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1066 -0
  95. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +399 -0
  96. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +170 -0
  97. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
  98. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +712 -0
  99. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
  100. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +11 -0
  101. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
  102. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
  103. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
  104. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
  105. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
  106. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
  107. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
  108. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
  109. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
  110. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +83 -0
  111. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +24 -0
  112. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +109 -0
  113. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1302 -0
  114. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1859 -0
  115. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
  116. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/LICENSE +22 -0
  117. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/README.md +21 -0
  118. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/binding.gyp +30 -0
  119. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/binding.cc +20 -0
  120. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/binding_test.js +9 -0
  121. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/index.d.ts +28 -0
  122. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/index.js +11 -0
  123. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/grammar.js +1281 -0
  124. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build +16 -0
  125. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build-optional +16 -0
  126. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build-test +16 -0
  127. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/package.json +77 -0
  128. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/darwin-arm64/tree-sitter-ruby.node +0 -0
  129. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/darwin-x64/tree-sitter-ruby.node +0 -0
  130. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/linux-arm64/tree-sitter-ruby.node +0 -0
  131. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/linux-x64/tree-sitter-ruby.node +0 -0
  132. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/win32-arm64/tree-sitter-ruby.node +0 -0
  133. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/win32-x64/tree-sitter-ruby.node +0 -0
  134. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/highlights.scm +154 -0
  135. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/locals.scm +27 -0
  136. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/tags.scm +64 -0
  137. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/grammar.json +8364 -0
  138. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/node-types.json +4108 -0
  139. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/parser.c +471247 -0
  140. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/scanner.c +1107 -0
  141. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/alloc.h +54 -0
  142. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/array.h +290 -0
  143. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/parser.h +266 -0
  144. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/tree-sitter-ruby.wasm +0 -0
  145. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/tree-sitter.json +46 -0
  146. package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
  147. package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
  148. package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
  149. package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
@@ -0,0 +1,501 @@
1
+ #include "./get_changed_ranges.h"
2
+ #include "./subtree.h"
3
+ #include "./language.h"
4
+ #include "./error_costs.h"
5
+ #include "./tree_cursor.h"
6
+ #include "./ts_assert.h"
7
+
8
+ // #define DEBUG_GET_CHANGED_RANGES
9
+
10
+ static void ts_range_array_add(
11
+ TSRangeArray *self,
12
+ Length start,
13
+ Length end
14
+ ) {
15
+ if (self->size > 0) {
16
+ TSRange *last_range = array_back(self);
17
+ if (start.bytes <= last_range->end_byte) {
18
+ last_range->end_byte = end.bytes;
19
+ last_range->end_point = end.extent;
20
+ return;
21
+ }
22
+ }
23
+
24
+ if (start.bytes < end.bytes) {
25
+ TSRange range = { start.extent, end.extent, start.bytes, end.bytes };
26
+ array_push(self, range);
27
+ }
28
+ }
29
+
30
+ bool ts_range_array_intersects(
31
+ const TSRangeArray *self,
32
+ unsigned start_index,
33
+ uint32_t start_byte,
34
+ uint32_t end_byte
35
+ ) {
36
+ for (unsigned i = start_index; i < self->size; i++) {
37
+ TSRange *range = &self->contents[i];
38
+ if (range->end_byte > start_byte) {
39
+ if (range->start_byte >= end_byte) break;
40
+ return true;
41
+ }
42
+ }
43
+ return false;
44
+ }
45
+
46
+ void ts_range_array_get_changed_ranges(
47
+ const TSRange *old_ranges, unsigned old_range_count,
48
+ const TSRange *new_ranges, unsigned new_range_count,
49
+ TSRangeArray *differences
50
+ ) {
51
+ unsigned new_index = 0;
52
+ unsigned old_index = 0;
53
+ Length current_position = length_zero();
54
+ bool in_old_range = false;
55
+ bool in_new_range = false;
56
+
57
+ while (old_index < old_range_count || new_index < new_range_count) {
58
+ const TSRange *old_range = &old_ranges[old_index];
59
+ const TSRange *new_range = &new_ranges[new_index];
60
+
61
+ Length next_old_position;
62
+ if (in_old_range) {
63
+ next_old_position = (Length) {old_range->end_byte, old_range->end_point};
64
+ } else if (old_index < old_range_count) {
65
+ next_old_position = (Length) {old_range->start_byte, old_range->start_point};
66
+ } else {
67
+ next_old_position = LENGTH_MAX;
68
+ }
69
+
70
+ Length next_new_position;
71
+ if (in_new_range) {
72
+ next_new_position = (Length) {new_range->end_byte, new_range->end_point};
73
+ } else if (new_index < new_range_count) {
74
+ next_new_position = (Length) {new_range->start_byte, new_range->start_point};
75
+ } else {
76
+ next_new_position = LENGTH_MAX;
77
+ }
78
+
79
+ if (next_old_position.bytes < next_new_position.bytes) {
80
+ if (in_old_range != in_new_range) {
81
+ ts_range_array_add(differences, current_position, next_old_position);
82
+ }
83
+ if (in_old_range) old_index++;
84
+ current_position = next_old_position;
85
+ in_old_range = !in_old_range;
86
+ } else if (next_new_position.bytes < next_old_position.bytes) {
87
+ if (in_old_range != in_new_range) {
88
+ ts_range_array_add(differences, current_position, next_new_position);
89
+ }
90
+ if (in_new_range) new_index++;
91
+ current_position = next_new_position;
92
+ in_new_range = !in_new_range;
93
+ } else {
94
+ if (in_old_range != in_new_range) {
95
+ ts_range_array_add(differences, current_position, next_new_position);
96
+ }
97
+ if (in_old_range) old_index++;
98
+ if (in_new_range) new_index++;
99
+ in_old_range = !in_old_range;
100
+ in_new_range = !in_new_range;
101
+ current_position = next_new_position;
102
+ }
103
+ }
104
+ }
105
+
106
+ typedef struct {
107
+ TreeCursor cursor;
108
+ const TSLanguage *language;
109
+ unsigned visible_depth;
110
+ bool in_padding;
111
+ } Iterator;
112
+
113
+ static Iterator iterator_new(
114
+ TreeCursor *cursor,
115
+ const Subtree *tree,
116
+ const TSLanguage *language
117
+ ) {
118
+ array_clear(&cursor->stack);
119
+ array_push(&cursor->stack, ((TreeCursorEntry) {
120
+ .subtree = tree,
121
+ .position = length_zero(),
122
+ .child_index = 0,
123
+ .structural_child_index = 0,
124
+ }));
125
+ return (Iterator) {
126
+ .cursor = *cursor,
127
+ .language = language,
128
+ .visible_depth = 1,
129
+ .in_padding = false,
130
+ };
131
+ }
132
+
133
+ static bool iterator_done(Iterator *self) {
134
+ return self->cursor.stack.size == 0;
135
+ }
136
+
137
+ static Length iterator_start_position(Iterator *self) {
138
+ TreeCursorEntry entry = *array_back(&self->cursor.stack);
139
+ if (self->in_padding) {
140
+ return entry.position;
141
+ } else {
142
+ return length_add(entry.position, ts_subtree_padding(*entry.subtree));
143
+ }
144
+ }
145
+
146
+ static Length iterator_end_position(Iterator *self) {
147
+ TreeCursorEntry entry = *array_back(&self->cursor.stack);
148
+ Length result = length_add(entry.position, ts_subtree_padding(*entry.subtree));
149
+ if (self->in_padding) {
150
+ return result;
151
+ } else {
152
+ return length_add(result, ts_subtree_size(*entry.subtree));
153
+ }
154
+ }
155
+
156
+ static bool iterator_tree_is_visible(const Iterator *self) {
157
+ TreeCursorEntry entry = *array_back(&self->cursor.stack);
158
+ if (ts_subtree_visible(*entry.subtree)) return true;
159
+ if (self->cursor.stack.size > 1) {
160
+ Subtree parent = *self->cursor.stack.contents[self->cursor.stack.size - 2].subtree;
161
+ return ts_language_alias_at(
162
+ self->language,
163
+ parent.ptr->production_id,
164
+ entry.structural_child_index
165
+ ) != 0;
166
+ }
167
+ return false;
168
+ }
169
+
170
+ static void iterator_get_visible_state(
171
+ const Iterator *self,
172
+ Subtree *tree,
173
+ TSSymbol *alias_symbol,
174
+ uint32_t *start_byte
175
+ ) {
176
+ uint32_t i = self->cursor.stack.size - 1;
177
+
178
+ if (self->in_padding) {
179
+ if (i == 0) return;
180
+ i--;
181
+ }
182
+
183
+ for (; i + 1 > 0; i--) {
184
+ TreeCursorEntry entry = self->cursor.stack.contents[i];
185
+
186
+ if (i > 0) {
187
+ const Subtree *parent = self->cursor.stack.contents[i - 1].subtree;
188
+ *alias_symbol = ts_language_alias_at(
189
+ self->language,
190
+ parent->ptr->production_id,
191
+ entry.structural_child_index
192
+ );
193
+ }
194
+
195
+ if (ts_subtree_visible(*entry.subtree) || *alias_symbol) {
196
+ *tree = *entry.subtree;
197
+ *start_byte = entry.position.bytes;
198
+ break;
199
+ }
200
+ }
201
+ }
202
+
203
+ static void iterator_ascend(Iterator *self) {
204
+ if (iterator_done(self)) return;
205
+ if (iterator_tree_is_visible(self) && !self->in_padding) self->visible_depth--;
206
+ if (array_back(&self->cursor.stack)->child_index > 0) self->in_padding = false;
207
+ self->cursor.stack.size--;
208
+ }
209
+
210
+ static bool iterator_descend(Iterator *self, uint32_t goal_position) {
211
+ if (self->in_padding) return false;
212
+
213
+ bool did_descend = false;
214
+ do {
215
+ did_descend = false;
216
+ TreeCursorEntry entry = *array_back(&self->cursor.stack);
217
+ Length position = entry.position;
218
+ uint32_t structural_child_index = 0;
219
+ for (uint32_t i = 0, n = ts_subtree_child_count(*entry.subtree); i < n; i++) {
220
+ const Subtree *child = &ts_subtree_children(*entry.subtree)[i];
221
+ Length child_left = length_add(position, ts_subtree_padding(*child));
222
+ Length child_right = length_add(child_left, ts_subtree_size(*child));
223
+
224
+ if (child_right.bytes > goal_position) {
225
+ array_push(&self->cursor.stack, ((TreeCursorEntry) {
226
+ .subtree = child,
227
+ .position = position,
228
+ .child_index = i,
229
+ .structural_child_index = structural_child_index,
230
+ }));
231
+
232
+ if (iterator_tree_is_visible(self)) {
233
+ if (child_left.bytes > goal_position) {
234
+ self->in_padding = true;
235
+ } else {
236
+ self->visible_depth++;
237
+ }
238
+ return true;
239
+ }
240
+
241
+ did_descend = true;
242
+ break;
243
+ }
244
+
245
+ position = child_right;
246
+ if (!ts_subtree_extra(*child)) structural_child_index++;
247
+ }
248
+ } while (did_descend);
249
+
250
+ return false;
251
+ }
252
+
253
+ static void iterator_advance(Iterator *self) {
254
+ if (self->in_padding) {
255
+ self->in_padding = false;
256
+ if (iterator_tree_is_visible(self)) {
257
+ self->visible_depth++;
258
+ } else {
259
+ iterator_descend(self, 0);
260
+ }
261
+ return;
262
+ }
263
+
264
+ for (;;) {
265
+ if (iterator_tree_is_visible(self)) self->visible_depth--;
266
+ TreeCursorEntry entry = array_pop(&self->cursor.stack);
267
+ if (iterator_done(self)) return;
268
+
269
+ const Subtree *parent = array_back(&self->cursor.stack)->subtree;
270
+ uint32_t child_index = entry.child_index + 1;
271
+ if (ts_subtree_child_count(*parent) > child_index) {
272
+ Length position = length_add(entry.position, ts_subtree_total_size(*entry.subtree));
273
+ uint32_t structural_child_index = entry.structural_child_index;
274
+ if (!ts_subtree_extra(*entry.subtree)) structural_child_index++;
275
+ const Subtree *next_child = &ts_subtree_children(*parent)[child_index];
276
+
277
+ array_push(&self->cursor.stack, ((TreeCursorEntry) {
278
+ .subtree = next_child,
279
+ .position = position,
280
+ .child_index = child_index,
281
+ .structural_child_index = structural_child_index,
282
+ }));
283
+
284
+ if (iterator_tree_is_visible(self)) {
285
+ if (ts_subtree_padding(*next_child).bytes > 0) {
286
+ self->in_padding = true;
287
+ } else {
288
+ self->visible_depth++;
289
+ }
290
+ } else {
291
+ iterator_descend(self, 0);
292
+ }
293
+ break;
294
+ }
295
+ }
296
+ }
297
+
298
+ typedef enum {
299
+ IteratorDiffers,
300
+ IteratorMayDiffer,
301
+ IteratorMatches,
302
+ } IteratorComparison;
303
+
304
+ static IteratorComparison iterator_compare(
305
+ const Iterator *old_iter,
306
+ const Iterator *new_iter
307
+ ) {
308
+ Subtree old_tree = NULL_SUBTREE;
309
+ Subtree new_tree = NULL_SUBTREE;
310
+ uint32_t old_start = 0;
311
+ uint32_t new_start = 0;
312
+ TSSymbol old_alias_symbol = 0;
313
+ TSSymbol new_alias_symbol = 0;
314
+ iterator_get_visible_state(old_iter, &old_tree, &old_alias_symbol, &old_start);
315
+ iterator_get_visible_state(new_iter, &new_tree, &new_alias_symbol, &new_start);
316
+
317
+ if (!old_tree.ptr && !new_tree.ptr) return IteratorMatches;
318
+ if (!old_tree.ptr || !new_tree.ptr) return IteratorDiffers;
319
+
320
+ if (
321
+ old_alias_symbol == new_alias_symbol &&
322
+ ts_subtree_symbol(old_tree) == ts_subtree_symbol(new_tree)
323
+ ) {
324
+ if (old_start == new_start &&
325
+ !ts_subtree_has_changes(old_tree) &&
326
+ ts_subtree_symbol(old_tree) != ts_builtin_sym_error &&
327
+ ts_subtree_size(old_tree).bytes == ts_subtree_size(new_tree).bytes &&
328
+ ts_subtree_parse_state(old_tree) != TS_TREE_STATE_NONE &&
329
+ ts_subtree_parse_state(new_tree) != TS_TREE_STATE_NONE &&
330
+ (ts_subtree_parse_state(old_tree) == ERROR_STATE) ==
331
+ (ts_subtree_parse_state(new_tree) == ERROR_STATE)) {
332
+ return IteratorMatches;
333
+ } else {
334
+ return IteratorMayDiffer;
335
+ }
336
+ }
337
+
338
+ return IteratorDiffers;
339
+ }
340
+
341
+ #ifdef DEBUG_GET_CHANGED_RANGES
342
+ static inline void iterator_print_state(Iterator *self) {
343
+ TreeCursorEntry entry = *array_back(&self->cursor.stack);
344
+ TSPoint start = iterator_start_position(self).extent;
345
+ TSPoint end = iterator_end_position(self).extent;
346
+ const char *name = ts_language_symbol_name(self->language, ts_subtree_symbol(*entry.subtree));
347
+ printf(
348
+ "(%-25s %s\t depth:%u [%u, %u] - [%u, %u])",
349
+ name, self->in_padding ? "(p)" : " ",
350
+ self->visible_depth,
351
+ start.row + 1, start.column,
352
+ end.row + 1, end.column
353
+ );
354
+ }
355
+ #endif
356
+
357
+ unsigned ts_subtree_get_changed_ranges(
358
+ const Subtree *old_tree, const Subtree *new_tree,
359
+ TreeCursor *cursor1, TreeCursor *cursor2,
360
+ const TSLanguage *language,
361
+ const TSRangeArray *included_range_differences,
362
+ TSRange **ranges
363
+ ) {
364
+ TSRangeArray results = array_new();
365
+
366
+ Iterator old_iter = iterator_new(cursor1, old_tree, language);
367
+ Iterator new_iter = iterator_new(cursor2, new_tree, language);
368
+
369
+ unsigned included_range_difference_index = 0;
370
+
371
+ Length position = iterator_start_position(&old_iter);
372
+ Length next_position = iterator_start_position(&new_iter);
373
+ if (position.bytes < next_position.bytes) {
374
+ ts_range_array_add(&results, position, next_position);
375
+ position = next_position;
376
+ } else if (position.bytes > next_position.bytes) {
377
+ ts_range_array_add(&results, next_position, position);
378
+ next_position = position;
379
+ }
380
+
381
+ do {
382
+ #ifdef DEBUG_GET_CHANGED_RANGES
383
+ printf("At [%-2u, %-2u] Compare ", position.extent.row + 1, position.extent.column);
384
+ iterator_print_state(&old_iter);
385
+ printf("\tvs\t");
386
+ iterator_print_state(&new_iter);
387
+ puts("");
388
+ #endif
389
+
390
+ // Compare the old and new subtrees.
391
+ IteratorComparison comparison = iterator_compare(&old_iter, &new_iter);
392
+
393
+ // Even if the two subtrees appear to be identical, they could differ
394
+ // internally if they contain a range of text that was previously
395
+ // excluded from the parse, and is now included, or vice-versa.
396
+ if (comparison == IteratorMatches && ts_range_array_intersects(
397
+ included_range_differences,
398
+ included_range_difference_index,
399
+ position.bytes,
400
+ iterator_end_position(&old_iter).bytes
401
+ )) {
402
+ comparison = IteratorMayDiffer;
403
+ }
404
+
405
+ bool is_changed = false;
406
+ switch (comparison) {
407
+ // If the subtrees are definitely identical, move to the end
408
+ // of both subtrees.
409
+ case IteratorMatches:
410
+ next_position = iterator_end_position(&old_iter);
411
+ break;
412
+
413
+ // If the subtrees might differ internally, descend into both
414
+ // subtrees, finding the first child that spans the current position.
415
+ case IteratorMayDiffer:
416
+ if (iterator_descend(&old_iter, position.bytes)) {
417
+ if (!iterator_descend(&new_iter, position.bytes)) {
418
+ is_changed = true;
419
+ next_position = iterator_end_position(&old_iter);
420
+ }
421
+ } else if (iterator_descend(&new_iter, position.bytes)) {
422
+ is_changed = true;
423
+ next_position = iterator_end_position(&new_iter);
424
+ } else {
425
+ next_position = length_min(
426
+ iterator_end_position(&old_iter),
427
+ iterator_end_position(&new_iter)
428
+ );
429
+ }
430
+ break;
431
+
432
+ // If the subtrees are different, record a change and then move
433
+ // to the end of both subtrees.
434
+ case IteratorDiffers:
435
+ is_changed = true;
436
+ next_position = length_min(
437
+ iterator_end_position(&old_iter),
438
+ iterator_end_position(&new_iter)
439
+ );
440
+ break;
441
+ }
442
+
443
+ // Ensure that both iterators are caught up to the current position.
444
+ while (
445
+ !iterator_done(&old_iter) &&
446
+ iterator_end_position(&old_iter).bytes <= next_position.bytes
447
+ ) iterator_advance(&old_iter);
448
+ while (
449
+ !iterator_done(&new_iter) &&
450
+ iterator_end_position(&new_iter).bytes <= next_position.bytes
451
+ ) iterator_advance(&new_iter);
452
+
453
+ // Ensure that both iterators are at the same depth in the tree.
454
+ while (old_iter.visible_depth > new_iter.visible_depth) {
455
+ iterator_ascend(&old_iter);
456
+ }
457
+ while (new_iter.visible_depth > old_iter.visible_depth) {
458
+ iterator_ascend(&new_iter);
459
+ }
460
+
461
+ if (is_changed) {
462
+ #ifdef DEBUG_GET_CHANGED_RANGES
463
+ printf(
464
+ " change: [[%u, %u] - [%u, %u]]\n",
465
+ position.extent.row + 1, position.extent.column,
466
+ next_position.extent.row + 1, next_position.extent.column
467
+ );
468
+ #endif
469
+
470
+ ts_range_array_add(&results, position, next_position);
471
+ }
472
+
473
+ position = next_position;
474
+
475
+ // Keep track of the current position in the included range differences
476
+ // array in order to avoid scanning the entire array on each iteration.
477
+ while (included_range_difference_index < included_range_differences->size) {
478
+ const TSRange *range = &included_range_differences->contents[
479
+ included_range_difference_index
480
+ ];
481
+ if (range->end_byte <= position.bytes) {
482
+ included_range_difference_index++;
483
+ } else {
484
+ break;
485
+ }
486
+ }
487
+ } while (!iterator_done(&old_iter) && !iterator_done(&new_iter));
488
+
489
+ Length old_size = ts_subtree_total_size(*old_tree);
490
+ Length new_size = ts_subtree_total_size(*new_tree);
491
+ if (old_size.bytes < new_size.bytes) {
492
+ ts_range_array_add(&results, old_size, new_size);
493
+ } else if (new_size.bytes < old_size.bytes) {
494
+ ts_range_array_add(&results, new_size, old_size);
495
+ }
496
+
497
+ *cursor1 = old_iter.cursor;
498
+ *cursor2 = new_iter.cursor;
499
+ *ranges = results.contents;
500
+ return results.size;
501
+ }
@@ -0,0 +1,36 @@
1
+ #ifndef TREE_SITTER_GET_CHANGED_RANGES_H_
2
+ #define TREE_SITTER_GET_CHANGED_RANGES_H_
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #include "./tree_cursor.h"
9
+ #include "./subtree.h"
10
+
11
+ typedef Array(TSRange) TSRangeArray;
12
+
13
+ void ts_range_array_get_changed_ranges(
14
+ const TSRange *old_ranges, unsigned old_range_count,
15
+ const TSRange *new_ranges, unsigned new_range_count,
16
+ TSRangeArray *differences
17
+ );
18
+
19
+ bool ts_range_array_intersects(
20
+ const TSRangeArray *self, unsigned start_index,
21
+ uint32_t start_byte, uint32_t end_byte
22
+ );
23
+
24
+ unsigned ts_subtree_get_changed_ranges(
25
+ const Subtree *old_tree, const Subtree *new_tree,
26
+ TreeCursor *cursor1, TreeCursor *cursor2,
27
+ const TSLanguage *language,
28
+ const TSRangeArray *included_range_differences,
29
+ TSRange **ranges
30
+ );
31
+
32
+ #ifdef __cplusplus
33
+ }
34
+ #endif
35
+
36
+ #endif // TREE_SITTER_GET_CHANGED_RANGES_H_
@@ -0,0 +1,21 @@
1
+
2
+ // Determine endian and pointer size based on known defines.
3
+ // TS_BIG_ENDIAN and TS_PTR_SIZE can be set as -D compiler arguments
4
+ // to override this.
5
+
6
+ #if !defined(TS_BIG_ENDIAN)
7
+ #if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) \
8
+ || (defined( __APPLE_CC__) && (defined(__ppc__) || defined(__ppc64__)))
9
+ #define TS_BIG_ENDIAN 1
10
+ #else
11
+ #define TS_BIG_ENDIAN 0
12
+ #endif
13
+ #endif
14
+
15
+ #if !defined(TS_PTR_SIZE)
16
+ #if UINTPTR_MAX == 0xFFFFFFFF
17
+ #define TS_PTR_SIZE 32
18
+ #else
19
+ #define TS_PTR_SIZE 64
20
+ #endif
21
+ #endif