@codua/codeoutline-win32-x64 0.2.9 → 0.3.0
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/bin/xnet.exe +0 -0
- package/build-info.json +1 -1
- package/package.json +1 -1
- package/scripts/codeoutline/cpp_types.lua +12 -3
- package/scripts/codeoutline/definition_candidates.lua +13 -7
- package/scripts/codeoutline/external_headers.lua +9 -4
- package/scripts/codeoutline/foreign.lua +23 -3
- package/scripts/codeoutline/lang/cpp.lua +25 -14
- package/scripts/codeoutline/navigation.lua +71 -5
- package/scripts/codeoutline/type_references.lua +3 -2
- package/scripts/codeoutline/update_sequence.lua +1 -1
- package/scripts/codeoutline/version.lua +1 -1
package/bin/xnet.exe
CHANGED
|
Binary file
|
package/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","runtimeBuild":"b9b847244c68283df56e7858fe3daaafd35b756f0ff67cfa379f998133ddf29d","lua":"LuaJIT 2.1.1774896198","sourceCommit":"f7ae0ff2a99fa2402c9c5671e217082348e81ae5","version":"0.2.9","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","target":"win32-x64","sha256":{"scripts/codeoutline/go_modules.lua":"5aafa1c8607edfa12a79ad3c49db677f79e790582cb51d1e796da7783c656c0f","scripts/codeoutline/completion.lua":"39d0de57b50b8e521b2cb41e16c102e618408648cd6a097bae43e36309bb4d14","scripts/codeoutline/search_ranking.lua":"2ea52d55e55f7de757cfb998f77eaa713ca19c5318b8d8470772c914fad9cb10","codeoutline.cmd":"607b60c6d107becdb6793df8f41aaf2cff944baf69f5ece59dba990d0f24c13b","scripts/codeoutline/graph.lua":"80fe8ec1d9aaaf1858a2590337ddba9f2a4209781c4a9b44967a6055ee6b6b9e","scripts/codeoutline/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","scripts/codeoutline/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/codeoutline/shared_events.lua":"46a3f5780d12daed660138aa0cb769d727ceff9156916ca3c703928f036e5255","scripts/codeoutline/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","scripts/codeoutline/main.lua":"3ac12632697d9e7559f5a7f754d0d101b6515fbde93f2c67787359b9e802d1d0","scripts/codeoutline/cpp_bindings.lua":"7b359807322fca1d6769bd34c58ae914404dc1bcf67decad9ec6519fde25432b","scripts/codeoutline/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/js_evidence.lua":"abb87a3b3ccfc1bb4fcaf771ae91aed5636fec1d73cabeebdec8c7af3227e6b5","scripts/codeoutline/mcp.lua":"397476810877b39297ea476c555a3c80353a7122e766ca5adc7af5d81cf8a8b6","scripts/codeoutline/cpp_fragments.lua":"025bc03f9d48eec3d310366d3c58f77871a989a55ba3538a3f0664b3b4c62d7b","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/ts_implementations.lua":"b908020c17b68a2ef5a8b41732ce39e487105e90ade366b9d1f708b75257d06e","scripts/codeoutline/js_resolution.lua":"770326d43d87369ba2ea06300d23bf45a073707aa91d81fff316f010ce1057b2","scripts/codeoutline/navigation.lua":"16f10a108cbb76ff938e556ec4cb5fab2b1a8e0b7c7afc6422962787aff4f908","scripts/codeoutline/cpp_implementations.lua":"c3f59e25512816cf52aad69333f6b3ae882ba8747f6ce74b083f928301316572","scripts/codeoutline/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","README.md":"48292c6c12d40512128f30173b4bbf8dae7a20071c69e577e7372bd067ee8710","scripts/codeoutline/js_workspace.lua":"fe59bfde1d22357432079dfef33f88c63da8e435e13c5ca97d4dc8c3e5638278","scripts/codeoutline/cpp_includes.lua":"f8bd2016ff040b7f8bd8a3f844baa4fbf0fcc850eb3b1c33b106696c4be92a5d","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","scripts/codeoutline/type_references.lua":"e9a42c462e1d7b8b5e975c6862903ef993799bd363e560d2227e272a4ab0a95f","scripts/codeoutline/cpp_macros.lua":"41dbcc249d184c2f36be3c3b009a6c6347f7fafd4197e45ceafd3ad7a06af55c","scripts/codeoutline/type_uses.lua":"5c6e2b3279cc4345b6ab33986b38d3717fd56fe82c1d36c9da495bcb22183695","scripts/codeoutline/cpp_receivers.lua":"6bafebc87579d8514a0d36492dbbe65e9346688f228062c86d87053dacaa37e3","codeoutline":"3d3970e488e077e8acd67d174b506a361d43578b3360c7b29f2ec3f0103ba899","DISTRIBUTION.md":"da4a1048fc9b44670fd6fcef97e7d92ac3f50d3523da1773930c49f7e2c38dc3","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","README.zh-CN.md":"b3a203e2356e0bf1e164cfbc9b112a796f61dd3e451ccc11a63255a5a455c583","scripts/codeoutline/lang/c.lua":"2b0efa1ab8a162cdafa293b1f51ded5c528705cea2e2d6c93647498ba0e250b1","scripts/codeoutline/cpp_types.lua":"7e8f53b9eab7600501c9884076f9026850d30155063b88e56dd366c6d4d2f888","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/update_sequence.lua":"6bf7759e55d008da910886102771e7b2d0fadcfc87dcb4e499bb8e685622d2e3","scripts/xupgate/common.lua":"86267648c0dbbd3a05f90de4d6e1dbee53ba57bf4801783c2ae636224b1f228c","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/lang/cpp.lua":"569bd76a5db69d003fe3df9e999e01da106101de362e30cd092acf3075b81f99","scripts/codeoutline/update_worker.lua":"7e2ec28e4b911d7b90fd97d0a4c0e2f5b295d1a9200c5c7250e47a99139ca550","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/on_demand.lua":"c8ce74ef29f7fb1fc4973a40e22b994c43310308d7f446dfe42428a96f7b8b9d","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/codeoutline/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/ordinary_bindings.lua":"9c0d05619262882b448abe7fb0ad4da652a287cbfbac220d5ec152278b9acced","scripts/xupgate/http_client.lua":"a189506c3d0fcc454f5e001fdeecdd6349a1019ea0970d11ce2fbfdf035166d6","scripts/codeoutline/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/definition_candidates.lua":"449cbcf85f67a82a90bb2461346c3656518417b27ff66440bf7298ca0bf8c964","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/codeoutline/parse.lua":"490e8c4a208c6eaacb0f1db80e7d0b95cc5f54c9c00fcbfd90934e466a598fe9","scripts/codeoutline/documents.lua":"618a8d150341442d0c37f3966ea6a856c78bf91ccaedd507ff563b26c7059c4f","scripts/codeoutline/version.lua":"143a2906936177e0a7b3cef3de192ec6ca4141650be50540ae005efd79b38fbb","scripts/codeoutline/type_hierarchy.lua":"ba6c62d162e10a5b251492568a2bbab8cef46cf70a96deacb3e0893ff0e44851","scripts/codeoutline/dispatch_aliases.lua":"0383f3de71ed1774c73c08fdc57e408afbd6b146b9beff96a4c2cf6aefda7000","scripts/codeoutline/parse_pool.lua":"4dd16132fa0ac96bd1abda33d1be237d8139095b31addfb81094df8c5e69b92f","scripts/codeoutline/static_dispatch.lua":"0c34302427c36cdb15249c047ae238722752040ac3d5e074fd433f278d75062e","scripts/codeoutline/service.lua":"17703f945472d905a9aa1a4071ecf362ec18872d7c61c933ec2ecdab5ed41f41","scripts/codeoutline/http.lua":"3d957628ecc9592d57cc68a61e5d4229a71da501eb8fb3aa0bbb5e1cd772adf0","scripts/xupgate/client.lua":"967c29c1eeebd8596458025ab3237816a91591cca64236ea0e7ba1762814e6ba","scripts/codeoutline/parse_worker.lua":"c8099bca90f0ce5069257d72065f2c61089526bedfe89e341f610e5c3f5320c0","scripts/codeoutline/rules.lua":"b01402863062435a6d31a4a5a90208319876fdb444a76c75fd0c45ea8ee6fee5","scripts/codeoutline/automatic_events.lua":"d23e61985bc4ddbfd1d4b6b9c46e9ed815b68476415866390cc59b2dd048c912","scripts/codeoutline/index_worker.lua":"7a2746e97bbb13f0fdf1731bc2aeecb3de1113266b6aadef91e61da312a4d618","scripts/codeoutline/query_report.lua":"49c92aa2a1b3410e02dba8fd7ba2a11c8b7d02979895faf766501fd5039a57d1","scripts/codeoutline/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/explore.lua":"ef25b9085b73a7db34e2d09f6a3669d3a1ecb9ca51e63ed84aa1ec8162d7af23","scripts/codeoutline/implementations.lua":"cc5ce71c13fdbfd12c03257bd8ca799f981147e5594a5e1f0ed90721e9a09e2b","scripts/codeoutline/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/codeoutline/csharp_bindings.lua":"3a237f9a04c4cc2277ebfcbe902bdefecff125ef4a7c8d2d55e8284e916db0ab","scripts/codeoutline/python_bindings.lua":"d54cb346d1814af0e8b85b98d6f92faf8a6c2eadf02127764b2554f74c03c940","scripts/codeoutline/affected.lua":"4fafc905d93c6006519f230bfb874c0477a68c32357a75ae36c8a80c2e48f172","scripts/codeoutline/lang/lua.lua":"f50a169549475d5d71f8af920feeb82797e8f24ccfe0c3f416abc5a32e942713","scripts/codeoutline/lua_callback_loops.lua":"b499abed79b482c577684e537ad9583914a94863fc886302a2baa2213e89481a","scripts/codeoutline/callers.lua":"a822bc0dcad44b5fdf263d5a988a68259a1db6159eaf4c2152236e5670c27b4f","scripts/codeoutline/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/codeoutline/go_methods.lua":"b59746ee5e28170f790f44226bbc1b732d513b72278b994c96d65966c01126db","scripts/codeoutline/index.lua":"eb83b16432cf70bad5491a30ea4aa8adbaefdd84247cc1aa569c6e4e0ed3dd6a","scripts/codeoutline/lang/python.lua":"1ae8f1658e25220ec4d952c17ed817bfc92d0c45d4585d3dd4716d5585b60cc6","bin/xnet.exe":"012f715f6085a38d4896f498cb079befa0b746361bd7dbe98c8495d4a037540b","scripts/codeoutline/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/lang/js.lua":"6bb90ca153fd43ac8ed0777fe6f62a9ab36c740dc19caa8654d7541e0c14b1cf","scripts/codeoutline/function_values.lua":"63dec69e905545217afdcfd4a073b92e0956b39fd34b8d2808db1043256eb8e1","scripts/codeoutline/foreign_lua.lua":"03640aa84ba2ba628a5b0d8a7f66285fe308107fdd196862164d29d7e4129660","scripts/codeoutline/lang/rust.lua":"c7c3ae20ef9b4e1ce1466c6f36c3507f760995e58bede2c9b06f0f68e33d7308","scripts/codeoutline/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/cli.lua":"f7ac4addd32ced58069954cb81edd4836c6043bb5d143683b80bd7b11554c733","scripts/codeoutline/lang/csharp.lua":"5adffb1d563323d6aeae5339b1f3b8d33b07bc99a66e24c710aaa6b5983825f6","scripts/codeoutline/foreign.lua":"a3eab94b652b94dfe2a11c2c33f0744201decdbb84fcbb6d2ef244f2826e9b6e","scripts/codeoutline/lang/go.lua":"3a62d4dc451b0d2f7f2aefd5e77d11449a5d725f59379728eba8dda0aacc13f3","scripts/codeoutline/language_detect.lua":"87fb472a0a4c29ce6e838354480f59646af33c6d21771e9d3650a4a3d8cf9e0f","scripts/codeoutline/lang/java.lua":"0ea34298770cb3431f4bc3521c4d2ecf363d55e768d6cd30b3f11ad05d7e8f0d","scripts/codeoutline/command.lua":"17a39679944eac004f546b953ec0fd4890e769817d3a6eee50d8c212bb2d6b7f","scripts/codeoutline/external_headers.lua":"0a24c81611847c3370b80bc027c2f86e5c670a8a5d8d0dda51893e89ffe84592","scripts/codeoutline/lang/kotlin.lua":"cefaad1c412cb42ea6b2027ad9f81ad38d8d821f05c1cfde7f89c600d745a708","scripts/codeoutline/rust_packages.lua":"a0cca64e8f3fe37364655158c0f7f5e40ada2a1d1864e3e9f4b1e9d91b88eeef","scripts/codeoutline/lsp.lua":"24fed84201eaa3c5dc45adfef8f515398ca3ec0534d9740251f1da8ce8177b14","scripts/codeoutline/lua_bindings.lua":"4d3dedd9ad664bbaa516e99119bc8bcc557f918995f83679f0408b2e4b42df9c","scripts/codeoutline/common.lua":"7647faecf2d37b7836d9fc6b1f75146d29f1d63ba9182685c19c1f19e33373d9","scripts/codeoutline/indirect.lua":"3bd5086427d0adb22b53f89a24031bfbfe3a18b0f2b4d41b4e1e03279695b7f7","scripts/codeoutline/rust_resolution.lua":"90be2ef14a7c1de357baae026d819f0053cae8eb475947d779ba519461e3c265"},"updateSequence":18}
|
|
1
|
+
{"releaseReady":true,"note":"Release build from a clean checkout","updateSequence":19,"version":"0.3.0","runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","runtimeBuild":"b9b847244c68283df56e7858fe3daaafd35b756f0ff67cfa379f998133ddf29d","lua":"LuaJIT 2.1.1774896198","target":"win32-x64","sourceCommit":"54b56ebbc50169bb0813bb5c4e17957e0b3ab9ad","sha256":{"scripts/codeoutline/documents.lua":"618a8d150341442d0c37f3966ea6a856c78bf91ccaedd507ff563b26c7059c4f","scripts/codeoutline/lang/java.lua":"0ea34298770cb3431f4bc3521c4d2ecf363d55e768d6cd30b3f11ad05d7e8f0d","scripts/codeoutline/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/codeoutline/explore.lua":"ef25b9085b73a7db34e2d09f6a3669d3a1ecb9ca51e63ed84aa1ec8162d7af23","scripts/codeoutline/lang/js.lua":"6bb90ca153fd43ac8ed0777fe6f62a9ab36c740dc19caa8654d7541e0c14b1cf","scripts/codeoutline/external_headers.lua":"5be461a3bc462c6fb90caac65d233e728ae891fede65967d4b1569ac6fe29733","scripts/codeoutline/callers.lua":"a822bc0dcad44b5fdf263d5a988a68259a1db6159eaf4c2152236e5670c27b4f","scripts/codeoutline/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/lang/kotlin.lua":"cefaad1c412cb42ea6b2027ad9f81ad38d8d821f05c1cfde7f89c600d745a708","bin/xnet.exe":"cf8fcc6da46c5e53647b520f95f527013b9524584f2a0d4610022bab6aac5189","scripts/codeoutline/foreign.lua":"fef5c377dc89bafa45f8d74976488213b270465c62095db53b0d7582a4b704f8","scripts/codeoutline/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/lang/lua.lua":"f50a169549475d5d71f8af920feeb82797e8f24ccfe0c3f416abc5a32e942713","scripts/codeoutline/foreign_lua.lua":"03640aa84ba2ba628a5b0d8a7f66285fe308107fdd196862164d29d7e4129660","scripts/codeoutline/rust_packages.lua":"a0cca64e8f3fe37364655158c0f7f5e40ada2a1d1864e3e9f4b1e9d91b88eeef","scripts/codeoutline/cli.lua":"f7ac4addd32ced58069954cb81edd4836c6043bb5d143683b80bd7b11554c733","scripts/codeoutline/lang/python.lua":"1ae8f1658e25220ec4d952c17ed817bfc92d0c45d4585d3dd4716d5585b60cc6","scripts/codeoutline/function_values.lua":"63dec69e905545217afdcfd4a073b92e0956b39fd34b8d2808db1043256eb8e1","scripts/codeoutline/command.lua":"17a39679944eac004f546b953ec0fd4890e769817d3a6eee50d8c212bb2d6b7f","scripts/codeoutline/lang/rust.lua":"c7c3ae20ef9b4e1ce1466c6f36c3507f760995e58bede2c9b06f0f68e33d7308","scripts/codeoutline/search_ranking.lua":"2ea52d55e55f7de757cfb998f77eaa713ca19c5318b8d8470772c914fad9cb10","scripts/codeoutline/go_methods.lua":"b59746ee5e28170f790f44226bbc1b732d513b72278b994c96d65966c01126db","scripts/codeoutline/common.lua":"7647faecf2d37b7836d9fc6b1f75146d29f1d63ba9182685c19c1f19e33373d9","scripts/codeoutline/language_detect.lua":"87fb472a0a4c29ce6e838354480f59646af33c6d21771e9d3650a4a3d8cf9e0f","scripts/codeoutline/go_modules.lua":"5aafa1c8607edfa12a79ad3c49db677f79e790582cb51d1e796da7783c656c0f","scripts/codeoutline/completion.lua":"39d0de57b50b8e521b2cb41e16c102e618408648cd6a097bae43e36309bb4d14","scripts/codeoutline/shared_events.lua":"46a3f5780d12daed660138aa0cb769d727ceff9156916ca3c703928f036e5255","scripts/codeoutline/lsp.lua":"24fed84201eaa3c5dc45adfef8f515398ca3ec0534d9740251f1da8ce8177b14","scripts/codeoutline/graph.lua":"80fe8ec1d9aaaf1858a2590337ddba9f2a4209781c4a9b44967a6055ee6b6b9e","codeoutline":"3d3970e488e077e8acd67d174b506a361d43578b3360c7b29f2ec3f0103ba899","scripts/codeoutline/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","DISTRIBUTION.md":"da4a1048fc9b44670fd6fcef97e7d92ac3f50d3523da1773930c49f7e2c38dc3","scripts/codeoutline/lua_bindings.lua":"4d3dedd9ad664bbaa516e99119bc8bcc557f918995f83679f0408b2e4b42df9c","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","scripts/codeoutline/http.lua":"3d957628ecc9592d57cc68a61e5d4229a71da501eb8fb3aa0bbb5e1cd772adf0","scripts/codeoutline/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","codeoutline.cmd":"607b60c6d107becdb6793df8f41aaf2cff944baf69f5ece59dba990d0f24c13b","README.zh-CN.md":"b3a203e2356e0bf1e164cfbc9b112a796f61dd3e451ccc11a63255a5a455c583","README.md":"48292c6c12d40512128f30173b4bbf8dae7a20071c69e577e7372bd067ee8710","scripts/codeoutline/implementations.lua":"cc5ce71c13fdbfd12c03257bd8ca799f981147e5594a5e1f0ed90721e9a09e2b","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/cpp_bindings.lua":"7b359807322fca1d6769bd34c58ae914404dc1bcf67decad9ec6519fde25432b","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","scripts/codeoutline/index.lua":"eb83b16432cf70bad5491a30ea4aa8adbaefdd84247cc1aa569c6e4e0ed3dd6a","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/cpp_fragments.lua":"025bc03f9d48eec3d310366d3c58f77871a989a55ba3538a3f0664b3b4c62d7b","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","scripts/codeoutline/type_hierarchy.lua":"ba6c62d162e10a5b251492568a2bbab8cef46cf70a96deacb3e0893ff0e44851","scripts/codeoutline/affected.lua":"4fafc905d93c6006519f230bfb874c0477a68c32357a75ae36c8a80c2e48f172","scripts/codeoutline/index_worker.lua":"7a2746e97bbb13f0fdf1731bc2aeecb3de1113266b6aadef91e61da312a4d618","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","scripts/codeoutline/cpp_implementations.lua":"c3f59e25512816cf52aad69333f6b3ae882ba8747f6ce74b083f928301316572","scripts/codeoutline/type_references.lua":"f737373c7c14cd4c9df7a434991ccd3cb27f32bc8d4b86d93e3b5ffb0248c684","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","scripts/codeoutline/indirect.lua":"3bd5086427d0adb22b53f89a24031bfbfe3a18b0f2b4d41b4e1e03279695b7f7","scripts/codeoutline/automatic_events.lua":"d23e61985bc4ddbfd1d4b6b9c46e9ed815b68476415866390cc59b2dd048c912","scripts/codeoutline/cpp_includes.lua":"f8bd2016ff040b7f8bd8a3f844baa4fbf0fcc850eb3b1c33b106696c4be92a5d","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/js_evidence.lua":"abb87a3b3ccfc1bb4fcaf771ae91aed5636fec1d73cabeebdec8c7af3227e6b5","scripts/codeoutline/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/codeoutline/cpp_macros.lua":"41dbcc249d184c2f36be3c3b009a6c6347f7fafd4197e45ceafd3ad7a06af55c","scripts/codeoutline/mcp.lua":"397476810877b39297ea476c555a3c80353a7122e766ca5adc7af5d81cf8a8b6","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/xupgate/http_client.lua":"a189506c3d0fcc454f5e001fdeecdd6349a1019ea0970d11ce2fbfdf035166d6","scripts/codeoutline/js_resolution.lua":"770326d43d87369ba2ea06300d23bf45a073707aa91d81fff316f010ce1057b2","scripts/xupgate/common.lua":"86267648c0dbbd3a05f90de4d6e1dbee53ba57bf4801783c2ae636224b1f228c","scripts/codeoutline/cpp_receivers.lua":"6bafebc87579d8514a0d36492dbbe65e9346688f228062c86d87053dacaa37e3","scripts/codeoutline/navigation.lua":"b49975434b08f5846a97e04e91229d3ebfdbb577c28581668dcb8cf3d01afd4d","scripts/codeoutline/lua_callback_loops.lua":"b499abed79b482c577684e537ad9583914a94863fc886302a2baa2213e89481a","scripts/codeoutline/update_worker.lua":"7e2ec28e4b911d7b90fd97d0a4c0e2f5b295d1a9200c5c7250e47a99139ca550","scripts/codeoutline/js_workspace.lua":"fe59bfde1d22357432079dfef33f88c63da8e435e13c5ca97d4dc8c3e5638278","scripts/codeoutline/ts_implementations.lua":"b908020c17b68a2ef5a8b41732ce39e487105e90ade366b9d1f708b75257d06e","scripts/codeoutline/on_demand.lua":"c8ce74ef29f7fb1fc4973a40e22b994c43310308d7f446dfe42428a96f7b8b9d","scripts/codeoutline/update_sequence.lua":"923da4a2e19875b6168448a3b52cec1a199457ef14da7764513ee28e155e5a3a","scripts/codeoutline/version.lua":"13952ea2ff7393f7dcf1d2ef3dcc9735c2f8f14fb1d800b9007fccba24f694c7","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/type_uses.lua":"5c6e2b3279cc4345b6ab33986b38d3717fd56fe82c1d36c9da495bcb22183695","scripts/codeoutline/ordinary_bindings.lua":"9c0d05619262882b448abe7fb0ad4da652a287cbfbac220d5ec152278b9acced","scripts/codeoutline/csharp_bindings.lua":"3a237f9a04c4cc2277ebfcbe902bdefecff125ef4a7c8d2d55e8284e916db0ab","scripts/codeoutline/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/static_dispatch.lua":"0c34302427c36cdb15249c047ae238722752040ac3d5e074fd433f278d75062e","scripts/codeoutline/service.lua":"17703f945472d905a9aa1a4071ecf362ec18872d7c61c933ec2ecdab5ed41f41","scripts/codeoutline/parse.lua":"490e8c4a208c6eaacb0f1db80e7d0b95cc5f54c9c00fcbfd90934e466a598fe9","scripts/codeoutline/rust_resolution.lua":"90be2ef14a7c1de357baae026d819f0053cae8eb475947d779ba519461e3c265","scripts/codeoutline/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/rules.lua":"b01402863062435a6d31a4a5a90208319876fdb444a76c75fd0c45ea8ee6fee5","scripts/codeoutline/query_report.lua":"49c92aa2a1b3410e02dba8fd7ba2a11c8b7d02979895faf766501fd5039a57d1","scripts/codeoutline/parse_pool.lua":"4dd16132fa0ac96bd1abda33d1be237d8139095b31addfb81094df8c5e69b92f","scripts/codeoutline/python_bindings.lua":"d54cb346d1814af0e8b85b98d6f92faf8a6c2eadf02127764b2554f74c03c940","scripts/codeoutline/lang/c.lua":"2b0efa1ab8a162cdafa293b1f51ded5c528705cea2e2d6c93647498ba0e250b1","scripts/codeoutline/definition_candidates.lua":"c3efccb79ae4ce55229e048004f037798db3ca255a1e2efc2ce904468b31372d","scripts/xupgate/client.lua":"967c29c1eeebd8596458025ab3237816a91591cca64236ea0e7ba1762814e6ba","scripts/codeoutline/parse_worker.lua":"c8099bca90f0ce5069257d72065f2c61089526bedfe89e341f610e5c3f5320c0","scripts/codeoutline/dispatch_aliases.lua":"0383f3de71ed1774c73c08fdc57e408afbd6b146b9beff96a4c2cf6aefda7000","scripts/codeoutline/cpp_types.lua":"4138c5e2884164b4be35fba1de35e396c4481124ef2f22b4093ba3611ffb012d","scripts/codeoutline/lang/csharp.lua":"5adffb1d563323d6aeae5339b1f3b8d33b07bc99a66e24c710aaa6b5983825f6","scripts/codeoutline/lang/cpp.lua":"a159d1d306cf30d39258ea05452fbdf36759d42498ba16a852b03a0f3005cc60","scripts/codeoutline/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/codeoutline/main.lua":"3ac12632697d9e7559f5a7f754d0d101b6515fbde93f2c67787359b9e802d1d0","scripts/codeoutline/lang/go.lua":"3a62d4dc451b0d2f7f2aefd5e77d11449a5d725f59379728eba8dda0aacc13f3"},"sourceDirty":false}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"repository":{"url":"git+https://github.com/1dao/codeoutline.git"
|
|
1
|
+
{"publishConfig":{"access":"public"},"description":"CodeOutline native runtime and Lua implementation for win32-x64","cpu":["x64","arm64"],"repository":{"type":"git","url":"git+https://github.com/1dao/codeoutline.git"},"version":"0.3.0","files":["bin/","lib/","keys/","scripts/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"],"os":["win32"],"license":"BSD-2-Clause","name":"@codua/codeoutline-win32-x64"}
|
|
@@ -182,7 +182,7 @@ function M.resolve(G, f, written, opts)
|
|
|
182
182
|
end
|
|
183
183
|
local function named(file, qualified, at, depth)
|
|
184
184
|
local tail = qualified:match('([^:]+)$')
|
|
185
|
-
local found, ids = false, {}
|
|
185
|
+
local found, ids, alias_declarations = false, {}, {}
|
|
186
186
|
for index, id in ipairs(G.by_name[tail] or {}) do
|
|
187
187
|
if index % 128 == 0 then control.check() end
|
|
188
188
|
local n, g = G.nodes[id], G.node_file[id]
|
|
@@ -192,10 +192,18 @@ function M.resolve(G, f, written, opts)
|
|
|
192
192
|
for _, alias in ipairs(aliases(g)) do
|
|
193
193
|
if not alias.kind and not alias.local_alias and (alias.scope ~= '' and alias.scope .. '::' or '') .. alias.name == qualified then
|
|
194
194
|
matched = true
|
|
195
|
-
if g ~= file or not at or alias.at <= at then
|
|
195
|
+
if g ~= file or not at or alias.at <= at then
|
|
196
|
+
found = true; add(ids, follow(alias, g, depth))
|
|
197
|
+
if opts.navigation_alias and depth == 0 then add(alias_declarations, { id }) end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
if not matched then
|
|
202
|
+
found = true -- unsupported alias is a barrier
|
|
203
|
+
if opts.navigation_alias and depth == 0 and (g ~= file or not at) then
|
|
204
|
+
add(alias_declarations, { id })
|
|
196
205
|
end
|
|
197
206
|
end
|
|
198
|
-
if not matched then found = true end -- unsupported alias is a barrier
|
|
199
207
|
else
|
|
200
208
|
found = true
|
|
201
209
|
add(ids, { id })
|
|
@@ -240,6 +248,7 @@ function M.resolve(G, f, written, opts)
|
|
|
240
248
|
end
|
|
241
249
|
end
|
|
242
250
|
end
|
|
251
|
+
if #ids == 0 and opts.navigation_alias then add(ids, alias_declarations) end
|
|
243
252
|
return ids, found
|
|
244
253
|
end
|
|
245
254
|
local function qualified(file, name, at, depth)
|
|
@@ -37,8 +37,8 @@ function M.find(G, f, site, ctx)
|
|
|
37
37
|
-- These languages have package/project visibility that a name-only search
|
|
38
38
|
-- cannot establish. Their existing resolvers retain authority.
|
|
39
39
|
if language == 'go' or language == 'rust' or language == 'csharp' then return {}, info end
|
|
40
|
-
|
|
41
|
-
and require('codeoutline.cpp_includes').policy(G, f, ctx).configured
|
|
40
|
+
local configured = (language == 'c' or language == 'cpp')
|
|
41
|
+
and require('codeoutline.cpp_includes').policy(G, f, ctx).configured
|
|
42
42
|
local qualified
|
|
43
43
|
if site.evidence and site.evidence ~= '' then qualified = site.evidence:match('^cpp:name:(.-)%z') end
|
|
44
44
|
qualified = qualified and normalized(qualified)
|
|
@@ -47,7 +47,7 @@ function M.find(G, f, site, ctx)
|
|
|
47
47
|
if site.recv == 'self' or site.recv == 'this' or site.recv == 'cls' then return {}, info end
|
|
48
48
|
qualified = qualified or normalized(site.recv .. '.' .. site.name)
|
|
49
49
|
elseif site.kind == 'member_call' or site.kind == 'member_symbol' then return {}, info end
|
|
50
|
-
local list, hits = G.by_name[site.name] or {}, {}
|
|
50
|
+
local list, hits, macro_hits = G.by_name[site.name] or {}, {}, {}
|
|
51
51
|
local source_dir = G.files[f].path:match('^(.*)/') or ''
|
|
52
52
|
for i = 1, math.min(#list, M.MAX_SCAN) do
|
|
53
53
|
if i % 16 == 0 then control.check() end
|
|
@@ -60,10 +60,12 @@ function M.find(G, f, site, ctx)
|
|
|
60
60
|
local kind = site.kind == 'new' and types[node.kind]
|
|
61
61
|
or site.kind ~= 'new' and (callable[node.kind]
|
|
62
62
|
or (site.kind == 'symbol' or site.kind == 'member_symbol') and (types[node.kind] or values[node.kind]))
|
|
63
|
-
--
|
|
64
|
-
--
|
|
63
|
+
-- Unresolved macro visibility can still offer unconfirmed definition
|
|
64
|
+
-- tags for navigation, including when include paths are configured.
|
|
65
|
+
-- An explicit undef remains a barrier.
|
|
65
66
|
if node.kind == 'macro' then
|
|
66
|
-
kind = site.kind == 'call' and site.macro_state == 'unseen'
|
|
67
|
+
kind = site.kind == 'call' and (site.macro_state == 'unseen'
|
|
68
|
+
or site.macro_state == 'uncertain' or site.macro_state == 'limited')
|
|
67
69
|
and (g ~= f or site.line and node.line < site.line)
|
|
68
70
|
end
|
|
69
71
|
local name_matches = (node.name == site.name or published) and (normalized(node.qualified) == site.name or published)
|
|
@@ -83,9 +85,13 @@ function M.find(G, f, site, ctx)
|
|
|
83
85
|
and (qualified or node.kind ~= 'method' and node.kind ~= 'constructor') then
|
|
84
86
|
local score = g == f and 100 or (rec.path:match('^(.*)/') or '') == source_dir and 20 or 0
|
|
85
87
|
if node.kind ~= 'prototype' and not node.decl then score = score + 1 end
|
|
86
|
-
|
|
88
|
+
local bucket = node.kind == 'macro' and macro_hits or hits
|
|
89
|
+
bucket[#bucket + 1] = { id = id, score = score }
|
|
87
90
|
end
|
|
88
91
|
end
|
|
92
|
+
-- Ordinary definitions are more useful than unrelated proxy macros.
|
|
93
|
+
if #hits == 0 then hits = macro_hits
|
|
94
|
+
elseif configured then hits = {} end
|
|
89
95
|
info.truncated = info.truncated or #list > M.MAX_SCAN
|
|
90
96
|
-- Prefer implementations over repeated API declarations. A declaration is
|
|
91
97
|
-- still useful when the project has no matching implementation at all.
|
|
@@ -53,7 +53,7 @@ local function read(file, info)
|
|
|
53
53
|
end
|
|
54
54
|
return entry
|
|
55
55
|
end
|
|
56
|
-
local function declarations(entry, name)
|
|
56
|
+
local function declarations(entry, name, type_site)
|
|
57
57
|
local escaped = name:gsub('([^%w])', '%%%1')
|
|
58
58
|
if not entry.source:find('%f[%w_$]' .. escaped .. '%f[^%w_$]') then return {} end
|
|
59
59
|
if not entry.nodes then
|
|
@@ -70,7 +70,8 @@ local function declarations(entry, name)
|
|
|
70
70
|
local result = {}
|
|
71
71
|
for _, node in ipairs(entry.nodes) do
|
|
72
72
|
if node.name == name and node.qualified == name and not node.parent and node.name_start
|
|
73
|
-
and (
|
|
73
|
+
and (type_site and require('codeoutline.type_references').kinds[node.kind]
|
|
74
|
+
or not type_site and (node.kind == 'prototype' or node.kind == 'function')) then
|
|
74
75
|
result[#result + 1] = { node = node, file = entry.file, source = entry.source,
|
|
75
76
|
declaration = node.kind == 'prototype' or node.decl == true }
|
|
76
77
|
end
|
|
@@ -80,7 +81,11 @@ end
|
|
|
80
81
|
|
|
81
82
|
function M.find(G, f, site, ctx, system_directories)
|
|
82
83
|
local info = { files = 0, bytes = 0, truncated = false }
|
|
83
|
-
|
|
84
|
+
local type_site = site and site.kind == 'type' and site.reason == 'unresolved type'
|
|
85
|
+
and not site.recv and site.evidence and site.evidence.written == site.name
|
|
86
|
+
and not site.evidence.value_shadowed
|
|
87
|
+
if not site or site.recv or not type_site and (site.kind ~= 'call'
|
|
88
|
+
or not require('codeoutline.definition_candidates').allowed(site)) then return {}, info end
|
|
84
89
|
local includes = require('codeoutline.cpp_includes')
|
|
85
90
|
local headers, queued, projects, visited, project_queued = {}, {}, { f }, {}, { [f] = true }
|
|
86
91
|
local defaults, started = nil, xtimer.now_ms()
|
|
@@ -158,7 +163,7 @@ function M.find(G, f, site, ctx, system_directories)
|
|
|
158
163
|
local target = headers[hi]; hi = hi + 1
|
|
159
164
|
local entry = read(target.file, info)
|
|
160
165
|
if entry then
|
|
161
|
-
local found = declarations(entry, site.name)
|
|
166
|
+
local found = declarations(entry, site.name, type_site)
|
|
162
167
|
for _, hit in ipairs(found) do
|
|
163
168
|
if hit.declaration then return { hit }, info end
|
|
164
169
|
if #best < 8 then best[#best + 1] = hit end
|
|
@@ -62,7 +62,9 @@ end
|
|
|
62
62
|
|
|
63
63
|
function M.exports(rec, language, module)
|
|
64
64
|
local exports = records[rec] or rec.foreign_exports
|
|
65
|
-
|
|
65
|
+
local modules = exports and exports[language]
|
|
66
|
+
return modules and (modules[module] or language == 'lua' and type(module) == 'string'
|
|
67
|
+
and modules[module:gsub('%.', '_')])
|
|
66
68
|
end
|
|
67
69
|
|
|
68
70
|
function M.collect(rec, T)
|
|
@@ -71,9 +73,11 @@ end
|
|
|
71
73
|
|
|
72
74
|
function M.modules(G, language, name, ctx)
|
|
73
75
|
ctx = ctx or {}
|
|
76
|
+
if not name then return {} end
|
|
77
|
+
local loader = language == 'lua' and name:gsub('%.', '_') or name
|
|
74
78
|
ctx.foreign = ctx.foreign or {}
|
|
75
79
|
ctx.foreign_loaded = ctx.foreign_loaded or {}
|
|
76
|
-
for _, f in ipairs(candidates(G, ctx)[
|
|
80
|
+
for _, f in ipairs(candidates(G, ctx)[loader] or {}) do
|
|
77
81
|
if not ctx.foreign_loaded[f] then
|
|
78
82
|
local exports = load(G, f)
|
|
79
83
|
-- Failed reads can be skipped within this query, but are never
|
|
@@ -89,12 +93,28 @@ function M.modules(G, language, name, ctx)
|
|
|
89
93
|
end
|
|
90
94
|
end
|
|
91
95
|
end
|
|
92
|
-
local
|
|
96
|
+
local modules = ctx.foreign[language] or {}
|
|
97
|
+
local files = modules[name] or modules[loader] or {}
|
|
93
98
|
-- A long query may have evicted a previously used record.
|
|
94
99
|
for _, f in ipairs(files) do load(G, f) end
|
|
95
100
|
return files
|
|
96
101
|
end
|
|
97
102
|
|
|
103
|
+
-- Lua's C loader replaces dots in a module name when naming the entry point.
|
|
104
|
+
-- The indexed entry alone is sufficient for navigating the require string;
|
|
105
|
+
-- member bindings still require the separately verified registration table.
|
|
106
|
+
function M.lua_entrypoints(G, name)
|
|
107
|
+
local result = {}
|
|
108
|
+
local symbol = 'luaopen_' .. name:gsub('%.', '_')
|
|
109
|
+
for _, id in ipairs(G.by_name[symbol] or {}) do
|
|
110
|
+
local node, f = G.nodes[id], G.node_file[id]
|
|
111
|
+
if node.kind == 'function' and not node.static and (G.files[f].language == 'c' or G.files[f].language == 'cpp') then
|
|
112
|
+
result[#result + 1] = id
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
return result
|
|
116
|
+
end
|
|
117
|
+
|
|
98
118
|
-- Parameter labels are structured data, never reparsed as host-language code.
|
|
99
119
|
function M.signature(node, language, name)
|
|
100
120
|
local signatures = contracts[node] or node.foreign_signatures
|
|
@@ -225,24 +225,35 @@ local function cpp_decl(T, r, i, j, parent)
|
|
|
225
225
|
if is(T, y, '=') and not eq and d == 0 and not kw(T, y - 1, 'operator') then eq = y end
|
|
226
226
|
if is(T, y, '(') and T.m[y] then
|
|
227
227
|
if not eq and d == 0 then
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
-- A function-pointer declarator is a field/variable, not a
|
|
229
|
+
-- function prototype: void (*callback)(int).
|
|
230
|
+
local close = T.m[y]
|
|
231
|
+
if is(T, y + 1, '*') and T.k[y + 2] == 'id' and close == y + 3
|
|
232
|
+
and is(T, close + 1, '(') and T.m[close + 1] then
|
|
233
|
+
names[#names + 1] = y + 2
|
|
234
|
+
y = T.m[close + 1] + 1
|
|
235
|
+
else
|
|
236
|
+
local info = name_before_paren(T, y, i)
|
|
237
|
+
if info and info.first > i - 1 and not ATTR[info.name] then
|
|
238
|
+
local ctor = parent and r.nodes[parent].name == info.name
|
|
239
|
+
if info.first == i and #info.quals == 0 and not info.name:find('^[~o]') and not ctor then
|
|
240
|
+
common.add_calls(r, T, i, j) -- MACRO(args);
|
|
241
|
+
return
|
|
242
|
+
end
|
|
243
|
+
common.add_node(r, T, {
|
|
244
|
+
kind = 'prototype', name = info.name, ni = info.ni, nj = info.nj, parent = parent,
|
|
245
|
+
ti = i, tj = j, sig = common.sig(T, i, T.m[y]),
|
|
246
|
+
quals = #info.quals > 0 and info.quals or nil,
|
|
247
|
+
static = first == 'static' or nil,
|
|
248
|
+
})
|
|
249
|
+
common.add_calls(r, T, T.m[y] + 1, j) -- default member initializers etc.
|
|
233
250
|
return
|
|
234
251
|
end
|
|
235
|
-
|
|
236
|
-
kind = 'prototype', name = info.name, ni = info.ni, nj = info.nj, parent = parent,
|
|
237
|
-
ti = i, tj = j, sig = common.sig(T, i, T.m[y]),
|
|
238
|
-
quals = #info.quals > 0 and info.quals or nil,
|
|
239
|
-
static = first == 'static' or nil,
|
|
240
|
-
})
|
|
241
|
-
common.add_calls(r, T, T.m[y] + 1, j) -- default member initializers etc.
|
|
242
|
-
return
|
|
252
|
+
y = T.m[y] + 1
|
|
243
253
|
end
|
|
254
|
+
else
|
|
255
|
+
y = T.m[y] + 1
|
|
244
256
|
end
|
|
245
|
-
y = T.m[y] + 1
|
|
246
257
|
elseif (is(T, y, '[') or is(T, y, '{')) and T.m[y] then
|
|
247
258
|
if T.k[y - 1] == 'id' and is(T, y, '{') and not eq and d == 0 then names[#names + 1] = y - 1 end
|
|
248
259
|
y = T.m[y] + 1
|
|
@@ -189,11 +189,12 @@ local function recursive(node, recv)
|
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
-- Targets of one occurrence of name in file f, enclosed by node index from.
|
|
192
|
-
local function resolve_site(V, f, from, name, kind, recv, evidence, offset, index, cursor_line)
|
|
192
|
+
local function resolve_site(V, f, from, name, kind, recv, evidence, offset, index, cursor_line, definition)
|
|
193
193
|
if kind == 'type' then
|
|
194
194
|
local site = type(evidence) == 'table' and evidence
|
|
195
195
|
if not site then return {}, 'unsupported type position' end
|
|
196
|
-
return require('codeoutline.type_references').resolve(V, f, from > 0 and V.id_of[f][from] or nil,
|
|
196
|
+
return require('codeoutline.type_references').resolve(V, f, from > 0 and V.id_of[f][from] or nil,
|
|
197
|
+
site, V.js_context, nil, definition)
|
|
197
198
|
end
|
|
198
199
|
if index then evidence = V.js_context.ordinary.evidence(f, index) end
|
|
199
200
|
if V.files[f].language == 'go' and offset and evidence ~= 'go:?' and not (evidence and evidence:match('^go:expr:')) then
|
|
@@ -204,7 +205,8 @@ local function resolve_site(V, f, from, name, kind, recv, evidence, offset, inde
|
|
|
204
205
|
local direct, paired = deps(V, f)
|
|
205
206
|
local rkind, accept = kind, nil
|
|
206
207
|
if kind == 'symbol' then rkind, accept = 'call', ANY
|
|
207
|
-
elseif kind == 'member_symbol' then rkind, accept = 'member_call', ANY
|
|
208
|
+
elseif kind == 'member_symbol' then rkind, accept = 'member_call', ANY
|
|
209
|
+
elseif definition and kind == 'member_call' and V.files[f].language == 'cpp' then accept = ANY end
|
|
208
210
|
local site_line = index and V.files[f].refs.line[index] or cursor_line
|
|
209
211
|
local targets, reason, macro_state = graph.resolve(V, f, src, name, rkind, recv or nil, direct, paired, accept, evidence, V.js_context, site_line)
|
|
210
212
|
targets = targets or {}
|
|
@@ -285,7 +287,65 @@ local function find_cursor(doc, offset, strict, parsed)
|
|
|
285
287
|
end
|
|
286
288
|
end
|
|
287
289
|
|
|
290
|
+
local macro_body_scanners = {}
|
|
291
|
+
local function macro_body_cursor(doc, offset, rec)
|
|
292
|
+
if not C_FAMILY[rec.language] then return nil end
|
|
293
|
+
local line = doc:position(offset).line + 1
|
|
294
|
+
while line > 1 do
|
|
295
|
+
local previous = doc.source:sub(doc.lines[line - 1] + 1, doc.lines[line]):gsub('[\r\n]+$', '')
|
|
296
|
+
if not previous:match('\\$') then break end
|
|
297
|
+
line = line - 1
|
|
298
|
+
end
|
|
299
|
+
if not doc.source:sub(doc.lines[line] + 1, (doc.lines[line + 1] or #doc.source)):match('^%s*#%s*define%s') then return nil end
|
|
300
|
+
local T = doc:tokens(true)
|
|
301
|
+
for i = 1, T.n do
|
|
302
|
+
if T.s[i] - 1 > offset then break end
|
|
303
|
+
if T.k[i] == 'dir' and T.s[i] - 1 <= offset and offset < T.e[i] then
|
|
304
|
+
local text = T:text(i)
|
|
305
|
+
local name_start, name = text:match('^#%s*define%s+()([%a_][%w_]*)')
|
|
306
|
+
if not name then return nil end
|
|
307
|
+
local start = T.s[i] - 1
|
|
308
|
+
if offset < start + name_start - 1 + #name then return nil end
|
|
309
|
+
local scanner = macro_body_scanners[rec.language]
|
|
310
|
+
if not scanner then
|
|
311
|
+
local config = {}
|
|
312
|
+
for k, v in pairs(require('codeoutline.lang.' .. rec.language).config) do config[k] = v end
|
|
313
|
+
config.directive, config.pp_first_branch = nil, nil
|
|
314
|
+
scanner = require('codeoutline.xscan').lang(config)
|
|
315
|
+
macro_body_scanners[rec.language] = scanner
|
|
316
|
+
end
|
|
317
|
+
local body = scanner:tokenize(text)
|
|
318
|
+
local macro, parameters = nil, {}
|
|
319
|
+
for n = 1, body.n do if body.s[n] == name_start then macro = n; break end end
|
|
320
|
+
if not macro then return false end
|
|
321
|
+
local first = macro + 1
|
|
322
|
+
if body:text(first) == '(' and body.s[first] == body.e[macro] + 1 and body.m[first] then
|
|
323
|
+
local close = body.m[first]
|
|
324
|
+
for n = first + 1, close - 1 do if body.k[n] == 'id' then parameters[body:text(n)] = true end end
|
|
325
|
+
first = close + 1
|
|
326
|
+
end
|
|
327
|
+
for n = first, body.n do
|
|
328
|
+
local a, b = start + body.s[n] - 1, start + body.e[n]
|
|
329
|
+
if a <= offset and offset < b and body.k[n] == 'id' then
|
|
330
|
+
local word = body:text(n)
|
|
331
|
+
if parameters[word] then return false end
|
|
332
|
+
local op = body:text(n - 1)
|
|
333
|
+
local member = op == '.' or op == '->' or op == '::'
|
|
334
|
+
return { from = 0, name = word, kind = member and (body:text(n + 1) == '(' and 'member_call' or 'member_symbol')
|
|
335
|
+
or (body:text(n + 1) == '(' and 'call' or 'symbol'),
|
|
336
|
+
recv = member and body.k[n - 2] == 'id' and body:text(n - 2) or nil, first = a, last = b }
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
return false
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
288
344
|
local function cursor(doc, offset, V, f, include_inactive)
|
|
345
|
+
if include_inactive then
|
|
346
|
+
local macro = macro_body_cursor(doc, offset, doc:parse())
|
|
347
|
+
if macro ~= nil then return macro or nil end
|
|
348
|
+
end
|
|
289
349
|
local found = find_cursor(doc, offset, true) or find_cursor(doc, offset, false)
|
|
290
350
|
if found and found.decl then return found end
|
|
291
351
|
local rec, T
|
|
@@ -701,6 +761,12 @@ local function import_targets(V, f, line)
|
|
|
701
761
|
end
|
|
702
762
|
for _, imp in ipairs(rec.imports or {}) do
|
|
703
763
|
if imp.line == line then
|
|
764
|
+
if rec.language == 'lua' and imp.kind == 'require' then
|
|
765
|
+
for _, id in ipairs(require('codeoutline.foreign').lua_entrypoints(V, imp.path)) do
|
|
766
|
+
local loc = location(V, id)
|
|
767
|
+
if loc and not seen[loc.uri] then seen[loc.uri] = true; result[#result + 1] = loc end
|
|
768
|
+
end
|
|
769
|
+
end
|
|
704
770
|
local files, selected, header
|
|
705
771
|
if C_FAMILY[rec.language] then
|
|
706
772
|
files, selected, header = require('codeoutline.cpp_includes').resolve(V, f, imp, V.js_context)
|
|
@@ -1108,8 +1174,8 @@ local function at(req)
|
|
|
1108
1174
|
if c and c.decl then targets = { V.id_of[f][c.decl] }
|
|
1109
1175
|
elseif c then
|
|
1110
1176
|
c.line = doc:position(c.first).line + 1
|
|
1111
|
-
targets, reason, evidence, macro_state = resolve_site(V, f, c.from, c.name, c.kind, c.recv, c.evidence, c.first, c.index, c.line)
|
|
1112
|
-
c.reason, c.evidence, c.macro_state = reason, evidence, macro_state
|
|
1177
|
+
targets, reason, evidence, macro_state = resolve_site(V, f, c.from, c.name, c.kind, c.recv, c.evidence, c.first, c.index, c.line, req.method == 'lsp_definition')
|
|
1178
|
+
c.reason, c.evidence, c.macro_state = reason, c.kind == 'type' and c.evidence or evidence, macro_state
|
|
1113
1179
|
end
|
|
1114
1180
|
return V, doc, c, targets, f, offset
|
|
1115
1181
|
end
|
|
@@ -11,7 +11,7 @@ function M.validate(query, opts)
|
|
|
11
11
|
assert(type(cap) == 'number' and cap % 1 == 0 and cap >= 1 and cap <= 2000, 'max_nodes must be an integer between 1 and 2000')
|
|
12
12
|
return budget
|
|
13
13
|
end
|
|
14
|
-
function M.resolve(G, f, from, site, ctx, details)
|
|
14
|
+
function M.resolve(G, f, from, site, ctx, details, navigation)
|
|
15
15
|
if site.value_shadowed and not site.elaborated then return {}, 'value binding' end
|
|
16
16
|
local language, written = G.files[f].language, site.written
|
|
17
17
|
local data, head = details or ctx.ordinary.data(f), written:match('^([%w_$]+)')
|
|
@@ -21,7 +21,8 @@ function M.resolve(G, f, from, site, ctx, details)
|
|
|
21
21
|
local scope = from and from > 0 and G.nodes[from] and G.nodes[from].qualified or ''
|
|
22
22
|
local ids
|
|
23
23
|
if language == 'cpp' then
|
|
24
|
-
ids = require('codeoutline.cpp_types').resolve(G, f, written, { context = ctx, scope = scope,
|
|
24
|
+
ids = require('codeoutline.cpp_types').resolve(G, f, written, { context = ctx, scope = scope,
|
|
25
|
+
at = site.at, accept = M.kinds, definitions = true, navigation_alias = navigation })
|
|
25
26
|
elseif language == 'c' then
|
|
26
27
|
local visible = graph.visible_dependencies(G, f, ctx); ids = {}
|
|
27
28
|
local own = {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
return
|
|
1
|
+
return 19
|
|
@@ -1 +1 @@
|
|
|
1
|
-
return '0.
|
|
1
|
+
return '0.3.0'
|