@proteinjs/reflection-build 1.4.4 → 1.4.6

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 (283) hide show
  1. package/dist/test/examples/source-repository/a/generated/index.js +1 -1
  2. package/dist/test/examples/source-repository/a/generated/index.js.map +1 -1
  3. package/dist/test/examples/source-repository/b/generated/index.js +1 -1
  4. package/dist/test/examples/source-repository/b/generated/index.js.map +1 -1
  5. package/package.json +4 -5
  6. package/test/examples/source-repository/a/dist/generated/index.js +1 -1
  7. package/test/examples/source-repository/a/dist/generated/index.js.map +1 -1
  8. package/test/examples/source-repository/a/generated/index.ts +33 -38
  9. package/test/examples/source-repository/a/node_modules/.package-lock.json +63 -6
  10. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.eslintrc.js +20 -0
  11. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierignore +4 -0
  12. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/.prettierrc +8 -0
  13. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/CHANGELOG.md +58 -0
  14. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.d.ts +5 -0
  15. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js +18 -0
  16. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/index.js.map +1 -0
  17. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +19 -0
  18. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +555 -0
  19. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +1 -0
  20. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +3 -0
  21. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js +5 -0
  22. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +1 -0
  23. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +45 -0
  24. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +176 -0
  25. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +1 -0
  26. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +11 -0
  27. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +9 -0
  28. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +1 -0
  29. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +13 -0
  30. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +19 -0
  31. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +1 -0
  32. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.d.ts +221 -0
  33. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js +234 -0
  34. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/dist/src/types.js.map +1 -0
  35. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/index.ts +5 -0
  36. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/jest.config.js +9 -0
  37. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/package.json +42 -0
  38. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +702 -0
  39. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/Loadable.ts +2 -0
  40. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepository.ts +250 -0
  41. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +15 -0
  42. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +14 -0
  43. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/src/types.ts +236 -0
  44. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/tsconfig.json +19 -0
  45. package/test/examples/source-repository/a/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +1 -0
  46. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/CHANGELOG.md +33 -0
  47. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js +108 -18
  48. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js.map +1 -1
  49. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/jest.config.js +9 -0
  50. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/package.json +4 -3
  51. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/src/PackageUtil.ts +92 -2
  52. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/test/PackageUtil.symlinkDependencies.test.ts +254 -0
  53. package/test/examples/source-repository/a/node_modules/@proteinjs/util-node/tsconfig.json +1 -1
  54. package/test/examples/source-repository/a/node_modules/bindings/LICENSE.md +22 -0
  55. package/test/examples/source-repository/a/node_modules/bindings/README.md +98 -0
  56. package/test/examples/source-repository/a/node_modules/bindings/bindings.js +221 -0
  57. package/test/examples/source-repository/a/node_modules/bindings/package.json +28 -0
  58. package/test/examples/source-repository/a/node_modules/file-uri-to-path/.travis.yml +30 -0
  59. package/test/examples/source-repository/a/node_modules/file-uri-to-path/History.md +21 -0
  60. package/test/examples/source-repository/a/node_modules/file-uri-to-path/LICENSE +20 -0
  61. package/test/examples/source-repository/a/node_modules/file-uri-to-path/README.md +74 -0
  62. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.d.ts +2 -0
  63. package/test/examples/source-repository/a/node_modules/file-uri-to-path/index.js +66 -0
  64. package/test/examples/source-repository/a/node_modules/file-uri-to-path/package.json +32 -0
  65. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/test.js +24 -0
  66. package/test/examples/source-repository/a/node_modules/file-uri-to-path/test/tests.json +13 -0
  67. package/test/examples/source-repository/a/node_modules/fsevents/LICENSE +22 -0
  68. package/test/examples/source-repository/a/node_modules/fsevents/README.md +89 -0
  69. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.d.ts +46 -0
  70. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.js +83 -0
  71. package/test/examples/source-repository/a/node_modules/fsevents/fsevents.node +0 -0
  72. package/test/examples/source-repository/a/node_modules/fsevents/package.json +62 -0
  73. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +103 -0
  74. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
  75. package/{LICENSE → test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/LICENSE} +6 -5
  76. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/Readme.md +78 -0
  77. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +21 -0
  78. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +53 -0
  79. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +352 -0
  80. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -0
  81. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +79 -0
  82. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  83. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +6 -0
  84. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +191 -0
  85. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +766 -0
  86. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +88 -0
  87. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +106 -0
  88. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/install.js +13 -0
  89. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/package.json +34 -0
  90. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +43 -0
  91. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +110 -0
  92. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +44 -0
  93. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +27 -0
  94. package/test/examples/source-repository/a/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +71 -0
  95. package/test/examples/source-repository/a/node_modules/nan/CHANGELOG.md +557 -0
  96. package/test/examples/source-repository/a/node_modules/nan/CMakeLists.txt +138 -0
  97. package/test/examples/source-repository/a/node_modules/nan/LICENSE.md +9 -0
  98. package/test/examples/source-repository/a/node_modules/nan/README.md +456 -0
  99. package/test/examples/source-repository/a/node_modules/nan/doc/asyncworker.md +146 -0
  100. package/test/examples/source-repository/a/node_modules/nan/doc/buffers.md +54 -0
  101. package/test/examples/source-repository/a/node_modules/nan/doc/callback.md +76 -0
  102. package/test/examples/source-repository/a/node_modules/nan/doc/converters.md +41 -0
  103. package/test/examples/source-repository/a/node_modules/nan/doc/errors.md +226 -0
  104. package/test/examples/source-repository/a/node_modules/nan/doc/json.md +62 -0
  105. package/test/examples/source-repository/a/node_modules/nan/doc/maybe_types.md +583 -0
  106. package/test/examples/source-repository/a/node_modules/nan/doc/methods.md +672 -0
  107. package/test/examples/source-repository/a/node_modules/nan/doc/new.md +147 -0
  108. package/test/examples/source-repository/a/node_modules/nan/doc/node_misc.md +123 -0
  109. package/test/examples/source-repository/a/node_modules/nan/doc/object_wrappers.md +263 -0
  110. package/test/examples/source-repository/a/node_modules/nan/doc/persistent.md +296 -0
  111. package/test/examples/source-repository/a/node_modules/nan/doc/scopes.md +73 -0
  112. package/test/examples/source-repository/a/node_modules/nan/doc/script.md +58 -0
  113. package/test/examples/source-repository/a/node_modules/nan/doc/string_bytes.md +62 -0
  114. package/test/examples/source-repository/a/node_modules/nan/doc/v8_internals.md +199 -0
  115. package/test/examples/source-repository/a/node_modules/nan/doc/v8_misc.md +85 -0
  116. package/test/examples/source-repository/a/node_modules/nan/include_dirs.js +1 -0
  117. package/test/examples/source-repository/a/node_modules/nan/nan.h +2958 -0
  118. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks.h +92 -0
  119. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_12_inl.h +520 -0
  120. package/test/examples/source-repository/a/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
  121. package/test/examples/source-repository/a/node_modules/nan/nan_converters.h +72 -0
  122. package/test/examples/source-repository/a/node_modules/nan/nan_converters_43_inl.h +68 -0
  123. package/test/examples/source-repository/a/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
  124. package/test/examples/source-repository/a/node_modules/nan/nan_define_own_property_helper.h +29 -0
  125. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_12_inl.h +430 -0
  126. package/test/examples/source-repository/a/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
  127. package/test/examples/source-repository/a/node_modules/nan/nan_json.h +166 -0
  128. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_43_inl.h +356 -0
  129. package/test/examples/source-repository/a/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
  130. package/test/examples/source-repository/a/node_modules/nan/nan_new.h +340 -0
  131. package/test/examples/source-repository/a/node_modules/nan/nan_object_wrap.h +156 -0
  132. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_12_inl.h +132 -0
  133. package/test/examples/source-repository/a/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
  134. package/test/examples/source-repository/a/node_modules/nan/nan_private.h +73 -0
  135. package/test/examples/source-repository/a/node_modules/nan/nan_scriptorigin.h +76 -0
  136. package/test/examples/source-repository/a/node_modules/nan/nan_string_bytes.h +305 -0
  137. package/test/examples/source-repository/a/node_modules/nan/nan_typedarray_contents.h +96 -0
  138. package/test/examples/source-repository/a/node_modules/nan/nan_weak.h +437 -0
  139. package/test/examples/source-repository/a/node_modules/nan/package.json +38 -0
  140. package/test/examples/source-repository/a/node_modules/nan/tools/1to2.js +412 -0
  141. package/test/examples/source-repository/a/node_modules/nan/tools/README.md +14 -0
  142. package/test/examples/source-repository/a/node_modules/nan/tools/package.json +19 -0
  143. package/test/examples/source-repository/a/package-lock.json +12 -8
  144. package/test/examples/source-repository/a/package.json +3 -3
  145. package/test/examples/source-repository/b/dist/generated/index.js +1 -1
  146. package/test/examples/source-repository/b/dist/generated/index.js.map +1 -1
  147. package/test/examples/source-repository/b/generated/index.ts +11 -10
  148. package/test/examples/source-repository/b/node_modules/.package-lock.json +61 -4
  149. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.eslintrc.js +20 -0
  150. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierignore +4 -0
  151. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/.prettierrc +8 -0
  152. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/CHANGELOG.md +58 -0
  153. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.d.ts +5 -0
  154. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js +18 -0
  155. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/index.js.map +1 -0
  156. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.d.ts +19 -0
  157. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js +555 -0
  158. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/FlattenedSourceGraph.js.map +1 -0
  159. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.d.ts +3 -0
  160. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js +5 -0
  161. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/Loadable.js.map +1 -0
  162. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.d.ts +45 -0
  163. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js +176 -0
  164. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepository.js.map +1 -0
  165. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.d.ts +11 -0
  166. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js +9 -0
  167. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/SourceRepositoryFilter.js.map +1 -0
  168. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.d.ts +13 -0
  169. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js +19 -0
  170. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/sourceGraphTypes.js.map +1 -0
  171. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.d.ts +221 -0
  172. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js +234 -0
  173. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/dist/src/types.js.map +1 -0
  174. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/index.ts +5 -0
  175. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/jest.config.js +9 -0
  176. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/package.json +42 -0
  177. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/FlattenedSourceGraph.ts +702 -0
  178. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/Loadable.ts +2 -0
  179. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepository.ts +250 -0
  180. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/SourceRepositoryFilter.ts +15 -0
  181. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/sourceGraphTypes.ts +14 -0
  182. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/src/types.ts +236 -0
  183. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/tsconfig.json +19 -0
  184. package/test/examples/source-repository/b/node_modules/@proteinjs/reflection/types/@dagrejs/graphlib.d.ts +1 -0
  185. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/CHANGELOG.md +33 -0
  186. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js +108 -18
  187. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/dist/src/PackageUtil.js.map +1 -1
  188. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/jest.config.js +9 -0
  189. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/package.json +4 -3
  190. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/src/PackageUtil.ts +92 -2
  191. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/test/PackageUtil.symlinkDependencies.test.ts +254 -0
  192. package/test/examples/source-repository/b/node_modules/@proteinjs/util-node/tsconfig.json +1 -1
  193. package/test/examples/source-repository/b/node_modules/bindings/LICENSE.md +22 -0
  194. package/test/examples/source-repository/b/node_modules/bindings/README.md +98 -0
  195. package/test/examples/source-repository/b/node_modules/bindings/bindings.js +221 -0
  196. package/test/examples/source-repository/b/node_modules/bindings/package.json +28 -0
  197. package/test/examples/source-repository/b/node_modules/file-uri-to-path/.travis.yml +30 -0
  198. package/test/examples/source-repository/b/node_modules/file-uri-to-path/History.md +21 -0
  199. package/test/examples/source-repository/b/node_modules/file-uri-to-path/LICENSE +20 -0
  200. package/test/examples/source-repository/b/node_modules/file-uri-to-path/README.md +74 -0
  201. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.d.ts +2 -0
  202. package/test/examples/source-repository/b/node_modules/file-uri-to-path/index.js +66 -0
  203. package/test/examples/source-repository/b/node_modules/file-uri-to-path/package.json +32 -0
  204. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/test.js +24 -0
  205. package/test/examples/source-repository/b/node_modules/file-uri-to-path/test/tests.json +13 -0
  206. package/test/examples/source-repository/b/node_modules/fsevents/LICENSE +22 -0
  207. package/test/examples/source-repository/b/node_modules/fsevents/README.md +89 -0
  208. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.d.ts +46 -0
  209. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.js +83 -0
  210. package/test/examples/source-repository/b/node_modules/fsevents/fsevents.node +0 -0
  211. package/test/examples/source-repository/b/node_modules/fsevents/package.json +62 -0
  212. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/.travis.yml +103 -0
  213. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/ISSUE_TEMPLATE.md +8 -0
  214. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/LICENSE +22 -0
  215. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/Readme.md +78 -0
  216. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/binding.gyp +21 -0
  217. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/.target.mk +53 -0
  218. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Makefile +352 -0
  219. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/.node.d +1 -0
  220. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.deps/Release/obj.target/fse/fsevents.o.d.raw +79 -0
  221. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/Release/.node +0 -0
  222. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/binding.Makefile +6 -0
  223. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/fse.target.mk +191 -0
  224. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/build/gyp-mac-tool +766 -0
  225. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.cc +88 -0
  226. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/fsevents.js +106 -0
  227. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/install.js +13 -0
  228. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/package.json +34 -0
  229. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/async.cc +43 -0
  230. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/constants.cc +110 -0
  231. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/methods.cc +44 -0
  232. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/storage.cc +27 -0
  233. package/test/examples/source-repository/b/node_modules/glob-watcher/node_modules/fsevents/src/thread.cc +71 -0
  234. package/test/examples/source-repository/b/node_modules/nan/CHANGELOG.md +557 -0
  235. package/test/examples/source-repository/b/node_modules/nan/CMakeLists.txt +138 -0
  236. package/test/examples/source-repository/b/node_modules/nan/LICENSE.md +9 -0
  237. package/test/examples/source-repository/b/node_modules/nan/README.md +456 -0
  238. package/test/examples/source-repository/b/node_modules/nan/doc/asyncworker.md +146 -0
  239. package/test/examples/source-repository/b/node_modules/nan/doc/buffers.md +54 -0
  240. package/test/examples/source-repository/b/node_modules/nan/doc/callback.md +76 -0
  241. package/test/examples/source-repository/b/node_modules/nan/doc/converters.md +41 -0
  242. package/test/examples/source-repository/b/node_modules/nan/doc/errors.md +226 -0
  243. package/test/examples/source-repository/b/node_modules/nan/doc/json.md +62 -0
  244. package/test/examples/source-repository/b/node_modules/nan/doc/maybe_types.md +583 -0
  245. package/test/examples/source-repository/b/node_modules/nan/doc/methods.md +672 -0
  246. package/test/examples/source-repository/b/node_modules/nan/doc/new.md +147 -0
  247. package/test/examples/source-repository/b/node_modules/nan/doc/node_misc.md +123 -0
  248. package/test/examples/source-repository/b/node_modules/nan/doc/object_wrappers.md +263 -0
  249. package/test/examples/source-repository/b/node_modules/nan/doc/persistent.md +296 -0
  250. package/test/examples/source-repository/b/node_modules/nan/doc/scopes.md +73 -0
  251. package/test/examples/source-repository/b/node_modules/nan/doc/script.md +58 -0
  252. package/test/examples/source-repository/b/node_modules/nan/doc/string_bytes.md +62 -0
  253. package/test/examples/source-repository/b/node_modules/nan/doc/v8_internals.md +199 -0
  254. package/test/examples/source-repository/b/node_modules/nan/doc/v8_misc.md +85 -0
  255. package/test/examples/source-repository/b/node_modules/nan/include_dirs.js +1 -0
  256. package/test/examples/source-repository/b/node_modules/nan/nan.h +2958 -0
  257. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks.h +92 -0
  258. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_12_inl.h +520 -0
  259. package/test/examples/source-repository/b/node_modules/nan/nan_callbacks_pre_12_inl.h +520 -0
  260. package/test/examples/source-repository/b/node_modules/nan/nan_converters.h +72 -0
  261. package/test/examples/source-repository/b/node_modules/nan/nan_converters_43_inl.h +68 -0
  262. package/test/examples/source-repository/b/node_modules/nan/nan_converters_pre_43_inl.h +42 -0
  263. package/test/examples/source-repository/b/node_modules/nan/nan_define_own_property_helper.h +29 -0
  264. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_12_inl.h +430 -0
  265. package/test/examples/source-repository/b/node_modules/nan/nan_implementation_pre_12_inl.h +263 -0
  266. package/test/examples/source-repository/b/node_modules/nan/nan_json.h +166 -0
  267. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_43_inl.h +356 -0
  268. package/test/examples/source-repository/b/node_modules/nan/nan_maybe_pre_43_inl.h +268 -0
  269. package/test/examples/source-repository/b/node_modules/nan/nan_new.h +340 -0
  270. package/test/examples/source-repository/b/node_modules/nan/nan_object_wrap.h +156 -0
  271. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_12_inl.h +132 -0
  272. package/test/examples/source-repository/b/node_modules/nan/nan_persistent_pre_12_inl.h +242 -0
  273. package/test/examples/source-repository/b/node_modules/nan/nan_private.h +73 -0
  274. package/test/examples/source-repository/b/node_modules/nan/nan_scriptorigin.h +76 -0
  275. package/test/examples/source-repository/b/node_modules/nan/nan_string_bytes.h +305 -0
  276. package/test/examples/source-repository/b/node_modules/nan/nan_typedarray_contents.h +96 -0
  277. package/test/examples/source-repository/b/node_modules/nan/nan_weak.h +437 -0
  278. package/test/examples/source-repository/b/node_modules/nan/package.json +38 -0
  279. package/test/examples/source-repository/b/node_modules/nan/tools/1to2.js +412 -0
  280. package/test/examples/source-repository/b/node_modules/nan/tools/README.md +14 -0
  281. package/test/examples/source-repository/b/node_modules/nan/tools/package.json +19 -0
  282. package/test/examples/source-repository/b/package-lock.json +10 -6
  283. package/test/examples/source-repository/b/package.json +3 -3
