@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,435 @@
1
+ #include <stdio.h>
2
+ #include "./lexer.h"
3
+ #include "./subtree.h"
4
+ #include "./length.h"
5
+ #include "./unicode.h"
6
+ #include <stdarg.h>
7
+
8
+ #define LOG(message, character) \
9
+ if (self->logger.log) { \
10
+ snprintf( \
11
+ self->debug_buffer, \
12
+ TREE_SITTER_SERIALIZATION_BUFFER_SIZE, \
13
+ 32 <= character && character < 127 ? \
14
+ message " character:'%c'" : \
15
+ message " character:%d", \
16
+ character \
17
+ ); \
18
+ self->logger.log( \
19
+ self->logger.payload, \
20
+ TSLogTypeLex, \
21
+ self->debug_buffer \
22
+ ); \
23
+ }
24
+
25
+ static const int32_t BYTE_ORDER_MARK = 0xFEFF;
26
+
27
+ static const TSRange DEFAULT_RANGE = {
28
+ .start_point = {
29
+ .row = 0,
30
+ .column = 0,
31
+ },
32
+ .end_point = {
33
+ .row = UINT32_MAX,
34
+ .column = UINT32_MAX,
35
+ },
36
+ .start_byte = 0,
37
+ .end_byte = UINT32_MAX
38
+ };
39
+
40
+ // Check if the lexer has reached EOF. This state is stored
41
+ // by setting the lexer's `current_included_range_index` such that
42
+ // it has consumed all of its available ranges.
43
+ static bool ts_lexer__eof(const TSLexer *_self) {
44
+ Lexer *self = (Lexer *)_self;
45
+ return self->current_included_range_index == self->included_range_count;
46
+ }
47
+
48
+ // Clear the currently stored chunk of source code, because the lexer's
49
+ // position has changed.
50
+ static void ts_lexer__clear_chunk(Lexer *self) {
51
+ self->chunk = NULL;
52
+ self->chunk_size = 0;
53
+ self->chunk_start = 0;
54
+ }
55
+
56
+ // Call the lexer's input callback to obtain a new chunk of source code
57
+ // for the current position.
58
+ static void ts_lexer__get_chunk(Lexer *self) {
59
+ self->chunk_start = self->current_position.bytes;
60
+ self->chunk = self->input.read(
61
+ self->input.payload,
62
+ self->current_position.bytes,
63
+ self->current_position.extent,
64
+ &self->chunk_size
65
+ );
66
+ if (!self->chunk_size) {
67
+ self->current_included_range_index = self->included_range_count;
68
+ self->chunk = NULL;
69
+ }
70
+ }
71
+
72
+ // Decode the next unicode character in the current chunk of source code.
73
+ // This assumes that the lexer has already retrieved a chunk of source
74
+ // code that spans the current position.
75
+ static void ts_lexer__get_lookahead(Lexer *self) {
76
+ uint32_t position_in_chunk = self->current_position.bytes - self->chunk_start;
77
+ uint32_t size = self->chunk_size - position_in_chunk;
78
+
79
+ if (size == 0) {
80
+ self->lookahead_size = 1;
81
+ self->data.lookahead = '\0';
82
+ return;
83
+ }
84
+
85
+ const uint8_t *chunk = (const uint8_t *)self->chunk + position_in_chunk;
86
+ UnicodeDecodeFunction decode =
87
+ self->input.encoding == TSInputEncodingUTF8 ? ts_decode_utf8 :
88
+ self->input.encoding == TSInputEncodingUTF16LE ? ts_decode_utf16_le : ts_decode_utf16_be;
89
+
90
+ self->lookahead_size = decode(chunk, size, &self->data.lookahead);
91
+
92
+ // If this chunk ended in the middle of a multi-byte character,
93
+ // try again with a fresh chunk.
94
+ if (self->data.lookahead == TS_DECODE_ERROR && size < 4) {
95
+ ts_lexer__get_chunk(self);
96
+ chunk = (const uint8_t *)self->chunk;
97
+ size = self->chunk_size;
98
+ self->lookahead_size = decode(chunk, size, &self->data.lookahead);
99
+ }
100
+
101
+ if (self->data.lookahead == TS_DECODE_ERROR) {
102
+ self->lookahead_size = 1;
103
+ }
104
+ }
105
+
106
+ static void ts_lexer_goto(Lexer *self, Length position) {
107
+ self->current_position = position;
108
+
109
+ // Move to the first valid position at or after the given position.
110
+ bool found_included_range = false;
111
+ for (unsigned i = 0; i < self->included_range_count; i++) {
112
+ TSRange *included_range = &self->included_ranges[i];
113
+ if (
114
+ included_range->end_byte > self->current_position.bytes &&
115
+ included_range->end_byte > included_range->start_byte
116
+ ) {
117
+ if (included_range->start_byte >= self->current_position.bytes) {
118
+ self->current_position = (Length) {
119
+ .bytes = included_range->start_byte,
120
+ .extent = included_range->start_point,
121
+ };
122
+ }
123
+
124
+ self->current_included_range_index = i;
125
+ found_included_range = true;
126
+ break;
127
+ }
128
+ }
129
+
130
+ if (found_included_range) {
131
+ // If the current position is outside of the current chunk of text,
132
+ // then clear out the current chunk of text.
133
+ if (self->chunk && (
134
+ self->current_position.bytes < self->chunk_start ||
135
+ self->current_position.bytes >= self->chunk_start + self->chunk_size
136
+ )) {
137
+ ts_lexer__clear_chunk(self);
138
+ }
139
+
140
+ self->lookahead_size = 0;
141
+ self->data.lookahead = '\0';
142
+ }
143
+
144
+ // If the given position is beyond any of included ranges, move to the EOF
145
+ // state - past the end of the included ranges.
146
+ else {
147
+ self->current_included_range_index = self->included_range_count;
148
+ TSRange *last_included_range = &self->included_ranges[self->included_range_count - 1];
149
+ self->current_position = (Length) {
150
+ .bytes = last_included_range->end_byte,
151
+ .extent = last_included_range->end_point,
152
+ };
153
+ ts_lexer__clear_chunk(self);
154
+ self->lookahead_size = 1;
155
+ self->data.lookahead = '\0';
156
+ }
157
+ }
158
+
159
+ // Intended to be called only from functions that control logging.
160
+ static void ts_lexer__do_advance(Lexer *self, bool skip) {
161
+ if (self->lookahead_size) {
162
+ self->current_position.bytes += self->lookahead_size;
163
+ if (self->data.lookahead == '\n') {
164
+ self->current_position.extent.row++;
165
+ self->current_position.extent.column = 0;
166
+ } else {
167
+ self->current_position.extent.column += self->lookahead_size;
168
+ }
169
+ }
170
+
171
+ const TSRange *current_range = &self->included_ranges[self->current_included_range_index];
172
+ while (
173
+ self->current_position.bytes >= current_range->end_byte ||
174
+ current_range->end_byte == current_range->start_byte
175
+ ) {
176
+ if (self->current_included_range_index < self->included_range_count) {
177
+ self->current_included_range_index++;
178
+ }
179
+ if (self->current_included_range_index < self->included_range_count) {
180
+ current_range++;
181
+ self->current_position = (Length) {
182
+ current_range->start_byte,
183
+ current_range->start_point,
184
+ };
185
+ } else {
186
+ current_range = NULL;
187
+ break;
188
+ }
189
+ }
190
+
191
+ if (skip) self->token_start_position = self->current_position;
192
+
193
+ if (current_range) {
194
+ if (
195
+ self->current_position.bytes < self->chunk_start ||
196
+ self->current_position.bytes >= self->chunk_start + self->chunk_size
197
+ ) {
198
+ ts_lexer__get_chunk(self);
199
+ }
200
+ ts_lexer__get_lookahead(self);
201
+ } else {
202
+ ts_lexer__clear_chunk(self);
203
+ self->data.lookahead = '\0';
204
+ self->lookahead_size = 1;
205
+ }
206
+ }
207
+
208
+ // Advance to the next character in the source code, retrieving a new
209
+ // chunk of source code if needed.
210
+ static void ts_lexer__advance(TSLexer *_self, bool skip) {
211
+ Lexer *self = (Lexer *)_self;
212
+ if (!self->chunk) return;
213
+
214
+ if (skip) {
215
+ LOG("skip", self->data.lookahead)
216
+ } else {
217
+ LOG("consume", self->data.lookahead)
218
+ }
219
+
220
+ ts_lexer__do_advance(self, skip);
221
+ }
222
+
223
+ // Mark that a token match has completed. This can be called multiple
224
+ // times if a longer match is found later.
225
+ static void ts_lexer__mark_end(TSLexer *_self) {
226
+ Lexer *self = (Lexer *)_self;
227
+ if (!ts_lexer__eof(&self->data)) {
228
+ // If the lexer is right at the beginning of included range,
229
+ // then the token should be considered to end at the *end* of the
230
+ // previous included range, rather than here.
231
+ TSRange *current_included_range = &self->included_ranges[
232
+ self->current_included_range_index
233
+ ];
234
+ if (
235
+ self->current_included_range_index > 0 &&
236
+ self->current_position.bytes == current_included_range->start_byte
237
+ ) {
238
+ TSRange *previous_included_range = current_included_range - 1;
239
+ self->token_end_position = (Length) {
240
+ previous_included_range->end_byte,
241
+ previous_included_range->end_point,
242
+ };
243
+ return;
244
+ }
245
+ }
246
+ self->token_end_position = self->current_position;
247
+ }
248
+
249
+ static uint32_t ts_lexer__get_column(TSLexer *_self) {
250
+ Lexer *self = (Lexer *)_self;
251
+
252
+ uint32_t goal_byte = self->current_position.bytes;
253
+
254
+ self->did_get_column = true;
255
+ Length start_of_col = {
256
+ self->current_position.bytes - self->current_position.extent.column,
257
+ {self->current_position.extent.row, 0},
258
+ };
259
+ ts_lexer_goto(self, start_of_col);
260
+ ts_lexer__get_chunk(self);
261
+
262
+ uint32_t result = 0;
263
+ if (!ts_lexer__eof(_self)) {
264
+ ts_lexer__get_lookahead(self);
265
+ while (self->current_position.bytes < goal_byte && self->chunk) {
266
+ result++;
267
+ ts_lexer__do_advance(self, false);
268
+ if (ts_lexer__eof(_self)) break;
269
+ }
270
+ }
271
+
272
+ return result;
273
+ }
274
+
275
+ // Is the lexer at a boundary between two disjoint included ranges of
276
+ // source code? This is exposed as an API because some languages' external
277
+ // scanners need to perform custom actions at these boundaries.
278
+ static bool ts_lexer__is_at_included_range_start(const TSLexer *_self) {
279
+ const Lexer *self = (const Lexer *)_self;
280
+ if (self->current_included_range_index < self->included_range_count) {
281
+ TSRange *current_range = &self->included_ranges[self->current_included_range_index];
282
+ return self->current_position.bytes == current_range->start_byte;
283
+ } else {
284
+ return false;
285
+ }
286
+ }
287
+
288
+ static void ts_lexer__log(const TSLexer *_self, const char *fmt, ...) {
289
+ Lexer *self = (Lexer *)_self;
290
+ va_list args;
291
+ va_start(args, fmt);
292
+ if (self->logger.log) {
293
+ vsnprintf(self->debug_buffer, TREE_SITTER_SERIALIZATION_BUFFER_SIZE, fmt, args);
294
+ self->logger.log(self->logger.payload, TSLogTypeLex, self->debug_buffer);
295
+ }
296
+ va_end(args);
297
+ }
298
+
299
+ void ts_lexer_init(Lexer *self) {
300
+ *self = (Lexer) {
301
+ .data = {
302
+ // The lexer's methods are stored as struct fields so that generated
303
+ // parsers can call them without needing to be linked against this
304
+ // library.
305
+ .advance = ts_lexer__advance,
306
+ .mark_end = ts_lexer__mark_end,
307
+ .get_column = ts_lexer__get_column,
308
+ .is_at_included_range_start = ts_lexer__is_at_included_range_start,
309
+ .eof = ts_lexer__eof,
310
+ .log = ts_lexer__log,
311
+ .lookahead = 0,
312
+ .result_symbol = 0,
313
+ },
314
+ .chunk = NULL,
315
+ .chunk_size = 0,
316
+ .chunk_start = 0,
317
+ .current_position = {0, {0, 0}},
318
+ .logger = {
319
+ .payload = NULL,
320
+ .log = NULL
321
+ },
322
+ .included_ranges = NULL,
323
+ .included_range_count = 0,
324
+ .current_included_range_index = 0,
325
+ };
326
+ ts_lexer_set_included_ranges(self, NULL, 0);
327
+ }
328
+
329
+ void ts_lexer_delete(Lexer *self) {
330
+ ts_free(self->included_ranges);
331
+ }
332
+
333
+ void ts_lexer_set_input(Lexer *self, TSInput input) {
334
+ self->input = input;
335
+ ts_lexer__clear_chunk(self);
336
+ ts_lexer_goto(self, self->current_position);
337
+ }
338
+
339
+ // Move the lexer to the given position. This doesn't do any work
340
+ // if the parser is already at the given position.
341
+ void ts_lexer_reset(Lexer *self, Length position) {
342
+ if (position.bytes != self->current_position.bytes) {
343
+ ts_lexer_goto(self, position);
344
+ }
345
+ }
346
+
347
+ void ts_lexer_start(Lexer *self) {
348
+ self->token_start_position = self->current_position;
349
+ self->token_end_position = LENGTH_UNDEFINED;
350
+ self->data.result_symbol = 0;
351
+ self->did_get_column = false;
352
+ if (!ts_lexer__eof(&self->data)) {
353
+ if (!self->chunk_size) ts_lexer__get_chunk(self);
354
+ if (!self->lookahead_size) ts_lexer__get_lookahead(self);
355
+ if (
356
+ self->current_position.bytes == 0 &&
357
+ self->data.lookahead == BYTE_ORDER_MARK
358
+ ) ts_lexer__advance(&self->data, true);
359
+ }
360
+ }
361
+
362
+ void ts_lexer_finish(Lexer *self, uint32_t *lookahead_end_byte) {
363
+ if (length_is_undefined(self->token_end_position)) {
364
+ ts_lexer__mark_end(&self->data);
365
+ }
366
+
367
+ // If the token ended at an included range boundary, then its end position
368
+ // will have been reset to the end of the preceding range. Reset the start
369
+ // position to match.
370
+ if (
371
+ self->token_end_position.bytes < self->token_start_position.bytes ||
372
+ point_lt(self->token_end_position.extent, self->token_start_position.extent)
373
+ ) {
374
+ self->token_start_position = self->token_end_position;
375
+ }
376
+
377
+ uint32_t current_lookahead_end_byte = self->current_position.bytes + 1;
378
+
379
+ // In order to determine that a byte sequence is invalid UTF8 or UTF16,
380
+ // the character decoding algorithm may have looked at the following byte.
381
+ // Therefore, the next byte *after* the current (invalid) character
382
+ // affects the interpretation of the current character.
383
+ if (self->data.lookahead == TS_DECODE_ERROR) {
384
+ current_lookahead_end_byte += 4; // the maximum number of bytes read to identify an invalid code point
385
+ }
386
+
387
+ if (current_lookahead_end_byte > *lookahead_end_byte) {
388
+ *lookahead_end_byte = current_lookahead_end_byte;
389
+ }
390
+ }
391
+
392
+ void ts_lexer_advance_to_end(Lexer *self) {
393
+ while (self->chunk) {
394
+ ts_lexer__advance(&self->data, false);
395
+ }
396
+ }
397
+
398
+ void ts_lexer_mark_end(Lexer *self) {
399
+ ts_lexer__mark_end(&self->data);
400
+ }
401
+
402
+ bool ts_lexer_set_included_ranges(
403
+ Lexer *self,
404
+ const TSRange *ranges,
405
+ uint32_t count
406
+ ) {
407
+ if (count == 0 || !ranges) {
408
+ ranges = &DEFAULT_RANGE;
409
+ count = 1;
410
+ } else {
411
+ uint32_t previous_byte = 0;
412
+ for (unsigned i = 0; i < count; i++) {
413
+ const TSRange *range = &ranges[i];
414
+ if (
415
+ range->start_byte < previous_byte ||
416
+ range->end_byte < range->start_byte
417
+ ) return false;
418
+ previous_byte = range->end_byte;
419
+ }
420
+ }
421
+
422
+ size_t size = count * sizeof(TSRange);
423
+ self->included_ranges = ts_realloc(self->included_ranges, size);
424
+ memcpy(self->included_ranges, ranges, size);
425
+ self->included_range_count = count;
426
+ ts_lexer_goto(self, self->current_position);
427
+ return true;
428
+ }
429
+
430
+ TSRange *ts_lexer_included_ranges(const Lexer *self, uint32_t *count) {
431
+ *count = self->included_range_count;
432
+ return self->included_ranges;
433
+ }
434
+
435
+ #undef LOG
@@ -0,0 +1,49 @@
1
+ #ifndef TREE_SITTER_LEXER_H_
2
+ #define TREE_SITTER_LEXER_H_
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #include "./length.h"
9
+ #include "./subtree.h"
10
+ #include "tree_sitter/api.h"
11
+ #include "./parser.h"
12
+
13
+ typedef struct {
14
+ TSLexer data;
15
+ Length current_position;
16
+ Length token_start_position;
17
+ Length token_end_position;
18
+
19
+ TSRange *included_ranges;
20
+ const char *chunk;
21
+ TSInput input;
22
+ TSLogger logger;
23
+
24
+ uint32_t included_range_count;
25
+ uint32_t current_included_range_index;
26
+ uint32_t chunk_start;
27
+ uint32_t chunk_size;
28
+ uint32_t lookahead_size;
29
+ bool did_get_column;
30
+
31
+ char debug_buffer[TREE_SITTER_SERIALIZATION_BUFFER_SIZE];
32
+ } Lexer;
33
+
34
+ void ts_lexer_init(Lexer *self);
35
+ void ts_lexer_delete(Lexer *self);
36
+ void ts_lexer_set_input(Lexer *self, TSInput input);
37
+ void ts_lexer_reset(Lexer *self, Length position);
38
+ void ts_lexer_start(Lexer *self);
39
+ void ts_lexer_finish(Lexer *self, uint32_t *lookahead_end_byte);
40
+ void ts_lexer_advance_to_end(Lexer *self);
41
+ void ts_lexer_mark_end(Lexer *self);
42
+ bool ts_lexer_set_included_ranges(Lexer *self, const TSRange *ranges, uint32_t count);
43
+ TSRange *ts_lexer_included_ranges(const Lexer *self, uint32_t *count);
44
+
45
+ #ifdef __cplusplus
46
+ }
47
+ #endif
48
+
49
+ #endif // TREE_SITTER_LEXER_H_
@@ -0,0 +1,12 @@
1
+ #include "./alloc.c"
2
+ #include "./get_changed_ranges.c"
3
+ #include "./language.c"
4
+ #include "./lexer.c"
5
+ #include "./node.c"
6
+ #include "./parser.c"
7
+ #include "./query.c"
8
+ #include "./stack.c"
9
+ #include "./subtree.c"
10
+ #include "./tree_cursor.c"
11
+ #include "./tree.c"
12
+ #include "./wasm_store.c"