@bikky/compiler 0.0.13 → 0.0.15
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.
- package/Libraries/package.json +10 -0
- package/obj/Debug/BiscuitCompiler.njsproj.AssemblyReference.cache +0 -0
- package/package.json +2 -2
- package/tsconfig.build.src.tsbuildinfo +1 -1
- package/Transformers/CompilerInsertions.d.ts +0 -1
- package/Transformers/CompilerInsertions.d.ts.map +0 -1
- package/Transformers/CompilerInsertions.js +0 -24
- package/Transformers/MacroTransformer.d.ts +0 -1
- package/Transformers/MacroTransformer.d.ts.map +0 -1
- package/Transformers/MacroTransformer.js +0 -317
- package/Transformers/SuperTransformer.d.ts +0 -1
- package/Transformers/SuperTransformer.d.ts.map +0 -1
- package/Transformers/SuperTransformer.js +0 -155
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bikky/compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "Typescript modified for compiling space squad",
|
|
5
5
|
"main": "./Libraries/BiscuitLibraries.js",
|
|
6
|
-
"type": "
|
|
6
|
+
"type": "commonjs",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "slbre"
|
|
9
9
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/typescript/lib/typescript.d.ts","./source/astinterface/tokens.ts","./source/asthelper.ts","./source/astinterface/crawler.ts","./source/astbuilder.ts","./source/astsearcher.ts","./source/asttraverser.ts","./node_modules/ts-patch/system/cache.d.ts","./node_modules/ts-patch/system/errors.d.ts","./node_modules/ts-patch/system/logger.d.ts","./node_modules/ts-patch/system/types.d.ts","./node_modules/ts-patch/system/index.d.ts","./node_modules/ts-patch/options.d.ts","./node_modules/ts-patch/actions/patch.d.ts","./node_modules/ts-patch/actions/unpatch.d.ts","./node_modules/ts-patch/ts-package.d.ts","./node_modules/ts-patch/module/module-file.d.ts","./node_modules/ts-patch/module/source-section.d.ts","./node_modules/ts-patch/module/module-source.d.ts","./node_modules/ts-patch/module/ts-module.d.ts","./node_modules/ts-patch/module/get-live-module.d.ts","./node_modules/ts-patch/module/index.d.ts","./node_modules/ts-patch/patch/patch-detail.d.ts","./node_modules/ts-patch/actions/check.d.ts","./node_modules/ts-patch/actions/install.d.ts","./node_modules/ts-patch/actions/uninstall.d.ts","./node_modules/ts-patch/actions/index.d.ts","./node_modules/ts-patch/plugin-types.d.ts","./node_modules/ts-patch/index.d.ts","./source/tspatchtypes.d.ts","./source/astinterface/class.ts","./transformers/compilerinsertions.ts","./transformers/macrotransformer.ts","./transformers/mixintransformer.ts","./transformers/supertransformer.ts","./node_modules/@types/node/assert.d.ts","./node_modules/@types/node/globals.d.ts","./node_modules/@types/node/async_hooks.d.ts","./node_modules/@types/node/buffer.d.ts","./node_modules/@types/node/child_process.d.ts","./node_modules/@types/node/cluster.d.ts","./node_modules/@types/node/console.d.ts","./node_modules/@types/node/constants.d.ts","./node_modules/@types/node/crypto.d.ts","./node_modules/@types/node/dgram.d.ts","./node_modules/@types/node/dns.d.ts","./node_modules/@types/node/domain.d.ts","./node_modules/@types/node/events.d.ts","./node_modules/@types/node/fs.d.ts","./node_modules/@types/node/fs/promises.d.ts","./node_modules/@types/node/http.d.ts","./node_modules/@types/node/http2.d.ts","./node_modules/@types/node/https.d.ts","./node_modules/@types/node/inspector.d.ts","./node_modules/@types/node/module.d.ts","./node_modules/@types/node/net.d.ts","./node_modules/@types/node/os.d.ts","./node_modules/@types/node/path.d.ts","./node_modules/@types/node/perf_hooks.d.ts","./node_modules/@types/node/process.d.ts","./node_modules/@types/node/punycode.d.ts","./node_modules/@types/node/querystring.d.ts","./node_modules/@types/node/readline.d.ts","./node_modules/@types/node/repl.d.ts","./node_modules/@types/node/stream.d.ts","./node_modules/@types/node/string_decoder.d.ts","./node_modules/@types/node/timers.d.ts","./node_modules/@types/node/tls.d.ts","./node_modules/@types/node/trace_events.d.ts","./node_modules/@types/node/tty.d.ts","./node_modules/@types/node/url.d.ts","./node_modules/@types/node/util.d.ts","./node_modules/@types/node/v8.d.ts","./node_modules/@types/node/vm.d.ts","./node_modules/@types/node/wasi.d.ts","./node_modules/@types/node/worker_threads.d.ts","./node_modules/@types/node/zlib.d.ts","./node_modules/@types/node/globals.global.d.ts","./node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569",{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"54e0676a8218c1d4623816b5f47a79cb82ca45aec3c535eef67204cdfa3a894d",{"version":"73d55455c143586fa6f65cb703eb38eca705d426bea58b761409c69c18a65819","signature":"90b64559d89331fec8bc5f582ba21654c32f3fa8ca3ddd225ac7661c658e4d4c"},{"version":"370fa4502887e97dda8d32372e7c01b86c434feaad9875f2839e0172dd40fcab","signature":"ab8c126f96cf20d8c844f1a43a56d2749d4f9e774709399473ee7abde1c86c6b"},{"version":"3e4947112091cc35f8964d8b313092610e2c27354540ac74f7ff76dc6ddeb908","signature":"2af2be728de91489bdcd7dd85c899a6d967e6d4e0266651638c4c9ddb8982426"},{"version":"3f7ec6dcb4347de1224df4abd1fb90156104be51637594090cec57101b3f1551","signature":"62b3ebdfaab53efd5d1c9b7c713c32cb7f226ff77ce34dacf7935cf7d05beece"},{"version":"c0a5e343f7a700ba5c6eaf36a99bafe52e60c51b0388c6aaef3ac401f70ccfb4","signature":"60c7d9d44b3bb9d94568ee289e5c644ca952497fb279180b8305f2d5c79966f4"},{"version":"d1756bb086c19769d785f9807be5ff1bf91ee70dc9bab13b6ee35629f547d59e","signature":"0d177547fadbbb8f7a49619adee9c5ff4fc71c5a6aa3c219b03d8fd5d0d0eb48"},"7145912e90bd4170aa235363b9ef04cd62f71d4f35a3a7d61ae4e716d6205ace","9c24e5aeee0739f8a679f05055e63f0f8a1468f5a4b7faa6bc642d2226bcb8c3","23987a3f38a2536215400e347f78e8cefd39e8354c0850a555636df54431b54a","b776f0d5cd3a213fa2c44d4c6de8dfe5a6e8692c22c1ed00c63e0317ad740026","0d37f7ab4b1cc51b0a5a6dd5efb32d6267f82e62bb7322ee56a83d5d0a956f43","9443fbbe7449d866f00aa520daf387fc032c49b14d591ac9be1ef6c7f5becac3","2c83d69c414338dbe80f701f3ff379c3185bf032d1996dc9b512bf24f6a28eae","647d1c285d24531d57f19999e51fbf9703c2ccf2238a5128cdce4ae743dca2b4","cc02ea07878296b5f0ef0544db77dd06e2c398a4a606acd434dafc619a1c5e83","d0f3138d6256e8a71fe965bb291c2f24e6cab7878a558d14de8fcd6749b41a7d","b1c4e21cc9238721f0b0183b9b7adb6ca5e4b4dbfbbb089c3a6f1dd43ea84672","93a8ad09222bdd05bb1487aca6d7d655ab86d95f84a1f3b233a9a6609031a161","4212d379481d94c7b5f0f7d79f79686cdccdddc42e7a4fb1e5bb8f0a72375467","11faf63611205e2f8b45b1efa5593dc2330afd703f34cb16a5fc974f517921b2","aa6e41bcb9a7af18b8868f079f1e81b0602f301e3690b3f4b535ec999154ac97","7871aad7a8a23aab6284233937a178055397f658a5e97a35e07474a3efda764c","3763e94cc3766888acdf45e6e8245cd10d3a312210e974d5eb575dba61407173","f0654dfeb62dea5132a331aaad08dab6a3645914a0b5016d2787666bd4d7fce9","4125b0891a0e984e4e960c2008fd58f4a06193f9eacb2bddeb017dcee3a5b748","dad05ca7d099aec05e9a14f6319e5e33e6b2348f471f5ef0b41ea81e8ed3a727","417ab29f4f4ceae790bfccb823b3c18dc8626781ff4ed46829d70b516bdae23d","46a49b1cf2d8c32fb8e8a7d3bbfa4bacd1ddffd212a601ac84912fe72111b28c","5e9eb324ca882f710bb2b76fd2e937a7012602d3ea1d926ab042b4a1e72881f8",{"version":"874ab83b27657e7d59c5b8b7b80808def9492a3e649e24f66623b708a56e0104","signature":"3e3509a73fb9d3dd62ad64b526301c96a8229a43651f7ef3753c0e7bc1a33ddd"},{"version":"d004688340245875b27e9a1994b2ed16f97eac93e3ee29f6eb097cbaeece17e4","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},{"version":"2b8cb59985ef8a1d7b2b5f7e9ce321a4fd63fc49548cc019e61abbdf267812c0","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},{"version":"ab4958d52d946675cc536cfbba1ecb81db9be7b8e9586901e73163b1c7015a15","signature":"78f32ccd81626cc4918fed0712916640db43a99264374bb28025f4f80f58f640"},{"version":"f73fd7be9b3f3c0119f864f5db920fe84fa2809cc430fb8cbca9100c443c553e","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"5540267409ab1444c73c786b8ae4caa37d5f0ea41f9255c6123338da790ce5cc","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9deb3a5eaf187df1428f0fee83c8c51eedb74f6da3442410bad9688e42a7e2b5","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","db86f82fac051ae344b47e8fe7ac7990174b41db79b2b220a49dc5a47c71a9b5","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","cf0a69c71aedf2f8fe45925abd554fd3dc7301ce66d6ab7521fb8c3471c24dd8","56e6722c6013609b3e5e6ed4a8a7e01f41da6c5e3d6f0ecff3d09ef7a81414cf","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","d79fda68cbfb361c4ee9cd9ea169babb65887534d64017726cd01f54783d20a5","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5"],"root":[[50,55],[78,83]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"module":1,"rootDir":"./","sourceMap":true,"strict":true,"target":2},"fileIdsList":[[84],[86],[87,92],[88,96,97,104,113],[88,89,96,104],[90,120],[91,92,97,105],[92,113],[93,94,96,104],[94],[95,96],[96],[96,97,98,113,119],[97,98],[99,104,113,119],[96,97,99,100,104,113,116,119],[99,101,113,116,119],[84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126],[96,102],[103,119],[94,96,104,113],[105],[106],[86,107],[108,118],[109],[110],[96,111],[111,112,120,122],[96,113],[114],[115],[104,113,116],[117],[104,118],[110,119],[120],[113,121],[122],[123],[96,98,113,119,122,124],[113,125],[61,71],[62,63,72,73,74],[77],[61],[61,70,75,76],[68],[65,67,68,69],[71],[66,68],[49,65],[64,65,67],[60],[70],[49],[56,57,58,59],[49,50,52],[49,51,52],[49,51],[49,77],[49,51,52,53,54,79],[49,50]],"referencedMap":[[84,1],[86,2],[87,3],[88,4],[89,5],[90,6],[91,7],[92,8],[93,9],[94,10],[95,11],[96,12],[97,13],[98,14],[99,15],[100,16],[101,17],[127,18],[102,19],[103,20],[104,21],[105,22],[106,23],[107,24],[108,25],[109,26],[110,27],[111,28],[112,29],[113,30],[114,31],[115,32],[116,33],[117,34],[118,35],[119,36],[120,37],[121,38],[122,39],[123,40],[124,41],[125,42],[72,43],[75,44],[73,45],[62,46],[74,46],[63,46],[77,47],[69,48],[70,49],[65,50],[67,51],[66,52],[68,53],[61,54],[71,55],[76,56],[60,57],[64,55],[53,58],[51,56],[79,59],[52,60],[50,56],[54,58],[55,56],[78,61],[82,62]],"exportedModulesMap":[[84,1],[86,2],[87,3],[88,4],[89,5],[90,6],[91,7],[92,8],[93,9],[94,10],[95,11],[96,12],[97,13],[98,14],[99,15],[100,16],[101,17],[127,18],[102,19],[103,20],[104,21],[105,22],[106,23],[107,24],[108,25],[109,26],[110,27],[111,28],[112,29],[113,30],[114,31],[115,32],[116,33],[117,34],[118,35],[119,36],[120,37],[121,38],[122,39],[123,40],[124,41],[125,42],[72,43],[75,44],[73,45],[62,46],[74,46],[63,46],[77,47],[69,48],[70,49],[65,50],[67,51],[66,52],[68,53],[61,54],[71,55],[76,56],[60,57],[64,55],[53,63],[51,56],[79,60],[52,56],[50,56],[54,56],[55,56],[78,61],[82,56]],"semanticDiagnosticsPerFile":[84,86,87,88,89,90,91,92,93,94,95,96,97,98,85,126,99,100,101,127,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,72,75,73,62,74,63,77,69,70,65,67,66,68,61,71,76,56,57,60,58,59,64,47,48,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,8,45,42,43,44,1,46,49,53,51,79,52,50,54,55,78,80,81,82,83],"latestChangedDtsFile":"./Transformers/SuperTransformer.d.ts"},"version":"5.1.3"}
|
|
1
|
+
{"program":{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/typescript/lib/typescript.d.ts","./source/astinterface/tokens.ts","./source/asthelper.ts","./source/astinterface/crawler.ts","./source/astbuilder.ts","./source/astsearcher.ts","./source/asttraverser.ts","./node_modules/ts-patch/system/cache.d.ts","./node_modules/ts-patch/system/errors.d.ts","./node_modules/ts-patch/system/logger.d.ts","./node_modules/ts-patch/system/types.d.ts","./node_modules/ts-patch/system/index.d.ts","./node_modules/ts-patch/options.d.ts","./node_modules/ts-patch/actions/patch.d.ts","./node_modules/ts-patch/actions/unpatch.d.ts","./node_modules/ts-patch/ts-package.d.ts","./node_modules/ts-patch/module/module-file.d.ts","./node_modules/ts-patch/module/source-section.d.ts","./node_modules/ts-patch/module/module-source.d.ts","./node_modules/ts-patch/module/ts-module.d.ts","./node_modules/ts-patch/module/get-live-module.d.ts","./node_modules/ts-patch/module/index.d.ts","./node_modules/ts-patch/patch/patch-detail.d.ts","./node_modules/ts-patch/actions/check.d.ts","./node_modules/ts-patch/actions/install.d.ts","./node_modules/ts-patch/actions/uninstall.d.ts","./node_modules/ts-patch/actions/index.d.ts","./node_modules/ts-patch/plugin-types.d.ts","./node_modules/ts-patch/index.d.ts","./source/tspatchtypes.d.ts","./source/astinterface/class.ts","./transformers/mixintransformer.ts","./node_modules/@types/node/assert.d.ts","./node_modules/@types/node/globals.d.ts","./node_modules/@types/node/async_hooks.d.ts","./node_modules/@types/node/buffer.d.ts","./node_modules/@types/node/child_process.d.ts","./node_modules/@types/node/cluster.d.ts","./node_modules/@types/node/console.d.ts","./node_modules/@types/node/constants.d.ts","./node_modules/@types/node/crypto.d.ts","./node_modules/@types/node/dgram.d.ts","./node_modules/@types/node/dns.d.ts","./node_modules/@types/node/domain.d.ts","./node_modules/@types/node/events.d.ts","./node_modules/@types/node/fs.d.ts","./node_modules/@types/node/fs/promises.d.ts","./node_modules/@types/node/http.d.ts","./node_modules/@types/node/http2.d.ts","./node_modules/@types/node/https.d.ts","./node_modules/@types/node/inspector.d.ts","./node_modules/@types/node/module.d.ts","./node_modules/@types/node/net.d.ts","./node_modules/@types/node/os.d.ts","./node_modules/@types/node/path.d.ts","./node_modules/@types/node/perf_hooks.d.ts","./node_modules/@types/node/process.d.ts","./node_modules/@types/node/punycode.d.ts","./node_modules/@types/node/querystring.d.ts","./node_modules/@types/node/readline.d.ts","./node_modules/@types/node/repl.d.ts","./node_modules/@types/node/stream.d.ts","./node_modules/@types/node/string_decoder.d.ts","./node_modules/@types/node/timers.d.ts","./node_modules/@types/node/tls.d.ts","./node_modules/@types/node/trace_events.d.ts","./node_modules/@types/node/tty.d.ts","./node_modules/@types/node/url.d.ts","./node_modules/@types/node/util.d.ts","./node_modules/@types/node/v8.d.ts","./node_modules/@types/node/vm.d.ts","./node_modules/@types/node/wasi.d.ts","./node_modules/@types/node/worker_threads.d.ts","./node_modules/@types/node/zlib.d.ts","./node_modules/@types/node/globals.global.d.ts","./node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569",{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"54e0676a8218c1d4623816b5f47a79cb82ca45aec3c535eef67204cdfa3a894d",{"version":"73d55455c143586fa6f65cb703eb38eca705d426bea58b761409c69c18a65819","signature":"90b64559d89331fec8bc5f582ba21654c32f3fa8ca3ddd225ac7661c658e4d4c"},{"version":"370fa4502887e97dda8d32372e7c01b86c434feaad9875f2839e0172dd40fcab","signature":"ab8c126f96cf20d8c844f1a43a56d2749d4f9e774709399473ee7abde1c86c6b"},{"version":"3e4947112091cc35f8964d8b313092610e2c27354540ac74f7ff76dc6ddeb908","signature":"2af2be728de91489bdcd7dd85c899a6d967e6d4e0266651638c4c9ddb8982426"},{"version":"3f7ec6dcb4347de1224df4abd1fb90156104be51637594090cec57101b3f1551","signature":"62b3ebdfaab53efd5d1c9b7c713c32cb7f226ff77ce34dacf7935cf7d05beece"},{"version":"c0a5e343f7a700ba5c6eaf36a99bafe52e60c51b0388c6aaef3ac401f70ccfb4","signature":"60c7d9d44b3bb9d94568ee289e5c644ca952497fb279180b8305f2d5c79966f4"},{"version":"d1756bb086c19769d785f9807be5ff1bf91ee70dc9bab13b6ee35629f547d59e","signature":"0d177547fadbbb8f7a49619adee9c5ff4fc71c5a6aa3c219b03d8fd5d0d0eb48"},"7145912e90bd4170aa235363b9ef04cd62f71d4f35a3a7d61ae4e716d6205ace","9c24e5aeee0739f8a679f05055e63f0f8a1468f5a4b7faa6bc642d2226bcb8c3","23987a3f38a2536215400e347f78e8cefd39e8354c0850a555636df54431b54a","b776f0d5cd3a213fa2c44d4c6de8dfe5a6e8692c22c1ed00c63e0317ad740026","0d37f7ab4b1cc51b0a5a6dd5efb32d6267f82e62bb7322ee56a83d5d0a956f43","9443fbbe7449d866f00aa520daf387fc032c49b14d591ac9be1ef6c7f5becac3","2c83d69c414338dbe80f701f3ff379c3185bf032d1996dc9b512bf24f6a28eae","647d1c285d24531d57f19999e51fbf9703c2ccf2238a5128cdce4ae743dca2b4","cc02ea07878296b5f0ef0544db77dd06e2c398a4a606acd434dafc619a1c5e83","d0f3138d6256e8a71fe965bb291c2f24e6cab7878a558d14de8fcd6749b41a7d","b1c4e21cc9238721f0b0183b9b7adb6ca5e4b4dbfbbb089c3a6f1dd43ea84672","93a8ad09222bdd05bb1487aca6d7d655ab86d95f84a1f3b233a9a6609031a161","4212d379481d94c7b5f0f7d79f79686cdccdddc42e7a4fb1e5bb8f0a72375467","11faf63611205e2f8b45b1efa5593dc2330afd703f34cb16a5fc974f517921b2","aa6e41bcb9a7af18b8868f079f1e81b0602f301e3690b3f4b535ec999154ac97","7871aad7a8a23aab6284233937a178055397f658a5e97a35e07474a3efda764c","3763e94cc3766888acdf45e6e8245cd10d3a312210e974d5eb575dba61407173","f0654dfeb62dea5132a331aaad08dab6a3645914a0b5016d2787666bd4d7fce9","4125b0891a0e984e4e960c2008fd58f4a06193f9eacb2bddeb017dcee3a5b748","dad05ca7d099aec05e9a14f6319e5e33e6b2348f471f5ef0b41ea81e8ed3a727","417ab29f4f4ceae790bfccb823b3c18dc8626781ff4ed46829d70b516bdae23d","46a49b1cf2d8c32fb8e8a7d3bbfa4bacd1ddffd212a601ac84912fe72111b28c","5e9eb324ca882f710bb2b76fd2e937a7012602d3ea1d926ab042b4a1e72881f8",{"version":"874ab83b27657e7d59c5b8b7b80808def9492a3e649e24f66623b708a56e0104","signature":"3e3509a73fb9d3dd62ad64b526301c96a8229a43651f7ef3753c0e7bc1a33ddd"},{"version":"ab4958d52d946675cc536cfbba1ecb81db9be7b8e9586901e73163b1c7015a15","signature":"78f32ccd81626cc4918fed0712916640db43a99264374bb28025f4f80f58f640"},"4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"5540267409ab1444c73c786b8ae4caa37d5f0ea41f9255c6123338da790ce5cc","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9deb3a5eaf187df1428f0fee83c8c51eedb74f6da3442410bad9688e42a7e2b5","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","db86f82fac051ae344b47e8fe7ac7990174b41db79b2b220a49dc5a47c71a9b5","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","cf0a69c71aedf2f8fe45925abd554fd3dc7301ce66d6ab7521fb8c3471c24dd8","56e6722c6013609b3e5e6ed4a8a7e01f41da6c5e3d6f0ecff3d09ef7a81414cf","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","d79fda68cbfb361c4ee9cd9ea169babb65887534d64017726cd01f54783d20a5","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5"],"root":[[50,55],[78,80]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"module":1,"rootDir":"./","sourceMap":true,"strict":true,"target":2},"fileIdsList":[[81],[83],[84,89],[85,93,94,101,110],[85,86,93,101],[87,117],[88,89,94,102],[89,110],[90,91,93,101],[91],[92,93],[93],[93,94,95,110,116],[94,95],[96,101,110,116],[93,94,96,97,101,110,113,116],[96,98,110,113,116],[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123],[93,99],[100,116],[91,93,101,110],[102],[103],[83,104],[105,115],[106],[107],[93,108],[108,109,117,119],[93,110],[111],[112],[101,110,113],[114],[101,115],[107,116],[117],[110,118],[119],[120],[93,95,110,116,119,121],[110,122],[61,71],[62,63,72,73,74],[77],[61],[61,70,75,76],[68],[65,67,68,69],[71],[66,68],[49,65],[64,65,67],[60],[70],[49],[56,57,58,59],[49,50,52],[49,51,52],[49,51],[49,77],[49,51,52,53,54,79],[49,50]],"referencedMap":[[81,1],[83,2],[84,3],[85,4],[86,5],[87,6],[88,7],[89,8],[90,9],[91,10],[92,11],[93,12],[94,13],[95,14],[96,15],[97,16],[98,17],[124,18],[99,19],[100,20],[101,21],[102,22],[103,23],[104,24],[105,25],[106,26],[107,27],[108,28],[109,29],[110,30],[111,31],[112,32],[113,33],[114,34],[115,35],[116,36],[117,37],[118,38],[119,39],[120,40],[121,41],[122,42],[72,43],[75,44],[73,45],[62,46],[74,46],[63,46],[77,47],[69,48],[70,49],[65,50],[67,51],[66,52],[68,53],[61,54],[71,55],[76,56],[60,57],[64,55],[53,58],[51,56],[79,59],[52,60],[50,56],[54,58],[55,56],[78,61],[80,62]],"exportedModulesMap":[[81,1],[83,2],[84,3],[85,4],[86,5],[87,6],[88,7],[89,8],[90,9],[91,10],[92,11],[93,12],[94,13],[95,14],[96,15],[97,16],[98,17],[124,18],[99,19],[100,20],[101,21],[102,22],[103,23],[104,24],[105,25],[106,26],[107,27],[108,28],[109,29],[110,30],[111,31],[112,32],[113,33],[114,34],[115,35],[116,36],[117,37],[118,38],[119,39],[120,40],[121,41],[122,42],[72,43],[75,44],[73,45],[62,46],[74,46],[63,46],[77,47],[69,48],[70,49],[65,50],[67,51],[66,52],[68,53],[61,54],[71,55],[76,56],[60,57],[64,55],[53,63],[51,56],[79,60],[52,56],[50,56],[54,56],[55,56],[78,61],[80,56]],"semanticDiagnosticsPerFile":[81,83,84,85,86,87,88,89,90,91,92,93,94,95,82,123,96,97,98,124,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,72,75,73,62,74,63,77,69,70,65,67,66,68,61,71,76,56,57,60,58,59,64,47,48,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,8,45,42,43,44,1,46,49,53,51,79,52,50,54,55,78,80],"latestChangedDtsFile":"./Transformers/MixinTransformer.d.ts"},"version":"5.1.3"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=CompilerInsertions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CompilerInsertions.d.ts","sourceRoot":"","sources":["CompilerInsertions.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// /**
|
|
3
|
-
// * Adds BikkyCompiler type files and supporting code into the program at compile-time.
|
|
4
|
-
// */
|
|
5
|
-
//
|
|
6
|
-
// import * as ts from 'typescript';
|
|
7
|
-
// import * as path from 'path';
|
|
8
|
-
// import { ProgramTransformerExtras, PluginConfig } from 'ts-patch';
|
|
9
|
-
// import {ProgramPatchableTS} from "../Source/TSPatchTypes.js";
|
|
10
|
-
//
|
|
11
|
-
// export const newFile = path.resolve(__dirname, '../Libraries/GlobalTypes.d.ts');
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
// export default function (program: ts.Program, host: ts.CompilerHost | undefined, options: PluginConfig, pte: ProgramTransformerExtras) {
|
|
15
|
-
// const tsInstance : ProgramPatchableTS = pte.ts;
|
|
16
|
-
// return tsInstance.createProgram(
|
|
17
|
-
// // /* rootNames */ [newFile, ...program.getRootFileNames()],
|
|
18
|
-
// /* rootNames */ [...program.getRootFileNames()],
|
|
19
|
-
// program.getCompilerOptions(),
|
|
20
|
-
// host,
|
|
21
|
-
// /* oldProgram */ program
|
|
22
|
-
// );
|
|
23
|
-
// }
|
|
24
|
-
//# sourceMappingURL=CompilerInsertions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=MacroTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MacroTransformer.d.ts","sourceRoot":"","sources":["MacroTransformer.ts"],"names":[],"mappings":""}
|
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// // transformer1-module
|
|
4
|
-
// import * as ts from "typescript";
|
|
5
|
-
// import {ID, LET, VAR} from "../Source/ASTBuilder";
|
|
6
|
-
//
|
|
7
|
-
// //This class should be able to do a few things:
|
|
8
|
-
// // Import macros from other files.
|
|
9
|
-
// // Copy macro AST
|
|
10
|
-
// // Insert macro AST to the destination location (inlining the macro).
|
|
11
|
-
// // Resolve variable names to the name of the provided variable.
|
|
12
|
-
// // Not require special (complex) syntax in the macro creation.
|
|
13
|
-
// class MacroTransformer {
|
|
14
|
-
// RegisteredMacros = new Map<string, ts.FunctionExpression | ts.ArrowFunction>();
|
|
15
|
-
// DeclarationName: string = "MACRO";
|
|
16
|
-
// context!: ts.TransformationContext;
|
|
17
|
-
// constructor() {
|
|
18
|
-
// }
|
|
19
|
-
//
|
|
20
|
-
// logError(node: ts.Node, error: string): undefined {
|
|
21
|
-
// if (!node || !node.getSourceFile()) {
|
|
22
|
-
// console.error("Why are we here?");
|
|
23
|
-
// return;
|
|
24
|
-
// }
|
|
25
|
-
// var source = ts.isSourceFile(node) ? node : node.getSourceFile();
|
|
26
|
-
// var pos = source.getLineAndCharacterOfPosition(node.pos);
|
|
27
|
-
// console.error(`${source.fileName}(${pos.line},${pos.character}):`, error);
|
|
28
|
-
// // This can cause the compiler to stop, but we're not using it because the above will allow
|
|
29
|
-
// // us to go to the right location in the file. And we probably want to return what we can if
|
|
30
|
-
// // there's an error since that's how the rest of typescript works.
|
|
31
|
-
// //ts.createThrow(ts.createStringLiteral("Compiler Error."));
|
|
32
|
-
// return;
|
|
33
|
-
// }
|
|
34
|
-
//
|
|
35
|
-
// printer = ts.createPrinter();
|
|
36
|
-
//
|
|
37
|
-
// printNode(node: ts.Node, sourceFile: ts.SourceFile) {
|
|
38
|
-
// return this.printer.printNode(ts.EmitHint.Unspecified, node, sourceFile);
|
|
39
|
-
// }
|
|
40
|
-
//
|
|
41
|
-
// printNodeFirstLine(node: ts.Node, sourceFile: ts.SourceFile) {
|
|
42
|
-
// var code = this.printNode(node, node.getSourceFile());
|
|
43
|
-
// //space matches tab.
|
|
44
|
-
// code = code.replace(/^ *{? *\r\n?/, "");
|
|
45
|
-
// return code.replace(/\r\n.*/gi, "");
|
|
46
|
-
//
|
|
47
|
-
// }
|
|
48
|
-
//
|
|
49
|
-
// CrawlExpressionTree(node: ts.SourceFile) {
|
|
50
|
-
// //Run twice, we hoist macro declarations.
|
|
51
|
-
// node = ts.visitNode(node, this.FindMacroDeclaration.bind(this)) as ts.SourceFile;
|
|
52
|
-
// return ts.visitNode(node, this.SearchForMacroUseStatement.bind(this));
|
|
53
|
-
// }
|
|
54
|
-
//
|
|
55
|
-
// FindMacroDeclaration(node: ts.Node): ts.Node {
|
|
56
|
-
// if (ts.isVariableStatement(node)) {
|
|
57
|
-
// //This statement has potential to contain a MACRO declaration.
|
|
58
|
-
// //Support for comma separated declarations.
|
|
59
|
-
// for (var declaration of node.declarationList.declarations) {
|
|
60
|
-
// //If this variable is initialised, and it's initialised with a function call check to see
|
|
61
|
-
// // if the function's name is MACRO (which is our custom buzzword).
|
|
62
|
-
// if (
|
|
63
|
-
// declaration.initializer
|
|
64
|
-
// && ts.isCallExpression(declaration.initializer)
|
|
65
|
-
// && ts.isIdentifier(declaration.initializer.expression)
|
|
66
|
-
// && declaration.initializer.expression.text === this.DeclarationName
|
|
67
|
-
// ) {
|
|
68
|
-
// //This is the name of the variable that the macro's being assigned to.
|
|
69
|
-
// var name = declaration.name;
|
|
70
|
-
// //Macros must be identifiers (normal variables, not symbols and not array unwraps).
|
|
71
|
-
// if (!ts.isIdentifier(name)) {
|
|
72
|
-
// this.logError(declaration, "Macros must be declared as using normal identifiers, symbols and array unwraps are unsupported.");
|
|
73
|
-
// return node;
|
|
74
|
-
// }
|
|
75
|
-
// if (declaration.initializer.arguments.length == 0) {
|
|
76
|
-
// this.logError(declaration, "When declaring a macro a function must be supplied as the first parameter.");
|
|
77
|
-
// return node;
|
|
78
|
-
// }
|
|
79
|
-
// if (declaration.initializer.arguments.length > 1) {
|
|
80
|
-
// this.logError(declaration, "Macro declaration only takes one parameter.");
|
|
81
|
-
// return node;
|
|
82
|
-
// }
|
|
83
|
-
// var value = declaration.initializer.arguments[0];
|
|
84
|
-
// this.RegisteredMacros.set(name.text, <ts.FunctionExpression>value);
|
|
85
|
-
// console.log("Registering macro", name.text);
|
|
86
|
-
// //Now that we've stored the macro code for later use, we need to delete it from the file.
|
|
87
|
-
// //Todo: this creates an unnecessary semicolon.
|
|
88
|
-
// return ts.factory.createEmptyStatement();
|
|
89
|
-
// }
|
|
90
|
-
// }
|
|
91
|
-
// }
|
|
92
|
-
// node = ts.visitEachChild(node, this.FindMacroDeclaration.bind(this), this.context) || node;
|
|
93
|
-
// return node;
|
|
94
|
-
// }
|
|
95
|
-
//
|
|
96
|
-
// SearchForMacroUseStatement(node: ts.Node): ts.Node {
|
|
97
|
-
// if (ts.isBlock(node) || ts.isSourceFile(node) || ts.isCaseBlock(node)) {
|
|
98
|
-
// //console.log("Block:", this.printNodeFirstLine(node, node.getSourceFile()));
|
|
99
|
-
// return ts.visitEachChild(node, <any>this.FindMacroUsage.bind(this), this.context);
|
|
100
|
-
// }
|
|
101
|
-
// else if (ts.isFunctionDeclaration(node)) {
|
|
102
|
-
// var body = ts.visitEachChild(node.body, <any>this.FindMacroUsage.bind(this), this.context)!;
|
|
103
|
-
// let foo = ts.factory.updateFunctionDeclaration(node, node.modifiers, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, body);
|
|
104
|
-
// //if (foo.name) {
|
|
105
|
-
// // console.log("Function:", this.printNode(foo.name, node.getSourceFile()));
|
|
106
|
-
// //}
|
|
107
|
-
// return foo;
|
|
108
|
-
// }
|
|
109
|
-
// else if (ts.isMethodDeclaration(node)) {
|
|
110
|
-
// var body = ts.visitEachChild(node.body, <any>this.FindMacroUsage.bind(this), this.context)!;
|
|
111
|
-
// let foo = ts.factory.updateMethodDeclaration(node, node.modifiers as ts.NodeArray<ts.Modifier>, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, body);
|
|
112
|
-
// //console.log("Method:", this.printNode(foo.name, node.getSourceFile()));
|
|
113
|
-
// return foo;
|
|
114
|
-
// }
|
|
115
|
-
// else if (ts.isIfStatement(node)) {
|
|
116
|
-
// //console.log("IF:", this.printNode(node, node.getSourceFile()));
|
|
117
|
-
// var thenS = ts.visitNode(node.thenStatement, this.SearchForMacroUseStatement.bind(this)) as ts.Statement;
|
|
118
|
-
// var elseS = node.elseStatement ? ts.visitNode(node.elseStatement, this.SearchForMacroUseStatement.bind(this)) as ts.Statement : undefined;
|
|
119
|
-
// return ts.factory.updateIfStatement(node as ts.IfStatement, node.expression as ts.Expression, thenS, elseS) as ts.Statement;
|
|
120
|
-
// }
|
|
121
|
-
// else {
|
|
122
|
-
// return ts.visitEachChild(node, this.SearchForMacroUseStatement.bind(this), this.context);
|
|
123
|
-
// }
|
|
124
|
-
// }
|
|
125
|
-
//
|
|
126
|
-
// isBlocky(node: ts.Node) {
|
|
127
|
-
// return ts.isMethodDeclaration(node) || ts.isFunctionDeclaration(node) || ts.isClassDeclaration(node) || ts.isInterfaceDeclaration(node) || ts.isIfStatement(node);
|
|
128
|
-
// }
|
|
129
|
-
//
|
|
130
|
-
// FindMacroUsage(node: ts.Statement): ts.Node {
|
|
131
|
-
// if (this.isBlocky(node)) {
|
|
132
|
-
// return ts.visitNode(node, this.SearchForMacroUseStatement.bind(this));
|
|
133
|
-
// }
|
|
134
|
-
// var MACARONY = false;
|
|
135
|
-
// var context: ts.Expression | undefined = undefined;
|
|
136
|
-
// var call: ts.CallExpression | undefined = undefined;
|
|
137
|
-
// //How to do this:
|
|
138
|
-
// //Recurse through statement to see if it has a macro expression.
|
|
139
|
-
// function SpyMacro(this: MacroTransformer, node: ts.Node): ts.Node {
|
|
140
|
-
// //If there's a new block in here we bail, otherwise we'd put the macro scoping in the wrong scoping level.
|
|
141
|
-
// if (ts.isBlock(node) || ts.isCaseBlock(node) || this.isBlocky(node)) {
|
|
142
|
-
// return ts.visitNode(node, this.SearchForMacroUseStatement.bind(this));
|
|
143
|
-
// }
|
|
144
|
-
//
|
|
145
|
-
// if (
|
|
146
|
-
// ts.isCallExpression(node)
|
|
147
|
-
// && ts.isPropertyAccessExpression(node.expression)
|
|
148
|
-
// && this.RegisteredMacros.has(node.expression.name.text)
|
|
149
|
-
// ) {
|
|
150
|
-
// MACARONY = true;
|
|
151
|
-
// context = node.expression.expression;
|
|
152
|
-
// call = node;
|
|
153
|
-
// //console.log("FOUND MACRO USAGE!", node.expression.name.text);
|
|
154
|
-
// }
|
|
155
|
-
// if (
|
|
156
|
-
// ts.isCallExpression(node) &&
|
|
157
|
-
// ts.isIdentifier(node.expression) &&
|
|
158
|
-
// this.RegisteredMacros.has(node.expression.text)
|
|
159
|
-
// ) {
|
|
160
|
-
// MACARONY = true;
|
|
161
|
-
// call = node;
|
|
162
|
-
// }
|
|
163
|
-
// return ts.visitEachChild(node, SpyMacro.bind(this), this.context);
|
|
164
|
-
// }
|
|
165
|
-
//
|
|
166
|
-
// ts.visitEachChild(node, SpyMacro.bind(this), this.context);
|
|
167
|
-
//
|
|
168
|
-
// if (MACARONY) {
|
|
169
|
-
// return this.InsertMacro(node, context, call!);
|
|
170
|
-
// }
|
|
171
|
-
// else {
|
|
172
|
-
// return node;
|
|
173
|
-
// }
|
|
174
|
-
// }
|
|
175
|
-
//
|
|
176
|
-
// //"context" is the thing before the dot when the macro is called, might be undefined.
|
|
177
|
-
// //"context" is present if you call the macro like so: context.MACRO().
|
|
178
|
-
// //Call expression is the node that represents the MACRO() part of the statement.
|
|
179
|
-
// InsertMacro(statement: ts.Node, context: ts.Expression | undefined, macroCall: ts.CallExpression): ts.Block | ts.Statement {
|
|
180
|
-
// var block = <ts.Statement[]>[];
|
|
181
|
-
// var macro: ts.FunctionExpression | ts.ArrowFunction | undefined;
|
|
182
|
-
// var macroName: string | undefined;
|
|
183
|
-
// if (ts.isIdentifier(macroCall.expression)) {
|
|
184
|
-
// macroName = macroCall.expression.text;
|
|
185
|
-
// }
|
|
186
|
-
// else if (ts.isPropertyAccessExpression(macroCall.expression)) {
|
|
187
|
-
// macroName = macroCall.expression.name.text;
|
|
188
|
-
// }
|
|
189
|
-
// if (macroName) {
|
|
190
|
-
// macro = this.RegisteredMacros.get(macroName);
|
|
191
|
-
// }
|
|
192
|
-
// if (!macroName || !macro) {
|
|
193
|
-
// this.logError(statement, "Unspecified error in macro expansion.");
|
|
194
|
-
// return <any>statement;
|
|
195
|
-
// }
|
|
196
|
-
//
|
|
197
|
-
// //console.log("Putting", macroName, "in to place:", statement.getText());
|
|
198
|
-
//
|
|
199
|
-
// //Map macro parameters to the arguments (replace all instances of the parameter with the argument's expression).
|
|
200
|
-
// //Replacing identifiers with nodes because it can be an unnamed expression (lambda or 3 + 5).
|
|
201
|
-
// var parameters = new Map<string, ts.Node>();
|
|
202
|
-
// var parameterOffset = 0;
|
|
203
|
-
//
|
|
204
|
-
// for (var i = 0; i + parameterOffset < macro.parameters.length; i++) {
|
|
205
|
-
// var parameter = macro.parameters[i + parameterOffset];
|
|
206
|
-
// //Detect and skip "this" parameter
|
|
207
|
-
// if (ts.isParameter(parameter) && parameter.name.getText() == "this") {
|
|
208
|
-
// parameterOffset = 1;
|
|
209
|
-
// //If "this" is the only parameter then don't do the rest of the loop.
|
|
210
|
-
// if (!(i + parameterOffset < macro.parameters.length)) {
|
|
211
|
-
// break;
|
|
212
|
-
// }
|
|
213
|
-
// parameter = macro.parameters[i + parameterOffset];
|
|
214
|
-
// }
|
|
215
|
-
// var argument = macroCall.arguments[i];
|
|
216
|
-
// if (typeof argument === "undefined") {
|
|
217
|
-
// if (typeof parameter.questionToken === "undefined") {
|
|
218
|
-
// this.logError(parameter, `Failure to specify non-optional argument to macro ${macroName}.`);
|
|
219
|
-
// return <any>statement;
|
|
220
|
-
// //throw new Error("Failure to specify non-optional argument to macro.");
|
|
221
|
-
// }
|
|
222
|
-
// else {
|
|
223
|
-
// //Probably use this instead, because it's guaranteed to be unique.
|
|
224
|
-
// //ts.getGeneratedNameForNode
|
|
225
|
-
// var name = parameter.name.getText();
|
|
226
|
-
// //This is "let param;" for optional variables that weren't done.
|
|
227
|
-
// let ver = LET(name);
|
|
228
|
-
// block.push(ver.toAST() as ts.Statement);
|
|
229
|
-
// parameters.set(name, ID(name).toAST());
|
|
230
|
-
// }
|
|
231
|
-
// }
|
|
232
|
-
// else {
|
|
233
|
-
// parameters.set(parameter.name.getText(), argument);
|
|
234
|
-
// }
|
|
235
|
-
// }
|
|
236
|
-
// //Macros can be multiline!
|
|
237
|
-
// //So we need to insert the macro into the appropriate place in the block, and then duplicate expression
|
|
238
|
-
// // wherever return shows up in the macro (or on the next line if it doesn't? or maybe error...).
|
|
239
|
-
//
|
|
240
|
-
// var body = <ts.Block>(macro.body);
|
|
241
|
-
//
|
|
242
|
-
// //Put the macro's result in the calling expression in place of the macro call.
|
|
243
|
-
// var PutResultInExpression = (result: ts.ReturnStatement) => {
|
|
244
|
-
// return function IterateResult(this: MacroTransformer, node: ts.Node): ts.Node {
|
|
245
|
-
//
|
|
246
|
-
// if (
|
|
247
|
-
// ts.isCallExpression(node)
|
|
248
|
-
// && ts.isPropertyAccessExpression(node.expression)
|
|
249
|
-
// && node.expression.name.text == macroName
|
|
250
|
-
// || ts.isCallExpression(node)
|
|
251
|
-
// && ts.isIdentifier(node.expression)
|
|
252
|
-
// && node.expression.text == macroName
|
|
253
|
-
// ) {
|
|
254
|
-
// //replace with stuff after return statement.
|
|
255
|
-
// return ts.visitNode(result.expression, ReplaceStuffInMacro.bind(this))!;
|
|
256
|
-
// }
|
|
257
|
-
// return ts.visitEachChild(node, IterateResult.bind(this), this.context);
|
|
258
|
-
// }.bind(this);
|
|
259
|
-
// }
|
|
260
|
-
// function CopyAsIs(this: MacroTransformer, node: ts.Node): ts.Node {
|
|
261
|
-
// return ts.visitEachChild(node, CopyAsIs.bind(this), this.context);
|
|
262
|
-
// }
|
|
263
|
-
//
|
|
264
|
-
// function ReplaceStuffInMacro(this: MacroTransformer, node: ts.Node): ts.Node {
|
|
265
|
-
// if (ts.isReturnStatement(node)) {
|
|
266
|
-
// return ts.visitEachChild(statement, PutResultInExpression(node), this.context);
|
|
267
|
-
// }
|
|
268
|
-
// if (ts.isPropertyAccessExpression(node) && (node.expression.kind == ts.SyntaxKind.ThisType || node.expression.kind == ts.SyntaxKind.ThisKeyword)) {
|
|
269
|
-
// if (!context) {
|
|
270
|
-
// this.logError(node, "Macro can only be executed as a property accessor (value.MACRO) but here is not, this causes an error. MACRO.bind is not supported use value.MACRO instead.");
|
|
271
|
-
// return node;
|
|
272
|
-
// }
|
|
273
|
-
// //If this is referenced then replace it with the stuff before the . when the macro is called.
|
|
274
|
-
// return ts.factory.createPropertyAccessExpression(context, node.name.text);
|
|
275
|
-
// //return ts.visitEachChild(context, Inplace.bind(this), this.context);
|
|
276
|
-
// }
|
|
277
|
-
// if (ts.isIdentifier(node) && parameters.has(node.text)) {
|
|
278
|
-
// //If a parameter is referenced replace it with the argument provided in macro use.
|
|
279
|
-
// return ts.visitNode(parameters.get(node.text)!, CopyAsIs.bind(this));
|
|
280
|
-
// }
|
|
281
|
-
// return ts.visitEachChild(node, ReplaceStuffInMacro.bind(this), this.context);
|
|
282
|
-
// }
|
|
283
|
-
// //unroll macro and then replace all return statements with expression.
|
|
284
|
-
// for (var expression of body.statements) {
|
|
285
|
-
// block.push(
|
|
286
|
-
// ts.visitNode(expression, ReplaceStuffInMacro.bind(this)) as ts.Statement
|
|
287
|
-
// );
|
|
288
|
-
// }
|
|
289
|
-
// var result = ts.factory.createBlock(block);
|
|
290
|
-
// return result;
|
|
291
|
-
// }
|
|
292
|
-
// }
|
|
293
|
-
//
|
|
294
|
-
// console.log("MACROS ENABLED");
|
|
295
|
-
//
|
|
296
|
-
// //Initiating the transformer here is a hodge-podge solution to resolving transforms supplied in other files.
|
|
297
|
-
// // We probably need to do a proper solution that involves aliasing the macro's name to whatever the import is called, and removing
|
|
298
|
-
// // the import statement if the only thing that's imported is macros. On second thought that last part is really hard so let's not
|
|
299
|
-
// // do that.
|
|
300
|
-
// var transformer = new MacroTransformer();
|
|
301
|
-
// export default function (program: ts.Program, pluginOptions: {}) {
|
|
302
|
-
// return (context: ts.TransformationContext) => {
|
|
303
|
-
// transformer.context = context;
|
|
304
|
-
// return (sourceFile: ts.SourceFile) => {
|
|
305
|
-
// console.log("HERE!");
|
|
306
|
-
// // function visitor(node: ts.Node): ts.Node {
|
|
307
|
-
// // // if (ts.isCallExpression(node)) {
|
|
308
|
-
// // // return ts.createLiteral('call');
|
|
309
|
-
// // // }
|
|
310
|
-
// // return ts.visitEachChild(node, visitor, context);
|
|
311
|
-
// // }
|
|
312
|
-
// return transformer.CrawlExpressionTree(sourceFile);
|
|
313
|
-
// // return ts.visitEachChild(sourceFile, visitor, context);
|
|
314
|
-
// }
|
|
315
|
-
// }
|
|
316
|
-
// }
|
|
317
|
-
//# sourceMappingURL=MacroTransformer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=SuperTransformer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SuperTransformer.d.ts","sourceRoot":"","sources":["SuperTransformer.ts"],"names":[],"mappings":""}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// // transformer1-module
|
|
3
|
-
// import * as ts from "typescript";
|
|
4
|
-
// import {ScriptKind, ScriptTarget} from "typescript";
|
|
5
|
-
// import {ClassDeclaration, setContext} from "../Source/ASTHelper";
|
|
6
|
-
// import {ID, IF, LITERAL, SUPER} from "../Source/ASTBuilder";
|
|
7
|
-
//
|
|
8
|
-
// class SuperTransformer {
|
|
9
|
-
// has_super = false;
|
|
10
|
-
// identifier!: string;
|
|
11
|
-
// context: ts.TransformationContext;
|
|
12
|
-
// result: ts.Statement;
|
|
13
|
-
// iter: (node: ts.Node) => ts.Node;
|
|
14
|
-
// constructor(line: ts.Statement, context: ts.TransformationContext, iter: (node: ts.Node) => ts.Node) {
|
|
15
|
-
// this.iter = iter;
|
|
16
|
-
// this.context = context;
|
|
17
|
-
// //TODO: Check that this is OK.
|
|
18
|
-
// this.result = <ts.Statement>this.find_super(line);
|
|
19
|
-
// if (this.has_super) {
|
|
20
|
-
// const f = ts.factory;
|
|
21
|
-
// ts.createSourceFile("SuperTransformer.ts", `
|
|
22
|
-
// `, ScriptTarget.ES5, true, ScriptKind.TS)
|
|
23
|
-
//
|
|
24
|
-
// this.result = IF(
|
|
25
|
-
// SUPER().DOT(ID(this.identifier)).OP("!==", LITERAL("undefined")).toAST(),
|
|
26
|
-
// this.result
|
|
27
|
-
// );
|
|
28
|
-
// }
|
|
29
|
-
// }
|
|
30
|
-
//
|
|
31
|
-
// find_identifier(node: ts.Node) {
|
|
32
|
-
// if (node.kind == ts.SyntaxKind.Identifier) {
|
|
33
|
-
// if (node.getText() != "_super") {
|
|
34
|
-
// this.identifier = node.getText();
|
|
35
|
-
// }
|
|
36
|
-
// }
|
|
37
|
-
// }
|
|
38
|
-
//
|
|
39
|
-
// //Change the _super call over to super.
|
|
40
|
-
// find_super(node: ts.Node) {
|
|
41
|
-
// var result: ts.Node;
|
|
42
|
-
// if (ts.isPropertyAccessExpression(node)) {
|
|
43
|
-
// var has_super = false;
|
|
44
|
-
// var id: string | undefined;
|
|
45
|
-
// result = ts.visitEachChild(node, (node) => {
|
|
46
|
-
// if (ts.isIdentifier(node)) {
|
|
47
|
-
// if (node.text == "_super") {
|
|
48
|
-
// has_super = true;
|
|
49
|
-
// let result: ts.Node = ts.factory.createIdentifier("super");
|
|
50
|
-
// //ts.setOriginalNode(result, ts.getOriginalNode(node));
|
|
51
|
-
// return result;
|
|
52
|
-
// }
|
|
53
|
-
// else {
|
|
54
|
-
// id = node.text;
|
|
55
|
-
// }
|
|
56
|
-
// }
|
|
57
|
-
// return node;
|
|
58
|
-
// }, this.context);
|
|
59
|
-
// if (has_super && id) {
|
|
60
|
-
// this.has_super = has_super;
|
|
61
|
-
// this.identifier = id;
|
|
62
|
-
// }
|
|
63
|
-
// return result;
|
|
64
|
-
// }
|
|
65
|
-
// if (ts.isBlock(node) || ts.isCaseBlock(node) || ts.isModuleBlock(node)) {
|
|
66
|
-
// return this.iter(node);
|
|
67
|
-
// }
|
|
68
|
-
// result = ts.visitEachChild(node, this.find_super.bind(this), this.context);
|
|
69
|
-
// return result;
|
|
70
|
-
// }
|
|
71
|
-
// }
|
|
72
|
-
//
|
|
73
|
-
// export default function (program: ts.Program, pluginOptions: {}) {
|
|
74
|
-
// // let checker = program.getTypeChecker();
|
|
75
|
-
// return (context: ts.TransformationContext) => {
|
|
76
|
-
// setContext(context);
|
|
77
|
-
// return (sourceFile: ts.SourceFile) => {
|
|
78
|
-
// var parent = <any>{
|
|
79
|
-
// kind: ts.SyntaxKind[sourceFile.kind],
|
|
80
|
-
// flags: []
|
|
81
|
-
// };
|
|
82
|
-
// var map = new Map<ts.Node, any>();
|
|
83
|
-
// map.set(sourceFile, parent);
|
|
84
|
-
//
|
|
85
|
-
// function visitor(node: ts.Node): ts.Node {
|
|
86
|
-
// console.log(node);
|
|
87
|
-
// if (!node.parent) (node as any).parent = sourceFile;
|
|
88
|
-
// // if (ts.isCallExpression(node)) {
|
|
89
|
-
// // return ts.createLiteral('call');
|
|
90
|
-
// // }
|
|
91
|
-
// var description = {
|
|
92
|
-
// kind: ts.SyntaxKind[node.kind],
|
|
93
|
-
// flags: <string[]>[]
|
|
94
|
-
// };
|
|
95
|
-
// parent[(node as any).escapedText || node.getText()] = description;
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
// //console.log(ts.SyntaxKind[node.kind], (node as any).escapedText || node.getText());
|
|
99
|
-
// for (var prop in ts.NodeFlags) {
|
|
100
|
-
// if (typeof prop == "string") {
|
|
101
|
-
// if ((node.flags & (ts.NodeFlags as any)[prop]) != 0) {
|
|
102
|
-
// description.flags.push(prop);
|
|
103
|
-
// }
|
|
104
|
-
// }
|
|
105
|
-
// }
|
|
106
|
-
// //console.log(node.modifiers);
|
|
107
|
-
// //if (node.kind == ts.SyntaxKind.Block) {
|
|
108
|
-
// // console.log(node);
|
|
109
|
-
// //}
|
|
110
|
-
// //console.log(node.decorators)
|
|
111
|
-
// var temp = parent;
|
|
112
|
-
// parent = description;
|
|
113
|
-
// var result: ts.Node;
|
|
114
|
-
// switch (node.kind) {
|
|
115
|
-
// case ts.SyntaxKind.ExpressionStatement: case ts.SyntaxKind.FirstStatement:
|
|
116
|
-
// case ts.SyntaxKind.ReturnStatement:
|
|
117
|
-
// var transformed = new SuperTransformer(<ts.Statement>node, context, visitor);
|
|
118
|
-
// result = transformed.result;
|
|
119
|
-
// ts.visitEachChild(node, visitor, context);
|
|
120
|
-
// break;
|
|
121
|
-
// default:
|
|
122
|
-
// result = ts.visitEachChild(node, visitor, context);
|
|
123
|
-
// break;
|
|
124
|
-
// }
|
|
125
|
-
// parent = temp;
|
|
126
|
-
//
|
|
127
|
-
// if (ts.isClassDeclaration(node)) {
|
|
128
|
-
// ClassDeclaration.eachContextualNode(node, (node) => {
|
|
129
|
-
// // if (ts.isFunctionLike(node)) {
|
|
130
|
-
// // ts.visitEachChild(node);
|
|
131
|
-
// // }
|
|
132
|
-
// // if (ts.)
|
|
133
|
-
// return node;
|
|
134
|
-
// }, context);
|
|
135
|
-
// }
|
|
136
|
-
// else {
|
|
137
|
-
// ts.visitEachChild(node, visitor, context);
|
|
138
|
-
// }
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
// return result;
|
|
142
|
-
// }
|
|
143
|
-
// var result = ts.visitNode(sourceFile, visitor);
|
|
144
|
-
// //console.log(sourceFile.fileName);
|
|
145
|
-
// //console.log(parent);
|
|
146
|
-
// //console.log(JSON.stringify(parent, null, 4));
|
|
147
|
-
//
|
|
148
|
-
// return result;
|
|
149
|
-
// };
|
|
150
|
-
// };
|
|
151
|
-
// }
|
|
152
|
-
// console.log("_SUPER ENABLED");
|
|
153
|
-
//
|
|
154
|
-
// console.log("SHOTO!");
|
|
155
|
-
//# sourceMappingURL=SuperTransformer.js.map
|