@@ -0,0 +1,45 @@
1
+ import { Graph } from '@dagrejs/graphlib';
2
+ import { Class, Variable, TypeAlias, Interface } from './types';
3
+ import { FlattenedSourceGraph } from './FlattenedSourceGraph';
4
+ declare type TypeMap = {
5
+ [qualifiedName: string]: Interface | TypeAlias | Class | Variable;
6
+ };
7
+ export declare class SourceRepository {
8
+ readonly sourceGraph: Graph;
9
+ private readonly sourceLinks;
10
+ flattenedSourceGraph: FlattenedSourceGraph;
11
+ private readonly objectCache;
12
+ private constructor();
13
+ static get(): SourceRepository;
14
+ private static getGlobal;
15
+ interface(qualifiedInterfaceName: string): Interface;
16
+ interfaceExtends(_interface: Interface, type: string): boolean;
17
+ /**
18
+ * Same as SourceRepository.objects except assumes it will find only 1 object.
19
+ *
20
+ * @param extendingType a Type or Interface that the Class or Variable extends
21
+ * @return variable or instantiated class that extends `extendingType`
22
+ */
23
+ object<T>(extendingType: string): T;
24
+ /**
25
+ * @param extendingType a Type, Interface, or Class that the Class or Variable extends
26
+ * @return variables and instantiated classes that extend `extendingType`
27
+ */
28
+ objects<T>(extendingType: string): T[];
29
+ /**
30
+ * @param extendingType a Type, Interface, or Class that the Class or Variable extends
31
+ * @returns a hashmap (key is qualified name) of base child types (vs the instantiated objects provided by the objects method) that extend `extendingType`
32
+ */
33
+ baseChildren(extendingType: string): TypeMap;
34
+ /**
35
+ * @param extendingType a Type, Interface, or Class that the Class or Variable extends
36
+ * @returns a hashmap (key is qualified name) of direct child types (vs the instantiated objects provided by the objects method) that extend `extendingType`
37
+ */
38
+ directChildren(extendingType: string): TypeMap;
39
+ private filterObjects;
40
+ static merge(serializedSourceGraph: string, sourceLinks: {
41
+ [qualifiedName: string]: any;
42
+ }): void;
43
+ private static deserializeClass;
44
+ }
45
+ export {};
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SourceRepository = void 0;
4
+ var graphlib_1 = require("@dagrejs/graphlib");
5
+ var util_1 = require("@proteinjs/util");
6
+ var sourceGraphTypes_1 = require("./sourceGraphTypes");
7
+ var types_1 = require("./types");
8
+ var FlattenedSourceGraph_1 = require("./FlattenedSourceGraph");
9
+ var SourceRepositoryFilter_1 = require("./SourceRepositoryFilter");
10
+ var SourceRepository = /** @class */ (function () {
11
+ function SourceRepository() {
12
+ this.sourceGraph = new graphlib_1.Graph();
13
+ this.sourceLinks = {};
14
+ this.flattenedSourceGraph = { variables: {}, typeAliases: {}, classes: {}, interfaces: {} };
15
+ // private readonly typeCache: { [type: string]: (ClassDeclaration|VariableDeclaration)[] } = {};
16
+ this.objectCache = {};
17
+ }
18
+ SourceRepository.get = function () {
19
+ if (!SourceRepository.getGlobal().__proteinjs_reflection_SourceRepository) {
20
+ SourceRepository.getGlobal().__proteinjs_reflection_SourceRepository = new SourceRepository();
21
+ }
22
+ return SourceRepository.getGlobal().__proteinjs_reflection_SourceRepository;
23
+ };
24
+ SourceRepository.getGlobal = function () {
25
+ if (typeof window !== 'undefined') {
26
+ return window;
27
+ }
28
+ return globalThis;
29
+ };
30
+ SourceRepository.prototype.interface = function (qualifiedInterfaceName) {
31
+ return this.flattenedSourceGraph.interfaces[qualifiedInterfaceName];
32
+ };
33
+ SourceRepository.prototype.interfaceExtends = function (_interface, type) {
34
+ return typeof _interface.allParents[type] !== 'undefined';
35
+ };
36
+ /**
37
+ * Same as SourceRepository.objects except assumes it will find only 1 object.
38
+ *
39
+ * @param extendingType a Type or Interface that the Class or Variable extends
40
+ * @return variable or instantiated class that extends `extendingType`
41
+ */
42
+ SourceRepository.prototype.object = function (extendingType) {
43
+ return this.objects(extendingType)[0];
44
+ };
45
+ /**
46
+ * @param extendingType a Type, Interface, or Class that the Class or Variable extends
47
+ * @return variables and instantiated classes that extend `extendingType`
48
+ */
49
+ SourceRepository.prototype.objects = function (extendingType) {
50
+ if (this.objectCache[extendingType]) {
51
+ return this.objectCache[extendingType];
52
+ }
53
+ var baseChildren = this.baseChildren(extendingType);
54
+ var extendingObjects = [];
55
+ for (var baseChildQualifiedName in baseChildren) {
56
+ var child = baseChildren[baseChildQualifiedName];
57
+ if (util_1.isInstanceOf(child, types_1.Class)) {
58
+ extendingObjects.push(new child._constructor());
59
+ }
60
+ else if (util_1.isInstanceOf(child, types_1.Variable)) {
61
+ extendingObjects.push(child.value);
62
+ }
63
+ }
64
+ this.objectCache[extendingType] = extendingObjects;
65
+ return extendingObjects;
66
+ };
67
+ /**
68
+ * @param extendingType a Type, Interface, or Class that the Class or Variable extends
69
+ * @returns a hashmap (key is qualified name) of base child types (vs the instantiated objects provided by the objects method) that extend `extendingType`
70
+ */
71
+ SourceRepository.prototype.baseChildren = function (extendingType) {
72
+ var _interface = SourceRepository.get().flattenedSourceGraph.interfaces[extendingType];
73
+ var typeAlias = SourceRepository.get().flattenedSourceGraph.typeAliases[extendingType];
74
+ var _class = SourceRepository.get().flattenedSourceGraph.classes[extendingType];
75
+ var baseChildren;
76
+ if (_interface) {
77
+ baseChildren = _interface.baseChildren;
78
+ }
79
+ else if (typeAlias) {
80
+ baseChildren = typeAlias.baseChildren;
81
+ }
82
+ else if (_class) {
83
+ baseChildren = _class.baseChildren;
84
+ }
85
+ else {
86
+ throw new Error("Unable to find type: " + extendingType);
87
+ }
88
+ if (extendingType === SourceRepositoryFilter_1.SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME) {
89
+ return baseChildren;
90
+ }
91
+ return this.filterObjects(baseChildren);
92
+ };
93
+ /**
94
+ * @param extendingType a Type, Interface, or Class that the Class or Variable extends
95
+ * @returns a hashmap (key is qualified name) of direct child types (vs the instantiated objects provided by the objects method) that extend `extendingType`
96
+ */
97
+ SourceRepository.prototype.directChildren = function (extendingType) {
98
+ var _interface = SourceRepository.get().flattenedSourceGraph.interfaces[extendingType];
99
+ var typeAlias = SourceRepository.get().flattenedSourceGraph.typeAliases[extendingType];
100
+ var _class = SourceRepository.get().flattenedSourceGraph.classes[extendingType];
101
+ var directChildren;
102
+ if (_interface) {
103
+ directChildren = _interface.directChildren;
104
+ }
105
+ else if (typeAlias) {
106
+ directChildren = typeAlias.directChildren;
107
+ }
108
+ else if (_class) {
109
+ directChildren = _class.directChildren;
110
+ }
111
+ else {
112
+ throw new Error("Unable to find type: " + extendingType);
113
+ }
114
+ if (extendingType === SourceRepositoryFilter_1.SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME) {
115
+ return directChildren;
116
+ }
117
+ return this.filterObjects(directChildren);
118
+ };
119
+ SourceRepository.prototype.filterObjects = function (typeMap) {
120
+ var filteredTypeMap = {};
121
+ var filters = SourceRepositoryFilter_1.getSourceRepositoryFilters();
122
+ for (var _i = 0, _a = Object.keys(typeMap); _i < _a.length; _i++) {
123
+ var qualifiedName = _a[_i];
124
+ var packageScope = typeMap[qualifiedName];
125
+ var filtered = true;
126
+ for (var _b = 0, filters_1 = filters; _b < filters_1.length; _b++) {
127
+ var filter = filters_1[_b];
128
+ if (!filter.filterObject(qualifiedName)) {
129
+ filtered = false;
130
+ break;
131
+ }
132
+ }
133
+ if (filtered) {
134
+ filteredTypeMap[qualifiedName] = packageScope;
135
+ }
136
+ }
137
+ return filteredTypeMap;
138
+ };
139
+ SourceRepository.merge = function (serializedSourceGraph, sourceLinks) {
140
+ var unescapedSerializedSourceGraph = serializedSourceGraph.replace(/\\'/g, "'");
141
+ var sourceGraph = util_1.graphSerializer.deserialize(unescapedSerializedSourceGraph);
142
+ for (var _i = 0, _a = sourceGraph.nodes(); _i < _a.length; _i++) {
143
+ var nodeName = _a[_i];
144
+ var nodeValue = sourceGraph.node(nodeName);
145
+ if (!nodeValue) {
146
+ continue;
147
+ }
148
+ SourceRepository.get().sourceGraph.setNode(nodeName, SourceRepository.deserializeClass(nodeValue));
149
+ }
150
+ for (var _b = 0, _c = sourceGraph.edges(); _b < _c.length; _b++) {
151
+ var edge = _c[_b];
152
+ var edgeValue = sourceGraph.edge(edge);
153
+ SourceRepository.get().sourceGraph.setEdge(edge, edgeValue);
154
+ }
155
+ Object.assign(SourceRepository.get().sourceLinks, sourceLinks);
156
+ SourceRepository.get().flattenedSourceGraph = FlattenedSourceGraph_1.flattenSourceGraph(SourceRepository.get().sourceGraph, SourceRepository.get().sourceLinks);
157
+ };
158
+ SourceRepository.deserializeClass = function (classJson) {
159
+ if (classJson.sourceType === sourceGraphTypes_1.SourceType.variable) {
160
+ return types_1.VariableDeclaration.deserialize(classJson);
161
+ }
162
+ else if (classJson.sourceType === sourceGraphTypes_1.SourceType.typeAlias) {
163
+ return types_1.TypeAliasDeclaration.deserialize(classJson);
164
+ }
165
+ else if (classJson.sourceType === sourceGraphTypes_1.SourceType.class) {
166
+ return types_1.ClassDeclaration.deserialize(classJson);
167
+ }
168
+ else if (classJson.sourceType === sourceGraphTypes_1.SourceType.interface) {
169
+ return types_1.InterfaceDeclaration.deserialize(classJson);
170
+ }
171
+ return classJson;
172
+ };
173
+ return SourceRepository;
174
+ }());
175
+ exports.SourceRepository = SourceRepository;
176
+ //# sourceMappingURL=SourceRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SourceRepository.js","sourceRoot":"","sources":["../../src/SourceRepository.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAC1C,wCAAgE;AAChE,uDAAgD;AAChD,iCAUiB;AACjB,+DAAkF;AAClF,mEAA+G;AAI/G;IAOE;QANgB,gBAAW,GAAG,IAAI,gBAAK,EAAE,CAAC;QACzB,gBAAW,GAAqC,EAAE,CAAC;QAC7D,yBAAoB,GAAyB,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;QACpH,iGAAiG;QAChF,gBAAW,GAA8B,EAAE,CAAC;IAEtC,CAAC;IAEjB,oBAAG,GAAV;QACE,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,uCAAuC,EAAE;YACzE,gBAAgB,CAAC,SAAS,EAAE,CAAC,uCAAuC,GAAG,IAAI,gBAAgB,EAAE,CAAC;SAC/F;QAED,OAAO,gBAAgB,CAAC,SAAS,EAAE,CAAC,uCAAuC,CAAC;IAC9E,CAAC;IAEc,0BAAS,GAAxB;QACE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YACjC,OAAO,MAAM,CAAC;SACf;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,oCAAS,GAAT,UAAU,sBAA8B;QACtC,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACtE,CAAC;IAED,2CAAgB,GAAhB,UAAiB,UAAqB,EAAE,IAAY;QAClD,OAAO,OAAO,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,WAAW,CAAC;IAC5D,CAAC;IAED;;;;;OAKG;IACH,iCAAM,GAAN,UAAU,aAAqB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAI,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IAC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M,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACzC,gBAAgB,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;SAC7D;QAED,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QAC/D,gBAAgB,CAAC,GAAG,EAAE,CAAC,oBAAoB,GAAG,yCAAkB,CAC9D,gBAAgB,CAAC,GAAG,EAAE,CAAC,WAAW,EAClC,gBAAgB,CAAC,GAAG,EAAE,CAAC,WAAW,CACnC,CAAC;IACJ,CAAC;IAEc,iCAAgB,GAA/B,UAAgC,SAAc;QAC5C,IAAI,SAAS,CAAC,UAAU,KAAK,6BAAU,CAAC,QAAQ,EAAE;YAChD,OAAO,2BAAmB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;SACnD;aAAM,IAAI,SAAS,CAAC,UAAU,KAAK,6BAAU,CAAC,SAAS,EAAE;YACxD,OAAO,4BAAoB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;SACpD;aAAM,IAAI,SAAS,CAAC,UAAU,KAAK,6BAAU,CAAC,KAAK,EAAE;YACpD,OAAO,wBAAgB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;SAChD;aAAM,IAAI,SAAS,CAAC,UAAU,KAAK,6BAAU,CAAC,SAAS,EAAE;YACxD,OAAO,4BAAoB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;SACpD;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAsDH,uBAAC;AAAD,CAAC,AAtOD,IAsOC;AAtOY,4CAAgB"}
@@ -0,0 +1,11 @@
1
+ import { Loadable } from './Loadable';
2
+ export declare const SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME = "@proteinjs/reflection/SourceRepositoryFilter";
3
+ export declare const getSourceRepositoryFilters: () => SourceRepositoryFilter[];
4
+ export interface SourceRepositoryFilter extends Loadable {
5
+ /**
6
+ * Filter objects that would be returned by `SourceRepository.object` and `SourceRepository.objects`
7
+ * @param qualifiedName the package-qualified name of the object to be filtered (ie. `@dependency/package/ClassName`)
8
+ * @return true if the object should be returned by the `SourceRepository`
9
+ */
10
+ filterObject(qualifiedName: string): boolean;
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSourceRepositoryFilters = exports.SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME = void 0;
4
+ var SourceRepository_1 = require("./SourceRepository");
5
+ exports.SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME = '@proteinjs/reflection/SourceRepositoryFilter';
6
+ exports.getSourceRepositoryFilters = function () {
7
+ return SourceRepository_1.SourceRepository.get().objects(exports.SOURCE_REPOSITORY_FILTER_QUALIFIED_NAME);
8
+ };
9
+ //# sourceMappingURL=SourceRepositoryFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SourceRepositoryFilter.js","sourceRoot":"","sources":["../../src/SourceRepositoryFilter.ts"],"names":[],"mappings":";;;AACA,uDAAsD;AAEzC,QAAA,uCAAuC,GAAG,8CAA8C,CAAC;AACzF,QAAA,0BAA0B,GAAG;IACxC,OAAA,mCAAgB,CAAC,GAAG,EAAE,CAAC,OAAO,CAAyB,+CAAuC,CAAC;AAA/F,CAA+F,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare enum SourceType {
2
+ variable = 0,
3
+ typeAlias = 1,
4
+ class = 2,
5
+ interface = 3
6
+ }
7
+ export declare enum SourceRelationship {
8
+ hasType = "has type",
9
+ extendsType = "extends type",
10
+ extendsClass = "extends class",
11
+ implementsInterface = "implements interface",
12
+ extendsInterface = "extends interface"
13
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SourceRelationship = exports.SourceType = void 0;
4
+ var SourceType;
5
+ (function (SourceType) {
6
+ SourceType[SourceType["variable"] = 0] = "variable";
7
+ SourceType[SourceType["typeAlias"] = 1] = "typeAlias";
8
+ SourceType[SourceType["class"] = 2] = "class";
9
+ SourceType[SourceType["interface"] = 3] = "interface";
10
+ })(SourceType = exports.SourceType || (exports.SourceType = {}));
11
+ var SourceRelationship;
12
+ (function (SourceRelationship) {
13
+ SourceRelationship["hasType"] = "has type";
14
+ SourceRelationship["extendsType"] = "extends type";
15
+ SourceRelationship["extendsClass"] = "extends class";
16
+ SourceRelationship["implementsInterface"] = "implements interface";
17
+ SourceRelationship["extendsInterface"] = "extends interface";
18
+ })(SourceRelationship = exports.SourceRelationship || (exports.SourceRelationship = {}));
19
+ //# sourceMappingURL=sourceGraphTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceGraphTypes.js","sourceRoot":"","sources":["../../src/sourceGraphTypes.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,mDAAQ,CAAA;IACR,qDAAS,CAAA;IACT,6CAAK,CAAA;IACL,qDAAS,CAAA;AACX,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAED,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,0CAAoB,CAAA;IACpB,kDAA4B,CAAA;IAC5B,oDAA8B,CAAA;IAC9B,kEAA4C,CAAA;IAC5C,4DAAsC,CAAA;AACxC,CAAC,EANW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAM7B"}
@@ -0,0 +1,221 @@
1
+ export declare abstract class PackageScope {
2
+ readonly packageName: string;
3
+ readonly name: string;
4
+ readonly filePath?: string | undefined;
5
+ readonly qualifiedName: string;
6
+ constructor(packageName: string, name: string, filePath?: string | undefined);
7
+ }
8
+ export declare class Variable extends PackageScope {
9
+ readonly isExported: boolean;
10
+ readonly isConst: boolean;
11
+ readonly value: any;
12
+ readonly typeParameters: {
13
+ [qualifiedName: string]: (TypeAlias | Interface)[];
14
+ };
15
+ directParentTypes: {
16
+ [qualifiedName: string]: TypeAlias | Interface;
17
+ };
18
+ allParentTypes: {
19
+ [qualifiedName: string]: TypeAlias | Interface;
20
+ };
21
+ rootParentTypes: {
22
+ [qualifiedName: string]: TypeAlias | Interface;
23
+ };
24
+ constructor(packageName: string, name: string, filePath: string, isExported: boolean, isConst: boolean, value: any, typeParameters?: {
25
+ [qualifiedName: string]: (TypeAlias | Interface)[];
26
+ }, directParentTypes?: {
27
+ [qualifiedName: string]: TypeAlias | Interface;
28
+ }, allParentTypes?: {
29
+ [qualifiedName: string]: TypeAlias | Interface;
30
+ }, rootParentTypes?: {
31
+ [qualifiedName: string]: TypeAlias | Interface;
32
+ });
33
+ }
34
+ export declare class TypeAlias extends PackageScope {
35
+ readonly typeParameters: {
36
+ [qualifiedName: string]: (TypeAlias | Interface)[];
37
+ };
38
+ readonly directParents: {
39
+ [qualifiedName: string]: TypeAlias | Interface;
40
+ };
41
+ allParents: {
42
+ [qualifiedName: string]: TypeAlias | Interface;
43
+ };
44
+ rootParents: {
45
+ [qualifiedName: string]: TypeAlias | Interface;
46
+ };
47
+ directChildren: {
48
+ [qualifiedName: string]: TypeAlias | Variable;
49
+ };
50
+ allChildren: {
51
+ [qualifiedName: string]: TypeAlias | Variable;
52
+ };
53
+ baseChildren: {
54
+ [qualifiedName: string]: TypeAlias | Variable;
55
+ };
56
+ constructor(packageName: string, name: string, filePath?: string, typeParameters?: {
57
+ [qualifiedName: string]: (TypeAlias | Interface)[];
58
+ }, directParents?: {
59
+ [qualifiedName: string]: TypeAlias | Interface;
60
+ }, allParents?: {
61
+ [qualifiedName: string]: TypeAlias | Interface;
62
+ }, rootParents?: {
63
+ [qualifiedName: string]: TypeAlias | Interface;
64
+ }, directChildren?: {
65
+ [qualifiedName: string]: TypeAlias | Variable;
66
+ }, allChildren?: {
67
+ [qualifiedName: string]: TypeAlias | Variable;
68
+ }, baseChildren?: {
69
+ [qualifiedName: string]: TypeAlias | Variable;
70
+ });
71
+ }
72
+ export declare class Class extends PackageScope {
73
+ readonly isAbstract: boolean;
74
+ readonly isStatic: boolean;
75
+ readonly visibility: Visibility;
76
+ readonly properties: Property[];
77
+ readonly methods: Method[];
78
+ readonly _constructor: any;
79
+ readonly directParents: {
80
+ [qualifiedName: string]: Class | Interface | TypeAlias;
81
+ };
82
+ readonly typeParameters: {
83
+ [qualifiedName: string]: (TypeAlias | Interface | TypeAlias)[];
84
+ };
85
+ allParents: {
86
+ [qualifiedName: string]: Class | Interface | TypeAlias;
87
+ };
88
+ rootParents: {
89
+ [qualifiedName: string]: Class | Interface | TypeAlias;
90
+ };
91
+ directChildren: {
92
+ [qualifiedName: string]: Class;
93
+ };
94
+ allChildren: {
95
+ [qualifiedName: string]: Class;
96
+ };
97
+ baseChildren: {
98
+ [qualifiedName: string]: Class;
99
+ };
100
+ constructor(packageName: string, name: string, filePath: string, isAbstract: boolean, isStatic: boolean, visibility: Visibility, properties: Property[], methods: Method[], _constructor: any, directParents?: {
101
+ [qualifiedName: string]: Class | Interface | TypeAlias;
102
+ }, typeParameters?: {
103
+ [qualifiedName: string]: (TypeAlias | Interface | TypeAlias)[];
104
+ }, allParents?: {
105
+ [qualifiedName: string]: Class | Interface | TypeAlias;
106
+ }, rootParents?: {
107
+ [qualifiedName: string]: Class | Interface | TypeAlias;
108
+ }, directChildren?: {
109
+ [qualifiedName: string]: Class;
110
+ }, allChildren?: {
111
+ [qualifiedName: string]: Class;
112
+ }, baseChildren?: {
113
+ [qualifiedName: string]: Class;
114
+ });
115
+ }
116
+ export declare class Interface extends PackageScope {
117
+ readonly properties: Property[];
118
+ readonly methods: Method[];
119
+ readonly typeParameters: {
120
+ [qualifiedName: string]: (TypeAlias | Interface)[];
121
+ };
122
+ readonly directParents: {
123
+ [qualifiedName: string]: Interface | TypeAlias;
124
+ };
125
+ allParents: {
126
+ [qualifiedName: string]: Interface | TypeAlias;
127
+ };
128
+ rootParents: {
129
+ [qualifiedName: string]: Interface | TypeAlias;
130
+ };
131
+ readonly directChildren: {
132
+ [qualifiedName: string]: Interface | TypeAlias | Class | Variable;
133
+ };
134
+ allChildren: {
135
+ [qualifiedName: string]: Interface | TypeAlias | Class | Variable;
136
+ };
137
+ baseChildren: {
138
+ [qualifiedName: string]: Interface | TypeAlias | Class | Variable;
139
+ };
140
+ constructor(packageName: string, name: string, properties: Property[], methods: Method[], filePath?: string, typeParameters?: {
141
+ [qualifiedName: string]: (TypeAlias | Interface)[];
142
+ }, directParents?: {
143
+ [qualifiedName: string]: Interface | TypeAlias;
144
+ }, allParents?: {
145
+ [qualifiedName: string]: Interface | TypeAlias;
146
+ }, rootParents?: {
147
+ [qualifiedName: string]: Interface | TypeAlias;
148
+ }, directChildren?: {
149
+ [qualifiedName: string]: Interface | TypeAlias | Class | Variable;
150
+ }, allChildren?: {
151
+ [qualifiedName: string]: Interface | TypeAlias | Class | Variable;
152
+ }, baseChildren?: {
153
+ [qualifiedName: string]: Interface | TypeAlias | Class | Variable;
154
+ });
155
+ }
156
+ export declare class Method {
157
+ readonly name: string;
158
+ readonly returnType: TypeAliasDeclaration | undefined;
159
+ readonly isAsync: boolean;
160
+ readonly isOptional: boolean;
161
+ readonly isAbstract: boolean;
162
+ readonly isStatic: boolean;
163
+ readonly visibility: Visibility;
164
+ readonly parameters: Parameter[];
165
+ constructor(name: string, returnType: TypeAliasDeclaration | undefined, isAsync: boolean, isOptional: boolean, isAbstract: boolean, isStatic: boolean, visibility: Visibility, parameters: Parameter[]);
166
+ }
167
+ export declare type Visibility = 'public' | 'protected' | 'private' | undefined;
168
+ export declare class Property {
169
+ readonly name: string;
170
+ readonly type: TypeAliasDeclaration | undefined;
171
+ readonly isOptional: boolean;
172
+ readonly isAbstract: boolean;
173
+ readonly isStatic: boolean;
174
+ readonly visibility: Visibility;
175
+ constructor(name: string, type: TypeAliasDeclaration | undefined, isOptional: boolean, isAbstract: boolean, isStatic: boolean, visibility: Visibility);
176
+ }
177
+ export declare class Parameter {
178
+ readonly name: string;
179
+ readonly type: TypeAliasDeclaration | undefined;
180
+ constructor(name: string, type: TypeAliasDeclaration | undefined);
181
+ }
182
+ /**
183
+ * Declarations are intermediary types created by the parser. They do not contain the deeply-nested, relational
184
+ * information possible at runtime.
185
+ *
186
+ * Note: The declaration types specified in typescript-parser are not used because they are not package-scoped.
187
+ * The typescript-parser package is a file-level parser, and reflection is a package-level parser.
188
+ */
189
+ export declare class VariableDeclaration extends PackageScope {
190
+ type: TypeAliasDeclaration;
191
+ isExported: boolean;
192
+ isConst: boolean;
193
+ constructor(packageName: string, name: string, filePath: string, type: TypeAliasDeclaration, isExported: boolean, isConst: boolean);
194
+ static deserialize(json: any): VariableDeclaration;
195
+ }
196
+ export declare class TypeAliasDeclaration extends PackageScope {
197
+ typeParameters?: string[] | undefined;
198
+ directParents?: TypeAliasDeclaration[] | undefined;
199
+ constructor(packageName: string, name: string, typeParameters?: string[] | undefined, directParents?: TypeAliasDeclaration[] | undefined, filePath?: string);
200
+ static deserialize(json: any): TypeAliasDeclaration;
201
+ }
202
+ export declare class ClassDeclaration extends PackageScope {
203
+ readonly isAbstract: boolean;
204
+ readonly isStatic: boolean;
205
+ readonly visibility: Visibility;
206
+ readonly properties: Property[];
207
+ readonly methods: Method[];
208
+ readonly typeParameters: string[];
209
+ readonly directParentInterfaces: InterfaceDeclaration[];
210
+ readonly directParentClasses: ClassDeclaration[];
211
+ constructor(packageName: string, name: string, isAbstract: boolean, isStatic: boolean, visibility: Visibility, properties: Property[], methods: Method[], typeParameters: string[], directParentInterfaces: InterfaceDeclaration[], directParentClasses: ClassDeclaration[], filePath?: string);
212
+ static deserialize(json: any): ClassDeclaration;
213
+ }
214
+ export declare class InterfaceDeclaration extends PackageScope {
215
+ readonly properties: Property[];
216
+ readonly methods: Method[];
217
+ readonly typeParameters: string[];
218
+ readonly directParents: InterfaceDeclaration[];
219
+ constructor(packageName: string, name: string, properties: Property[], methods: Method[], typeParameters: string[], directParents: InterfaceDeclaration[], filePath?: string);
220
+ static deserialize(json: any): InterfaceDeclaration;
221
+ }