@codua/codeoutline-win32-x64 0.3.6 → 0.3.7

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 CHANGED
Binary file
package/build-info.json CHANGED
@@ -1 +1 @@
1
- {"runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","runtimeBuild":"4f732f99896571583bf36c62f9e00127fdffe245f43bacd27ee38e08d9cd1298","lua":"LuaJIT 2.1.1774896198","sourceCommit":"c95a5e4e716c7306de6642913b8bda03285acb34","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","version":"0.3.6","target":"win32-x64","updateSequence":25,"sha256":{"scripts/codeoutline/query/navigation.lua":"c6bf6d41d71a3159c5906e7e182d136fe0d564dc9fd8ec53881add420363a0d6","scripts/codeoutline/analysis/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/install/install_prompt.lua":"588c90cd2955756b13a96e1f0d17145a51eda239c9cf179d5eac195532ee9f49","scripts/codeoutline/query/on_demand.lua":"7faf5e4d5f21ca73903903703178d9d983c98d1ddb30d9ca5656bbae676e1f1a","scripts/codeoutline/analysis/csharp/csharp_bindings.lua":"4843f5eb39def4f88c0b873a97d081b87d7878040c3d1f13e2adc41f9f295a9a","scripts/codeoutline/lang/csharp.lua":"93762ccefd326fb04fcc5c5dd73821241216e9374de2abbe9e4f53fe5af1c160","scripts/codeoutline/query/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/lang/go.lua":"027afb44a9c3a92aa74b9af230d8571963183697529fd41fe915ffa831f3e8da","scripts/codeoutline/analysis/rust/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/query/query_report.lua":"f53c24c48f3f94dd17c7f0be5501865aff0af73d926f27e03d9849c168996462","scripts/codeoutline/lang/java.lua":"3c6b2d844202cbe988644e94090be76e7f8a2a906f4412aefcbd06e9fb56a01b","scripts/codeoutline/analysis/foreign.lua":"4c8fdbe398f2b43be861ce0e4915916956c1fb2af6c10c5c04a9654e8aac2bf2","scripts/codeoutline/analysis/rust/rust_packages.lua":"c6886a77017bf039499d93027b28bd354599875a5d3705f622ea3366512432e8","scripts/codeoutline/lang/js.lua":"ff326c9ef41deb5ec7f961a556350b69c4b601a176d696114a2096d5118c2379","scripts/codeoutline/analysis/function_values.lua":"d10bc4a2a82a90a611daf3c2bb26c41da43543f7831711bd4b0c311ad5569d80","scripts/codeoutline/analysis/rust/rust_resolution.lua":"2b9ec789243cda63107a721e8d907faa3d3d5c18f21a69b634db4deac9e586ee","scripts/codeoutline/lang/kotlin.lua":"8b5dabbbede62bf0a1376414f7424e6dd3a248739cc015c2364d143901230d86","codeoutline":"1909247ba17be9d0fe14d689ea7c1c955013b5b79f05336e2161b6f161c4c394","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/query/type_references.lua":"9119a2c55b2ae825190ac50d97d6a4cacacd33a707cd1e98b532c4a7d02e4a0c","editors/zed/extension.wasm":"d6920782ddd8272833f2631508374bb75d174bb2727f6414769f9ec8a724ad38","scripts/codeoutline/lang/lua.lua":"73f2f83ca086fb64e7b26b86d0a3ba4a1a2028a68df52e3cf9dce25cd73929a9","editors/zed/extension.toml":"2c5e28806d71e03b0c421d35b8a9aa9e1d428038417aebd7bdf3c871b22d93f4","editors/codeoutline.vsix":"672266c0a4dff84bbe9705767ca06fbd74d1f98585a3236096b5578c0bbd65f9","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","DISTRIBUTION.md":"7f1b6d02bd3fa71a7d02cbd57bebd82fbd930d96c1cb32a5f15764466c88ef12","scripts/codeoutline/lang/python.lua":"a0b2b64fe42e585ec922304d3b8ecd6c679a97fecfe1bc56014f1556558c9387","scripts/codeoutline/analysis/static_dispatch.lua":"9940f4c4317e8f5345a9f39178fac639278bc186265a72369f1be808bdeebd29","scripts/codeoutline/analysis/js/js_workspace.lua":"230df95605e0ce47a940f425611d426eaa3d4de262736e3dfe3bd1f15db956b4","bin/xnet.exe":"56ef9855fad7746ad29fb10243d60d4c5bd507ab22c5e79abce1be11dded22c4","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/lang/rust.lua":"45d0a9c535d674b31990ba1052f97b2da2a98565a68294937429f443ac1c8da5","scripts/codeoutline/analysis/automatic_events.lua":"2d81c3e943964680e13b6005b823f05637c31891f3759fec7074e14d20b7f150","scripts/codeoutline/analysis/go/go_methods.lua":"71832a6b8941a6b6f9155c59cec2da7c33108a132608cdaa2cd85076c4e241cf","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/main.lua":"9f884e383721888af68fd41f3dfdd816e65e4d569346664e390ee086a4b55fa3","scripts/codeoutline/runtime/index_worker.lua":"0bfbf38fe9cb6e8a92b958028c6df9970575f881330dd4568a621463d20497b8","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/analysis/type_uses.lua":"eb1ee73f0a3cb67ef3b92ed1a8b7222fbc26137f743e466338e180b416ea12cb","scripts/codeoutline/runtime/idle_gc.lua":"2025b037b593b5e19714b6e283c8a0490146e591de795988a543a161277714f1","scripts/codeoutline/service.lua":"795797bf7d3b329e67fff5b3d8bd9ab2681dfb2472f7d9a8236756bea67c0c56","scripts/codeoutline/runtime/parse_worker.lua":"4cb620924fbe43d0f9a411c689060575220c0b2947d09fba266fe552ad003cfe","scripts/codeoutline/analysis/js/js_evidence.lua":"523913dcadb37ec433b31103c12218c383001851b7cf965cf4505065917d8afe","codeoutline.cmd":"52ee46a6010ff1161369e50df76e96beed2d6152f8c8e5095f73bc0b60a7629b","scripts/codeoutline/cli.lua":"28b058bbb3c86d9e6a7603c52ef62eacc8978af6c2201e61bfb8100bc79be4b2","scripts/codeoutline/shared/rules.lua":"b01402863062435a6d31a4a5a90208319876fdb444a76c75fd0c45ea8ee6fee5","scripts/codeoutline/runtime/update_worker.lua":"9557e5207e440fccf15e8255b3fb1c8933ad33d1f352c19987fb825f7db45706","scripts/codeoutline/parsing/common.lua":"6c883bb69827fd9e88e35f7ecc380f43e3a839fbea127e46ad6923c44beeb590","scripts/codeoutline/analysis/cpp/cpp_bindings.lua":"06adeb3b4a56d97555b6e4bd775de8dd1c9d2331474b670d53188d4fbe4b3b0c","scripts/codeoutline/analysis/js/js_resolution.lua":"427a4656216878487e9c11a02faa4f6c4240fb00b126ec298479a45c12f3ecce","scripts/codeoutline/analysis/implementations.lua":"2672c4337623100fc5b0dfa4e2260775e05c6d2d315be359be2eab4ec3f9c664","scripts/codeoutline/command.lua":"0b16dc8b960569bc7fc3d6c363f41d0672da8271de05ca0728ae5c1deb471fc6","scripts/codeoutline/protocol/mcp.lua":"1e65df410d6cede3cc0fb227ea406a5e7e178d425b5ed861f73d8b748fbdbae7","scripts/codeoutline/parsing/language_detect.lua":"4c9fd0fcd270cfd123e9e9d0bcc2f3635cd19a8784098a03cee6bce5ac593e8c","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/codeoutline/analysis/cpp/cpp_implementations.lua":"87d637812626672f44226e245f94d675e209a83e4cd2d6b2a320ed9d60a6a3d0","scripts/codeoutline/analysis/indirect.lua":"38e15056251400f840604af29fb3ddacac7915d2cf1c2bf7870d481497cc8831","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/codeoutline/parsing/parse.lua":"81dacf0f07440f1a7516732c39251d0d7f07cef77f7d8f9f25bdacd96c7919a0","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/xupgate/http_client.lua":"e910132b82779969926f959fc876da4aa4807559f91d1d01d32b263f1784e01d","scripts/codeoutline/analysis/cpp/cpp_includes.lua":"7a2de73f528a608eb89aea0f5fe8d18b3ef51d6e9966106af0ecd41f03304d07","scripts/codeoutline/lang/c.lua":"f341d250a09a937d8548657991bdeac0aec8de26b7d056292709126ee999c6f1","scripts/codeoutline/parsing/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/indexing/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/xupgate/client.lua":"88d8ccdd54282257d233af714fad22abc7af4b9ad65882f58330cc8814461985","scripts/codeoutline/query/callers.lua":"b1870f2d08c2274ce743d513560ce9329e16236399e065027685dbf8694c82ab","scripts/codeoutline/analysis/cpp/cpp_macros.lua":"fa79cd9ea652be2a921f930d0ec21dcfc1d61b15e0ea2cd22ad4141eeb4e9552","scripts/codeoutline/analysis/graph.lua":"e434dac63c5291f76faca97ee8b8e94f9ac5a9b8c529aeab56ca9de9a9d4bfd1","scripts/codeoutline/shared/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/indexing/cpp_fragments.lua":"6be4c3f89c234b6982235981d9f128875790acd5d22f80fe11290bb99af903a3","scripts/codeoutline/shared/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/analysis/cpp/cpp_receivers.lua":"4f9bea5325d0ccd3ddfe5117bf8891408d41988bdc94d6a388363624b64df0f3","scripts/codeoutline/analysis/lua/foreign_lua.lua":"c217da78314febeff5d20c9d7e9f68e25089d1e76f4350405d83af494deac3dc","scripts/codeoutline/protocol/http.lua":"bd558939df95e4a908551f43ca5bf0eb68d7a16b8eb20b1b4076a5ece20956b7","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","scripts/codeoutline/shared/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","scripts/codeoutline/indexing/index.lua":"459a02dd0c436df968703b74b9fb4624b6fdb4adfffc2383c7abbdb683ef6160","scripts/codeoutline/analysis/cpp/cpp_types.lua":"18e68635a30f86a8975cc556839ed2be961685353dec290749fd169d3049cf16","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","scripts/codeoutline/analysis/lua/lua_bindings.lua":"da0528967f8984df790dc91ee170f9dfa9648aee429709d27313f0c48101d0d0","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","scripts/codeoutline/query/type_hierarchy.lua":"e5ccfa85ac63c636f50d33310274559624c08954e1f77a197ff941d799669b37","scripts/codeoutline/indexing/parse_pool.lua":"5a35dad6a6a44a2dccd793a694e65e5a2bdb621911d56bdb32375ce8295889d8","scripts/codeoutline/query/search_ranking.lua":"153987a2915c48516b8dca10121b8efa2b116af8cf82200243e45f1fd5feffb4","scripts/codeoutline/query/completion.lua":"688d1ca54bbbd5c7dad40286251b2ad1c404c66f5bc61da1e5dea065a615ffd8","scripts/codeoutline/analysis/lua/lua_callback_loops.lua":"2b28f338ebc23c8a6543fad61e932ceaee409512b69a71711d385fcc0bdafd4c","scripts/codeoutline/query/external_headers.lua":"9b8d8a87a67839d4da1d5eced619d7c54431dbff32b07d505ea54350bdc2de3b","scripts/codeoutline/update_sequence.lua":"585248fd87c00951f2cea79eb321811a65f3f2b963526f44ed9abad04b871ae1","scripts/codeoutline/analysis/go/go_frameworks.lua":"2f2a692a6dbda384abf32af0750bb40e99f1bc3e83f039215f0eaf750cf77f65","scripts/codeoutline/query/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","scripts/codeoutline/protocol/lsp_trace.lua":"41e6e67866eb6c862cf11337a637a94505f62a29533a9dbd6226d3b801444597","scripts/codeoutline/analysis/lua/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/codeoutline/version.lua":"d65079f850e4e3b6a1faa58179f577e1d8f8d270add3e95321981c53252ec518","scripts/codeoutline/query/affected.lua":"7fe6ae466b314957f39ceb8fcc1f0a5339d523c86f99ce5735599a2477865b72","scripts/codeoutline/query/definition_candidates.lua":"06867f8873f8eddb0fc88ffdb20e5a837af5c20e361fe3b6fb38d923ebb92e6c","scripts/codeoutline/install/agent_config.lua":"041e1736f7be060b9eac9f3ced0b20f50854d94af2cddfa22c5d3868f3fc1681","scripts/codeoutline/protocol/lsp.lua":"f236c0407dc8b479c883cd526a19dca61efd999926e70d564d299c3972074224","scripts/codeoutline/analysis/ordinary_bindings.lua":"ec9f3609650f2ec05dd429e178118a4dded9b6c40cfecdd5efcdeb5e0bb2ad94","README.md":"291594269b54eb0690bad6c05b06585cd28989e9ddde9b3cc5422a6a2a944fb3","scripts/codeoutline/query/documents.lua":"1ed27cb6f805c1ff9acbc070f16e582b71c4a330c5539fb3d7b8ed4150c82bdf","README.zh-CN.md":"d65838da7d26d7f35df6d60c3c24b2142219131197b23e237128c83e2602250c","scripts/codeoutline/install/agent_install.lua":"32409b49dd1e8436169f334587b4994c9d6868ed3ff5c4eaed09b4b3b8ca12c4","scripts/codeoutline/analysis/python/python_bindings.lua":"ec4217f77345282a5522696c1b53e3886fb0e9a45736c10613fcb0fd4f016160","scripts/codeoutline/analysis/js/ts_implementations.lua":"2e92afd3b76a3dab73b99d7900dd357d37b9749a11c5bc11946e0d62d39e7be8","scripts/codeoutline/query/explore.lua":"04c670153afe4a2052a06ff9f21bec197ac82faaba53a7bd3335c93d31469544","scripts/codeoutline/analysis/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","scripts/codeoutline/install/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/analysis/go/go_modules.lua":"432dc66435fe93fbc2a7d1aa4212ae03ad5454effd18ffb3e06c2eca6a169aab","scripts/codeoutline/analysis/dispatch_aliases.lua":"05f3b06d7d890089b8e18a2e849df9a5ec433bce5312a22d80b7be417e614373","scripts/codeoutline/analysis/receivers.lua":"34d943ed9837dd43bb108dd18620bbee89784c62604e5a44b7f9311baf1fb48c","scripts/xupgate/common.lua":"e449f64c92e4ef46d0c9f4c815aacb38866392cbc3502544d3a1985f9dc4f978","scripts/codeoutline/install/editor_install.lua":"a69f5e123f7fbdb58fe2da691c744c0668a11ccd88f17a98167038c80a5d4cff","scripts/codeoutline/analysis/shared_events.lua":"88fb64d66e6d41da3beeaeff86f6357b5a8ceae16003ba194aaa01171e4874f1","scripts/codeoutline/lang/cpp.lua":"e13eaf1882cddb20a7a651d13136e06ca42c482cf7ac53de38bf82fdda786727"}}
1
+ {"updateSequence":26,"target":"win32-x64","version":"0.3.7","runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","runtimeBuild":"4f732f99896571583bf36c62f9e00127fdffe245f43bacd27ee38e08d9cd1298","lua":"LuaJIT 2.1.1774896198","sourceCommit":"a68de1768661bd1b9b30f9b5e0168cb0fbcd9769","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","sha256":{"scripts/codeoutline/analysis/rust/rust_packages.lua":"c6886a77017bf039499d93027b28bd354599875a5d3705f622ea3366512432e8","scripts/codeoutline/analysis/automatic_events.lua":"2d81c3e943964680e13b6005b823f05637c31891f3759fec7074e14d20b7f150","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/codeoutline/analysis/rust/rust_resolution.lua":"2b9ec789243cda63107a721e8d907faa3d3d5c18f21a69b634db4deac9e586ee","scripts/codeoutline/analysis/js/js_evidence.lua":"523913dcadb37ec433b31103c12218c383001851b7cf965cf4505065917d8afe","scripts/codeoutline/lang/csharp.lua":"93762ccefd326fb04fcc5c5dd73821241216e9374de2abbe9e4f53fe5af1c160","scripts/codeoutline/analysis/shared_events.lua":"88fb64d66e6d41da3beeaeff86f6357b5a8ceae16003ba194aaa01171e4874f1","scripts/codeoutline/runtime/index_worker.lua":"0bfbf38fe9cb6e8a92b958028c6df9970575f881330dd4568a621463d20497b8","scripts/codeoutline/analysis/js/js_resolution.lua":"427a4656216878487e9c11a02faa4f6c4240fb00b126ec298479a45c12f3ecce","scripts/codeoutline/lang/go.lua":"027afb44a9c3a92aa74b9af230d8571963183697529fd41fe915ffa831f3e8da","scripts/codeoutline/analysis/static_dispatch.lua":"9940f4c4317e8f5345a9f39178fac639278bc186265a72369f1be808bdeebd29","scripts/codeoutline/runtime/parse_worker.lua":"4cb620924fbe43d0f9a411c689060575220c0b2947d09fba266fe552ad003cfe","scripts/codeoutline/analysis/cpp/cpp_bindings.lua":"06adeb3b4a56d97555b6e4bd775de8dd1c9d2331474b670d53188d4fbe4b3b0c","scripts/codeoutline/analysis/js/js_workspace.lua":"230df95605e0ce47a940f425611d426eaa3d4de262736e3dfe3bd1f15db956b4","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/analysis/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","scripts/codeoutline/protocol/lsp_trace.lua":"41e6e67866eb6c862cf11337a637a94505f62a29533a9dbd6226d3b801444597","codeoutline.cmd":"52ee46a6010ff1161369e50df76e96beed2d6152f8c8e5095f73bc0b60a7629b","scripts/codeoutline/analysis/js/ts_implementations.lua":"2e92afd3b76a3dab73b99d7900dd357d37b9749a11c5bc11946e0d62d39e7be8","editors/zed/extension.wasm":"22655024875868084fc43c92abdccfeb03773d40bf03d5ce18068384c3122fd9","scripts/codeoutline/service.lua":"795797bf7d3b329e67fff5b3d8bd9ab2681dfb2472f7d9a8236756bea67c0c56","scripts/codeoutline/analysis/type_uses.lua":"eb1ee73f0a3cb67ef3b92ed1a8b7222fbc26137f743e466338e180b416ea12cb","editors/zed/extension.toml":"2c5e28806d71e03b0c421d35b8a9aa9e1d428038417aebd7bdf3c871b22d93f4","editors/codeoutline.vsix":"4c5552495a7025c28d51cd870f28cc641dc3e7124d3cb9ba3c28cc9081cb7c7b","bin/xnet.exe":"b3e030912ad8180e66c6801c4b2c986f6325f5ac5f07a5f012f72da8b6332486","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","DISTRIBUTION.md":"7f1b6d02bd3fa71a7d02cbd57bebd82fbd930d96c1cb32a5f15764466c88ef12","scripts/codeoutline/cli.lua":"28b058bbb3c86d9e6a7603c52ef62eacc8978af6c2201e61bfb8100bc79be4b2","README.zh-CN.md":"d65838da7d26d7f35df6d60c3c24b2142219131197b23e237128c83e2602250c","README.md":"291594269b54eb0690bad6c05b06585cd28989e9ddde9b3cc5422a6a2a944fb3","scripts/codeoutline/analysis/cpp/cpp_macros.lua":"fa79cd9ea652be2a921f930d0ec21dcfc1d61b15e0ea2cd22ad4141eeb4e9552","scripts/codeoutline/analysis/lua/foreign_lua.lua":"c217da78314febeff5d20c9d7e9f68e25089d1e76f4350405d83af494deac3dc","scripts/codeoutline/shared/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/command.lua":"0b16dc8b960569bc7fc3d6c363f41d0672da8271de05ca0728ae5c1deb471fc6","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/codeoutline/analysis/cpp/cpp_receivers.lua":"4f9bea5325d0ccd3ddfe5117bf8891408d41988bdc94d6a388363624b64df0f3","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/lang/js.lua":"ff326c9ef41deb5ec7f961a556350b69c4b601a176d696114a2096d5118c2379","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","scripts/codeoutline/analysis/cpp/cpp_types.lua":"18e68635a30f86a8975cc556839ed2be961685353dec290749fd169d3049cf16","scripts/codeoutline/lang/kotlin.lua":"8b5dabbbede62bf0a1376414f7424e6dd3a248739cc015c2364d143901230d86","scripts/codeoutline/analysis/lua/lua_callback_loops.lua":"2b28f338ebc23c8a6543fad61e932ceaee409512b69a71711d385fcc0bdafd4c","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","codeoutline":"1909247ba17be9d0fe14d689ea7c1c955013b5b79f05336e2161b6f161c4c394","scripts/codeoutline/indexing/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/codeoutline/lang/lua.lua":"73f2f83ca086fb64e7b26b86d0a3ba4a1a2028a68df52e3cf9dce25cd73929a9","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/codeoutline/analysis/lua/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/analysis/csharp/csharp_bindings.lua":"722c8fb2b133bbe09179293b068967fe70e7a2e8942380068a04a97b1283a43d","scripts/codeoutline/lang/python.lua":"a0b2b64fe42e585ec922304d3b8ecd6c679a97fecfe1bc56014f1556558c9387","scripts/codeoutline/indexing/cpp_fragments.lua":"6be4c3f89c234b6982235981d9f128875790acd5d22f80fe11290bb99af903a3","scripts/codeoutline/query/completion.lua":"688d1ca54bbbd5c7dad40286251b2ad1c404c66f5bc61da1e5dea065a615ffd8","scripts/codeoutline/analysis/ordinary_bindings.lua":"ec9f3609650f2ec05dd429e178118a4dded9b6c40cfecdd5efcdeb5e0bb2ad94","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","scripts/codeoutline/lang/rust.lua":"45d0a9c535d674b31990ba1052f97b2da2a98565a68294937429f443ac1c8da5","scripts/codeoutline/analysis/dispatch_aliases.lua":"05f3b06d7d890089b8e18a2e849df9a5ec433bce5312a22d80b7be417e614373","scripts/codeoutline/query/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","scripts/codeoutline/indexing/index.lua":"459a02dd0c436df968703b74b9fb4624b6fdb4adfffc2383c7abbdb683ef6160","scripts/xupgate/http_client.lua":"e910132b82779969926f959fc876da4aa4807559f91d1d01d32b263f1784e01d","scripts/codeoutline/main.lua":"9f884e383721888af68fd41f3dfdd816e65e4d569346664e390ee086a4b55fa3","scripts/xupgate/common.lua":"e449f64c92e4ef46d0c9f4c815aacb38866392cbc3502544d3a1985f9dc4f978","scripts/codeoutline/analysis/foreign.lua":"4c8fdbe398f2b43be861ce0e4915916956c1fb2af6c10c5c04a9654e8aac2bf2","scripts/xupgate/client.lua":"88d8ccdd54282257d233af714fad22abc7af4b9ad65882f58330cc8814461985","scripts/codeoutline/indexing/parse_pool.lua":"5a35dad6a6a44a2dccd793a694e65e5a2bdb621911d56bdb32375ce8295889d8","scripts/codeoutline/version.lua":"d664c88a2d0632fc98b733a6e66e79b049e37b581f5ce0def27439a2df8d8210","scripts/codeoutline/update_sequence.lua":"3e941d94d7779e4d6c362866828f9c2d823683068cd31b502d0e4b0b10aacf6f","scripts/codeoutline/query/documents.lua":"1ed27cb6f805c1ff9acbc070f16e582b71c4a330c5539fb3d7b8ed4150c82bdf","scripts/codeoutline/analysis/function_values.lua":"d10bc4a2a82a90a611daf3c2bb26c41da43543f7831711bd4b0c311ad5569d80","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/codeoutline/shared/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/shared/rules.lua":"b01402863062435a6d31a4a5a90208319876fdb444a76c75fd0c45ea8ee6fee5","scripts/codeoutline/parsing/common.lua":"6c883bb69827fd9e88e35f7ecc380f43e3a839fbea127e46ad6923c44beeb590","scripts/codeoutline/shared/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/runtime/update_worker.lua":"9557e5207e440fccf15e8255b3fb1c8933ad33d1f352c19987fb825f7db45706","scripts/codeoutline/runtime/idle_gc.lua":"2025b037b593b5e19714b6e283c8a0490146e591de795988a543a161277714f1","scripts/codeoutline/lang/cpp.lua":"e13eaf1882cddb20a7a651d13136e06ca42c482cf7ac53de38bf82fdda786727","scripts/codeoutline/install/agent_config.lua":"041e1736f7be060b9eac9f3ced0b20f50854d94af2cddfa22c5d3868f3fc1681","scripts/codeoutline/parsing/language_detect.lua":"4c9fd0fcd270cfd123e9e9d0bcc2f3635cd19a8784098a03cee6bce5ac593e8c","scripts/codeoutline/analysis/cpp/cpp_includes.lua":"7a2de73f528a608eb89aea0f5fe8d18b3ef51d6e9966106af0ecd41f03304d07","scripts/codeoutline/analysis/go/go_frameworks.lua":"2f2a692a6dbda384abf32af0750bb40e99f1bc3e83f039215f0eaf750cf77f65","scripts/codeoutline/protocol/lsp.lua":"f236c0407dc8b479c883cd526a19dca61efd999926e70d564d299c3972074224","scripts/codeoutline/query/navigation.lua":"e550b2a630cb61a6e5123b40930cadde0952ad3b2adba5fadfbb4146c209defa","scripts/codeoutline/parsing/parse.lua":"81dacf0f07440f1a7516732c39251d0d7f07cef77f7d8f9f25bdacd96c7919a0","scripts/codeoutline/analysis/python/python_bindings.lua":"ec4217f77345282a5522696c1b53e3886fb0e9a45736c10613fcb0fd4f016160","scripts/codeoutline/query/query_report.lua":"f53c24c48f3f94dd17c7f0be5501865aff0af73d926f27e03d9849c168996462","scripts/codeoutline/query/explore.lua":"04c670153afe4a2052a06ff9f21bec197ac82faaba53a7bd3335c93d31469544","scripts/codeoutline/analysis/go/go_methods.lua":"71832a6b8941a6b6f9155c59cec2da7c33108a132608cdaa2cd85076c4e241cf","scripts/codeoutline/parsing/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/query/on_demand.lua":"7faf5e4d5f21ca73903903703178d9d983c98d1ddb30d9ca5656bbae676e1f1a","scripts/codeoutline/query/external_headers.lua":"9b8d8a87a67839d4da1d5eced619d7c54431dbff32b07d505ea54350bdc2de3b","scripts/codeoutline/analysis/receivers.lua":"4729e09ecac8c3d24367a9db531e58be42c73547373118987a8b83ef9c32ff17","scripts/codeoutline/query/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/codeoutline/analysis/go/go_modules.lua":"432dc66435fe93fbc2a7d1aa4212ae03ad5454effd18ffb3e06c2eca6a169aab","scripts/codeoutline/query/definition_candidates.lua":"0e9fe37df6e897b7203ebbe3214ee0f92410a135e0d4decdfae1842702ab75a0","scripts/codeoutline/query/callers.lua":"b1870f2d08c2274ce743d513560ce9329e16236399e065027685dbf8694c82ab","scripts/codeoutline/query/affected.lua":"7fe6ae466b314957f39ceb8fcc1f0a5339d523c86f99ce5735599a2477865b72","scripts/codeoutline/analysis/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","scripts/codeoutline/install/install_prompt.lua":"588c90cd2955756b13a96e1f0d17145a51eda239c9cf179d5eac195532ee9f49","scripts/codeoutline/analysis/graph.lua":"e434dac63c5291f76faca97ee8b8e94f9ac5a9b8c529aeab56ca9de9a9d4bfd1","scripts/codeoutline/protocol/http.lua":"bd558939df95e4a908551f43ca5bf0eb68d7a16b8eb20b1b4076a5ece20956b7","scripts/codeoutline/protocol/mcp.lua":"1e65df410d6cede3cc0fb227ea406a5e7e178d425b5ed861f73d8b748fbdbae7","scripts/codeoutline/query/search_ranking.lua":"153987a2915c48516b8dca10121b8efa2b116af8cf82200243e45f1fd5feffb4","scripts/codeoutline/lang/c.lua":"f341d250a09a937d8548657991bdeac0aec8de26b7d056292709126ee999c6f1","scripts/codeoutline/analysis/lua/lua_bindings.lua":"3639c8336b4f4f12be6a34842fb0a1b128d32d3125099a7dbd182a8a9ce0c364","scripts/codeoutline/analysis/implementations.lua":"ffcd7288eae967c5628c85b8e55d93c826b30524956212dccca7d150ac7ac3be","scripts/codeoutline/install/editor_install.lua":"a69f5e123f7fbdb58fe2da691c744c0668a11ccd88f17a98167038c80a5d4cff","scripts/codeoutline/query/type_hierarchy.lua":"e5ccfa85ac63c636f50d33310274559624c08954e1f77a197ff941d799669b37","scripts/codeoutline/analysis/cpp/cpp_implementations.lua":"87d637812626672f44226e245f94d675e209a83e4cd2d6b2a320ed9d60a6a3d0","scripts/codeoutline/analysis/rust/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/install/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/analysis/indirect.lua":"38e15056251400f840604af29fb3ddacac7915d2cf1c2bf7870d481497cc8831","scripts/codeoutline/query/type_references.lua":"9119a2c55b2ae825190ac50d97d6a4cacacd33a707cd1e98b532c4a7d02e4a0c","scripts/codeoutline/install/agent_install.lua":"32409b49dd1e8436169f334587b4994c9d6868ed3ff5c4eaed09b4b3b8ca12c4","scripts/codeoutline/lang/java.lua":"3c6b2d844202cbe988644e94090be76e7f8a2a906f4412aefcbd06e9fb56a01b"}}
Binary file
Binary file
package/package.json CHANGED
@@ -1 +1 @@
1
- {"cpu":["x64","arm64"],"version":"0.3.6","repository":{"url":"git+https://github.com/1dao/codeoutline.git","type":"git"},"name":"@codua/codeoutline-win32-x64","files":["bin/","lib/","keys/","scripts/","editors/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"],"license":"BSD-2-Clause","os":["win32"],"publishConfig":{"access":"public"},"description":"CodeOutline native runtime and Lua implementation for win32-x64"}
1
+ {"description":"CodeOutline native runtime and Lua implementation for win32-x64","cpu":["x64","arm64"],"license":"BSD-2-Clause","name":"@codua/codeoutline-win32-x64","repository":{"url":"git+https://github.com/1dao/codeoutline.git","type":"git"},"files":["bin/","lib/","keys/","scripts/","editors/","licenses/","LICENSE","codeoutline","codeoutline.cmd","build-info.json","*.md"],"os":["win32"],"version":"0.3.7","publishConfig":{"access":"public"}}
@@ -198,6 +198,24 @@ local function context(G, ctx)
198
198
  end
199
199
  return ids
200
200
  end
201
+ local bases = {}
202
+ function C.bases(id)
203
+ if bases[id] then return bases[id] end
204
+ local node, f = G.nodes[id], G.node_file[id]
205
+ local ids = {}
206
+ if node.bases and #node.bases > 0 then
207
+ local at = 0
208
+ for _, scope in ipairs(C.data(f).csharp_scopes or {}) do
209
+ if scope.scope == node.qualified then at = scope.first; break end
210
+ end
211
+ local scope = node.qualified:match('^(.*)%.[^.]+$') or ''
212
+ for _, base in ipairs(node.bases) do
213
+ for _, base_id in ipairs(M.types(G, f, base, at, ctx, { scope = scope })) do ids[#ids + 1] = base_id end
214
+ end
215
+ end
216
+ bases[id] = ids
217
+ return ids
218
+ end
201
219
  function C.namespace(f, name)
202
220
  return namespaces[C.group(f)] and namespaces[C.group(f)][name] or false
203
221
  end
@@ -304,40 +322,67 @@ function M.types(G, f, name, at, ctx, options)
304
322
  return ids, nil, #ids > 0
305
323
  end
306
324
 
307
- function M.members(G, f, ids, name, static, ctx, depth, seen, access_scope)
308
- depth, seen = depth or 0, seen or {}
325
+ function M.base_classes(G, ids, ctx)
326
+ local C, result = context(G, ctx), {}
327
+ for _, id in ipairs(ids) do
328
+ for _, base in ipairs(C.bases(id)) do
329
+ if G.nodes[base].kind == 'class' or G.nodes[base].kind == 'record' then result[#result + 1] = base end
330
+ end
331
+ end
332
+ return result
333
+ end
334
+
335
+ local function derives_from(G, C, id, ancestor, depth, seen)
336
+ if seen[id] or depth > 8 then return false end
337
+ if G.nodes[id].qualified == G.nodes[ancestor].qualified then return true end
338
+ seen[id] = true
339
+ local interface = G.nodes[ancestor].kind == 'interface'
340
+ for _, base in ipairs(C.bases(id)) do
341
+ if (G.nodes[base].kind == 'interface') == interface
342
+ and derives_from(G, C, base, ancestor, depth + 1, seen) then return true end
343
+ end
344
+ return false
345
+ end
346
+
347
+ function M.members(G, f, ids, name, static, ctx, access_scope, base_access)
309
348
  local C, out, emitted = context(G, ctx), {}, {}
310
- for _, cls in ipairs(ids) do
311
- if not seen[cls] and depth <= 8 then
312
- seen[cls] = true
313
- local found = false
314
- for _, id in ipairs(G.by_name[name] or {}) do
315
- local n, g = G.nodes[id], G.node_file[id]
316
- if callable[n.kind] and n.qualified == G.nodes[cls].qualified .. '.' .. name
317
- and G.files[g].language == 'csharp' and C.same(f, g) then
318
- local data, index = C.data(g), id - G.id_of[g][1] + 1
319
- local is_static, access = (data.csharp_statics or {})[index] or false, (data.csharp_access or {})[index]
320
- local owner = G.nodes[cls].qualified
321
- local own = access_scope and (access_scope == owner or access_scope:sub(1, #owner + 1) == owner .. '.')
322
- if (static == nil or is_static == static) and (access == 'public' or access == 'internal' or own) then
323
- if not emitted[id] then emitted[id] = true; out[#out + 1] = id end
324
- found = true
349
+ local access_types
350
+ local function visit(cls, receiver, depth, seen)
351
+ if seen[cls] or depth > 8 then return end
352
+ seen[cls] = true
353
+ local found, owner = false, G.nodes[cls].qualified
354
+ local own = access_scope and (access_scope == owner or access_scope:sub(1, #owner + 1) == owner .. '.')
355
+ for _, id in ipairs(G.by_name[name] or {}) do
356
+ local n, g = G.nodes[id], G.node_file[id]
357
+ if callable[n.kind] and n.qualified == owner .. '.' .. name
358
+ and G.files[g].language == 'csharp' and C.same(f, g) then
359
+ local data, index = C.data(g), id - G.id_of[g][1] + 1
360
+ local is_static, access = (data.csharp_statics or {})[index] or false, (data.csharp_access or {})[index]
361
+ if static == nil or is_static == static then
362
+ local visible = own or access == 'public' or access == 'internal'
363
+ if not visible and access == 'protected' and access_scope then
364
+ access_types = access_types or C.exact(f, access_scope)
365
+ -- An instance qualifier must have the accessing type or a subtype.
366
+ for _, accessor in ipairs(access_types) do
367
+ if (G.nodes[cls].kind ~= 'interface' or G.nodes[accessor].kind == 'interface')
368
+ and derives_from(G, C, accessor, cls, 0, {})
369
+ and (base_access or is_static or derives_from(G, C, receiver, accessor, 0, {})) then
370
+ visible = true; break
371
+ end
372
+ end
325
373
  end
326
- end
327
- end
328
- if not found and static ~= true then
329
- for _, base in ipairs(G.nodes[cls].bases or {}) do
330
- local g = G.node_file[cls]
331
- local at = 0
332
- for _, scope in ipairs(C.data(g).csharp_scopes or {}) do if scope.scope == G.nodes[cls].qualified then at = scope.first; break end end
333
- local more = M.types(G, g, base, at, ctx, { scope = G.nodes[cls].qualified:match('^(.*)%.[^.]+$') or '' })
334
- for _, id in ipairs(M.members(G, f, more, name, static, ctx, depth + 1, seen, access_scope)) do
374
+ if visible then
335
375
  if not emitted[id] then emitted[id] = true; out[#out + 1] = id end
376
+ found = true
336
377
  end
337
378
  end
338
379
  end
339
380
  end
381
+ if not found and static ~= true then
382
+ for _, base in ipairs(C.bases(cls)) do visit(base, receiver, depth + 1, seen) end
383
+ end
340
384
  end
385
+ for _, cls in ipairs(ids) do visit(cls, cls, 0, {}) end
341
386
  return out
342
387
  end
343
388
 
@@ -356,7 +401,7 @@ function M.resolve(G, f, src, name, kind, recv, evidence, ctx)
356
401
  and C.same(f, G.node_file[id]) then explicit = true; break end
357
402
  end
358
403
  if explicit then
359
- for _, id in ipairs(M.members(G, f, { cls }, n.name, false, ctx, nil, nil, access_scope)) do result[#result + 1] = id end
404
+ for _, id in ipairs(M.members(G, f, { cls }, n.name, false, ctx, access_scope)) do result[#result + 1] = id end
360
405
  else result[#result + 1] = cls end
361
406
  end
362
407
  return result
@@ -374,26 +419,18 @@ function M.resolve(G, f, src, name, kind, recv, evidence, ctx)
374
419
  if tag == 'self' then
375
420
  local scope = src and G.nodes[src].qualified:match('^(.*)%.[^.]+$') or C.scope(f, at)
376
421
  local owners = C.exact(f, scope)
377
- if value == 'base' then
378
- local bases = {}
379
- for _, id in ipairs(owners) do
380
- for _, base in ipairs(G.nodes[id].bases or {}) do
381
- for _, target in ipairs(M.types(G, f, base, at, ctx)) do bases[#bases + 1] = target end
382
- end
383
- end
384
- owners = bases
385
- end
386
- return M.members(G, f, owners, name, false, ctx, nil, nil, access_scope)
422
+ if value == 'base' then owners = M.base_classes(G, owners, ctx) end
423
+ return M.members(G, f, owners, name, false, ctx, access_scope, value == 'base')
387
424
  end
388
425
  if tag == 'type' or tag == 'owner' then
389
426
  local ids, _, known = M.types(G, f, value, at, ctx)
390
- if tag == 'type' or known then return M.members(G, f, ids, name, tag == 'owner', ctx, nil, nil, access_scope) end
427
+ if tag == 'type' or known then return M.members(G, f, ids, name, tag == 'owner', ctx, access_scope) end
391
428
  return nil
392
429
  end
393
430
  if tag == 'call' then
394
431
  local owner = src and G.nodes[src].qualified:match('^(.*)%.[^.]+$')
395
432
  if owner then
396
- local own = M.members(G, f, C.exact(f, owner), name, nil, ctx, nil, nil, access_scope)
433
+ local own = M.members(G, f, C.exact(f, owner), name, nil, ctx, access_scope)
397
434
  if #own > 0 then return own end
398
435
  end
399
436
  local out, known, seen = {}, false, {}
@@ -402,7 +439,7 @@ function M.resolve(G, f, src, name, kind, recv, evidence, ctx)
402
439
  if d.static then
403
440
  known = true
404
441
  local ids = M.types(G, entry.file, d.path, d.first, ctx, { exclude = d.first, no_global = true, scope = d.scope })
405
- for _, id in ipairs(M.members(G, f, ids, name, true, ctx, nil, nil, access_scope)) do
442
+ for _, id in ipairs(M.members(G, f, ids, name, true, ctx, access_scope)) do
406
443
  if not seen[id] then seen[id] = true; out[#out + 1] = id end
407
444
  end
408
445
  end
@@ -151,6 +151,8 @@ function M.collect(r, T)
151
151
  if best then
152
152
  ref.binding = best.type and 'jvm:type:' .. best.type .. '\0' .. (T.s[best.token] - 1) or 'jvm:?'
153
153
  if T:text(ref.tok - 3) == '.' or T:text(ref.tok - 3) == '?.' then ref.binding = 'jvm:?' end
154
+ elseif r.language == 'java' and ref.recv == 'super' and T:text(ref.tok - 3) == '.' then
155
+ ref.binding = 'jvm:?'
154
156
  elseif ref.recv == 'this' or ref.recv == 'super' then ref.binding = 'jvm:self:' .. ref.recv end
155
157
  r.has_bindings = true
156
158
  end
@@ -41,6 +41,24 @@ local function binding_at(bindings, name, token)
41
41
  return best
42
42
  end
43
43
 
44
+ local function metatable_import(T, bindings, bound)
45
+ if not bound then return nil end
46
+ local call = bound.token + 2
47
+ if T:text(bound.token + 1) ~= '=' or T:text(call) ~= 'setmetatable'
48
+ or binding_at(bindings, 'setmetatable', call) or T:text(call + 1) ~= '('
49
+ or T:text(call + 2) ~= '{' then return nil end
50
+ local object_end = T.m[call + 2]
51
+ if not object_end or T:text(object_end + 1) ~= ',' or T:text(object_end + 2) ~= '{' then return nil end
52
+ local key = object_end + 3
53
+ if T:text(key) ~= '__index' or T:text(key + 1) ~= '=' or T.k[key + 2] ~= 'id' then return nil end
54
+ local close = key + 3
55
+ if T:text(close) == ',' or T:text(close) == ';' then close = close + 1 end
56
+ if T.m[object_end + 2] ~= close or T.m[call + 1] ~= close + 1
57
+ or not value_end(T, close + 2) then return nil end
58
+ local base = binding_at(bindings, T:text(key + 2), key + 2)
59
+ return base and tonumber(base.hint:match('^lua:(%d+)$'))
60
+ end
61
+
44
62
  -- Shared lexical table-member lookup for normal references and query-only
45
63
  -- configured callback aliases. Results are local parser node indices.
46
64
  function M.local_members(nodes, scopes, name, token, scope, finish)
@@ -168,7 +186,8 @@ function M.collect(r, T, bm)
168
186
  for _, later in ipairs(bindings[owner] or {}) do
169
187
  if later.a == scope and later.token > first then finish = math.min(finish, later.token - 1) end
170
188
  end
171
- info = { members = M.local_members(r.nodes, scopes, owner, first, scope, finish), fields = {} }
189
+ info = { members = M.local_members(r.nodes, scopes, owner, first, scope, finish), fields = {},
190
+ base_import = metatable_import(T, bindings, bound) }
172
191
  owners[key] = info
173
192
  if bound then receiver_tables[bound] = info end
174
193
  end
@@ -519,6 +538,10 @@ end
519
538
 
520
539
  -- Shared query-time receiver resolution for completion and navigation. Reuse
521
540
  -- the parser's lexical bindings and loader contracts; never execute Lua.
541
+ local function module_target(G, imp, ctx)
542
+ return { modules = M.modules(G, imp, ctx), module_name = imp.path }
543
+ end
544
+
522
545
  function M.member(G, target, name)
523
546
  local result = {}
524
547
  for _, f in ipairs(target and target.modules or {}) do
@@ -550,11 +573,16 @@ function M.receiver(G, rec, T, name, offset, ctx, depth)
550
573
  local files = M.native_modules(G, name, ctx)
551
574
  return #files > 0 and { modules = files, module_name = name } or nil, (T.lua_bindings or {})[name] ~= nil
552
575
  end
553
- if best.self_info then return { lua_self = best.self_info }, true end
576
+ if best.self_info then
577
+ local imp = rec.lua_imports[best.self_info.base_import]
578
+ local target = imp and module_target(G, imp, ctx) or {}
579
+ target.lua_self = best.self_info
580
+ return target, true
581
+ end
554
582
  local imported = tonumber(best.hint:match('^lua:(%d+)$'))
555
583
  if imported then
556
584
  local imp = rec.lua_imports[imported]
557
- return { modules = M.modules(G, imp, ctx), module_name = imp.path }, true
585
+ return module_target(G, imp, ctx), true
558
586
  end
559
587
  local i = best.token + 2
560
588
  if best.imported or T:text(best.token + 1) ~= '=' or T.k[i] ~= 'id' then return nil, true end
@@ -593,8 +621,18 @@ function M.resolve(G, f, name, hint, ctx, recv)
593
621
  if self_index then
594
622
  local rec = G.files[f]
595
623
  local selves = rec.lua_self or ctx and ctx.ordinary and ctx.ordinary.data(f).lua_self or {}
596
- local n = selves[self_index] and selves[self_index].members[name]
597
- return n and { G.id_of[f][n] } or {}
624
+ local info = selves[self_index]
625
+ if not info then return {} end
626
+ local n = info.members[name]
627
+ if n then return { G.id_of[f][n] } end
628
+ local imp = (rec.lua_imports or EMPTY)[info.base_import]
629
+ local result = {}
630
+ if imp and not info.fields[name] then
631
+ for _, entry in ipairs(M.member(G, module_target(G, imp, ctx), name)) do
632
+ result[#result + 1] = G.id_of[entry.file][entry.index]
633
+ end
634
+ end
635
+ return result
598
636
  end
599
637
  local local_index = tonumber(hint:match('^lua%-local:(%d+)$'))
600
638
  if local_index then
@@ -429,10 +429,16 @@ function M.binding(G, f, src, name, ctx, options)
429
429
  if info and info.static or G.nodes[src].static then ids = {} end
430
430
  end
431
431
  if language == 'kotlin' and src and G.nodes[src].receiver then ids = M.types(G, f, G.nodes[src].receiver, ctx) end
432
- if name ~= 'this' then
433
- ids = {}
434
- for _, base in ipairs(cls and G.nodes[cls].bases or {}) do
435
- for _, id in ipairs(M.types(G, f, base, ctx, G.nodes[cls].qualified)) do ids[#ids + 1] = id end
432
+ if name ~= 'this' and #ids > 0 then
433
+ if language == 'csharp' then
434
+ ids = require('codeoutline.analysis.csharp.csharp_bindings').base_classes(G, ids, ctx)
435
+ else
436
+ local node = cls and G.nodes[cls]
437
+ local bases = node and (language == 'java' and node.extends or node.bases)
438
+ ids = {}
439
+ for _, base in ipairs(bases or {}) do
440
+ for _, id in ipairs(M.types(G, f, base, ctx, node.qualified)) do ids[#ids + 1] = id end
441
+ end
436
442
  end
437
443
  end
438
444
  return { kind = 'types', ids = ids, language = language, file = f }
@@ -448,6 +454,7 @@ function M.resolve(G, f, src, name, kind, recv, evidence, ctx, accept, offset)
448
454
  return require('codeoutline.analysis.go.go_modules').resolve(G, f, name, recv, ctx)
449
455
  end
450
456
  if evidence == '?' or evidence == 'py:?' then return nil end
457
+ if language == 'java' and recv == 'super' and evidence == 'jvm:?' then return {}, 'receiver: qualified Java super' end
451
458
  if language == 'lua' and (recv == 'self' or evidence and evidence:match('^lua%-self:')) then
452
459
  local ids = require('codeoutline.analysis.lua.lua_bindings').resolve(G, f, name, evidence, ctx.lua, recv)
453
460
  return ids or {}, 'receiver: Lua lexical binding'
@@ -468,7 +475,7 @@ function M.resolve(G, f, src, name, kind, recv, evidence, ctx, accept, offset)
468
475
  elseif language == 'csharp' then
469
476
  local cls = owner(G, f, src)
470
477
  return require('codeoutline.analysis.csharp.csharp_bindings').members(G, f, target.ids, name, false, ctx,
471
- nil, nil, cls and G.nodes[cls].qualified), 'receiver: C# this binding'
478
+ cls and G.nodes[cls].qualified, recv == 'base'), 'receiver: C# instance binding'
472
479
  elseif language == 'java' or language == 'kotlin' then
473
480
  local ids = {}
474
481
  for _, id in ipairs(target.ids) do
@@ -508,6 +515,11 @@ function M.entries(C, target)
508
515
  out[#out + 1] = { name = name, node = node, kind = node.kind, file = C.f }
509
516
  end
510
517
  for name in pairs(info.fields) do out[#out + 1] = { name = name, kind = 'field' } end
518
+ if target.value.modules then
519
+ for _, entry in ipairs(C:module_members(target.value.modules, target.value.module_name)) do
520
+ if not info.members[entry.name] and not info.fields[entry.name] then out[#out + 1] = entry end
521
+ end
522
+ end
511
523
  return out
512
524
  end
513
525
  if target.kind == 'rust' then
@@ -29,10 +29,10 @@ function M.allowed(site)
29
29
  or site.kind == 'member_call' or site.kind == 'member_symbol'
30
30
  end
31
31
 
32
- function M.find(G, f, site, ctx)
32
+ function M.find(G, f, site, ctx, lua_self)
33
33
  local info = { truncated = site and site.macro_state == 'limited' or false,
34
34
  scanned = 0, reason = 'exact name; binding unconfirmed' }
35
- if not M.allowed(site) then return {}, info end
35
+ if not lua_self and not M.allowed(site) then return {}, info end
36
36
  local language = G.files[f].language
37
37
  -- These languages have package/project visibility that a name-only search
38
38
  -- cannot establish. Their existing resolvers retain authority.
@@ -43,10 +43,12 @@ function M.find(G, f, site, ctx)
43
43
  if site.evidence and site.evidence ~= '' then qualified = site.evidence:match('^cpp:name:(.-)%z') end
44
44
  qualified = qualified and normalized(qualified)
45
45
  if qualified and not qualified:find('.', 1, true) then qualified = nil end
46
- if site.recv then
47
- if site.recv == 'self' or site.recv == 'this' or site.recv == 'cls' then return {}, info end
48
- qualified = qualified or normalized(site.recv .. '.' .. site.name)
49
- elseif site.kind == 'member_call' or site.kind == 'member_symbol' then return {}, info end
46
+ if not lua_self then
47
+ if site.recv then
48
+ if site.recv == 'self' or site.recv == 'this' or site.recv == 'cls' then return {}, info end
49
+ qualified = qualified or normalized(site.recv .. '.' .. site.name)
50
+ elseif site.kind == 'member_call' or site.kind == 'member_symbol' then return {}, info end
51
+ end
50
52
  local list, hits, macro_hits = G.by_name[site.name] or {}, {}, {}
51
53
  local source_dir = G.files[f].path:match('^(.*)/') or ''
52
54
  for i = 1, math.min(#list, M.MAX_SCAN) do
@@ -79,7 +81,11 @@ function M.find(G, f, site, ctx)
79
81
  end
80
82
  -- No call sites, private locals, nested functions or unrelated class methods.
81
83
  -- Even same-file locals require lexical evidence from the strict resolver.
82
- if kind and name_matches and graph.family(rec.language) == graph.family(language)
84
+ -- A lexical self can inherit through runtime metatables. The editor
85
+ -- can offer method definition tags even without a receiver binding.
86
+ local lua_method = lua_self and rec.language == 'lua' and node.name == site.name and not parent
87
+ and not graph.is_decl(node) and (node.kind == 'method' or node.kind == 'function' and graph.owner(node.qualified))
88
+ if lua_method or not lua_self and kind and name_matches and graph.family(rec.language) == graph.family(language)
83
89
  and (not node['local'] or published) and not (node.static and g ~= f)
84
90
  and (not parent or parent.kind == 'namespace' or qualified and (types[parent.kind]))
85
91
  and (qualified or node.kind ~= 'method' and node.kind ~= 'constructor') then
@@ -1269,14 +1269,16 @@ function handlers.lsp_definition(req)
1269
1269
  end
1270
1270
  -- Selecting a loader's member asks for that value, not the imported file.
1271
1271
  if #targets == 0 and c and type(c.evidence) == 'string' and c.evidence:match('^lua%-value:') then return {} end
1272
+ local lua_self = c and c.recv == 'self' and V.files[f].language == 'lua'
1273
+ and (c.kind == 'member_call' or c.kind == 'member_symbol')
1272
1274
  local importer = false
1273
- if c and not c.decl then
1275
+ if c and not c.decl and not lua_self then
1274
1276
  -- `require`/`dofile` themselves name the file they load, not a same-named project function.
1275
1277
  for _, imp in ipairs(V.files[f].imports or {}) do
1276
1278
  if imp.line == line and imp.kind == c.name then importer = true end
1277
1279
  end
1278
1280
  end
1279
- if #targets == 0 or importer then
1281
+ if (#targets == 0 and not lua_self) or importer then
1280
1282
  -- An import line: `require "a.b"`, `dofile("x.lua")`, `#include <x.h>`, `from . import m`.
1281
1283
  local files = import_targets(V, f, line)
1282
1284
  if #files > 0 or importer then
@@ -1295,7 +1297,8 @@ function handlers.lsp_definition(req)
1295
1297
  return result, info.truncated
1296
1298
  end
1297
1299
  end
1298
- local ids, info = require('codeoutline.query.definition_candidates').find(V, f, c, V.js_context)
1300
+ local self_fallback = lua_self and c.evidence and c.evidence:match('^lua%-self:%d+$')
1301
+ local ids, info = require('codeoutline.query.definition_candidates').find(V, f, c, V.js_context, self_fallback)
1299
1302
  local result, seen, bytes, started = {}, {}, 0, os.clock()
1300
1303
  local count = 0
1301
1304
  for _, id in ipairs(ids) do
@@ -1340,6 +1343,115 @@ local function external_signature(entry)
1340
1343
  return label
1341
1344
  end
1342
1345
 
1346
+ -- Read adjacent comments from the validated definition source or its draft.
1347
+ local function leading_comments(doc, hit, language)
1348
+ local line = doc:position(hit.start_byte).line + 1
1349
+ local prefix = doc.source:sub(doc.lines[line] + 1, hit.start_byte)
1350
+ local c_style = language ~= 'lua' and language ~= 'python'
1351
+ local marker = c_style and '//[/!]?' or language == 'lua' and '%-%-%-?' or '#'
1352
+ local comments = {}
1353
+ local in_block = false
1354
+ if prefix:find('%S') then
1355
+ local inline = c_style and prefix:match('^%s*/%*%*?(.-)%*/%s*$')
1356
+ if not inline or inline:find('*/', 1, true) or (language == 'rust' and prefix:match('^%s*/%*!')) then return comments end
1357
+ comments[1] = inline:match('^%s*(.-)%s*$')
1358
+ end
1359
+ for i = line - 1, math.max(1, line - 40), -1 do
1360
+ if doc.lines[line] - doc.lines[i] > 8192 then break end
1361
+ local text = doc.source:sub(doc.lines[i] + 1, doc.lines[i + 1]):match('^%s*(.-)%s*$')
1362
+ if (language == 'rust' and (text:match('^//!') or text:match('^/%*!')))
1363
+ or (language == 'python' and text:match('^#!')) then break end
1364
+ local comment = not in_block and text:match('^' .. marker .. '[ \t]*(.*)$')
1365
+ if comment then
1366
+ if language == 'lua' and (comment:match('^%[=*%[') or comment:match('^%]=*%]')) then break end
1367
+ comments[#comments + 1] = comment
1368
+ elseif c_style and (in_block or text:sub(-2) == '*/') then
1369
+ if not in_block then
1370
+ text = text:sub(1, -3)
1371
+ in_block = #comments + 1
1372
+ end
1373
+ if text:find('*/', 1, true) then break end
1374
+ local opening = text:match('^/%*[%*!]?(.*)$')
1375
+ comment = (opening or text:gsub('^%*', '')):match('^%s*(.-)%s*$')
1376
+ if comment ~= '' or not opening then comments[#comments + 1] = comment end
1377
+ if opening then in_block = false end
1378
+ else
1379
+ break
1380
+ end
1381
+ end
1382
+ if in_block then for i = #comments, in_block, -1 do comments[i] = nil end end
1383
+ return comments
1384
+ end
1385
+
1386
+ local function python_docstring(V, f, hit)
1387
+ local _, T = M.full(V, f)
1388
+ if not T then return nil end
1389
+ local lo, hi = 1, T.n
1390
+ while lo < hi do
1391
+ local mid = math.floor((lo + hi) / 2)
1392
+ if T.s[mid] <= hit.name_start then lo = mid + 1 else hi = mid end
1393
+ end
1394
+ if T.s[lo] ~= hit.name_start + 1 then return nil end
1395
+ local i = lo + 1
1396
+ while T.s[i] and T.s[i] - 1 < math.min(hit.end_byte, hit.name_start + 8192) and T.k[i] ~= 'nl' do
1397
+ if T:text(i) == ':' then break end
1398
+ i = (T.m[i] and T.m[i] > i) and T.m[i] + 1 or i + 1
1399
+ end
1400
+ if T:text(i) ~= ':' then return nil end
1401
+ i = i + 1
1402
+ while T.k[i] == 'nl' or T.k[i] == 'indent' do i = i + 1 end
1403
+ if T.k[i] ~= 'str' or T.e[i] > hit.end_byte or T.e[i] - T.s[i] > 8192
1404
+ or (T.k[i + 1] and T.k[i + 1] ~= 'nl' and T.k[i + 1] ~= 'dedent' and T:text(i + 1) ~= ';') then return nil end
1405
+ local literal = T:text(i):gsub('^[rRuU]', '')
1406
+ local quote = literal:match('^"""') or literal:match("^'''") or literal:match('^["\']')
1407
+ if not quote or #literal < 2 * #quote or literal:sub(-#quote) ~= quote then return nil end
1408
+ local value = literal:sub(#quote + 1, -#quote - 1):gsub('\r\n?', '\n')
1409
+ local margin
1410
+ for indent in value:gmatch('\n([ \t]*)%S') do margin = math.min(margin or #indent, #indent) end
1411
+ if margin and margin > 0 then value = value:gsub('\n[ \t]+', function(indent) return '\n' .. indent:sub(margin + 2) end) end
1412
+ return value:match('^%s*(.-)%s*$')
1413
+ end
1414
+
1415
+ local function definition_documentation(V, id)
1416
+ local node, f = V.nodes[id], V.node_file[id]
1417
+ local record = V.files[f]
1418
+ if not REFERENCE[node.kind] or (not V.drafts[f] and (record.size or 0) > M.MAX_FILE_BYTES) then return nil end
1419
+ local doc, hit = locate(V, id)
1420
+ if not hit then return nil end
1421
+ local language = record.language
1422
+ if language == 'python' then
1423
+ local value = python_docstring(V, f, hit)
1424
+ if value and value ~= '' then return { kind = 'markdown', value = value } end
1425
+ end
1426
+ local comments = leading_comments(doc, hit, language)
1427
+ local prose, annotations = {}, {}
1428
+ for i = #comments, 1, -1 do
1429
+ local comment = comments[i]
1430
+ if comment:match('^[@\\]%a+[%s:]') then
1431
+ annotations[#annotations + 1] = language == 'lua' and '---' .. comment or comment
1432
+ else
1433
+ prose[#prose + 1] = comment
1434
+ end
1435
+ end
1436
+ local value = table.concat(prose, ' \n'):match('^%s*(.-)%s*$')
1437
+ if language == 'csharp' then
1438
+ value = value:gsub('<param%s+name="([%w_]+)">', '**Parameter `%1`** ')
1439
+ :gsub('<typeparam%s+name="([%w_]+)">', '**Type parameter `%1`** ')
1440
+ :gsub('<paramref%s+name="([%w_]+)"%s*/>', '`%1`')
1441
+ :gsub('<see%s+cref="([^"\r\n]+)"%s*/>', '`%1`')
1442
+ :gsub('<returns>', '**Returns** '):gsub('<value>', '**Value** ')
1443
+ for _, tag in ipairs({ 'summary', 'remarks', 'param', 'typeparam', 'returns', 'value' }) do
1444
+ value = value:gsub('</?' .. tag .. '>', '')
1445
+ end
1446
+ value = value:match('^%s*(.-)%s*$')
1447
+ end
1448
+ if #annotations > 0 then
1449
+ local fence = language == 'lua' and '```lua\n' or '```text\n'
1450
+ value = value .. (value ~= '' and '\n\n' or '') .. fence .. table.concat(annotations, '\n') .. '\n```'
1451
+ end
1452
+ if value ~= '' then return { kind = 'markdown', value = value } end
1453
+ end
1454
+
1343
1455
  -- Follow unmatched delimiters up to the cursor. Commas in nested calls,
1344
1456
  -- literals and indexing expressions do not advance the enclosing argument.
1345
1457
  function handlers.lsp_signature(req)
@@ -1401,9 +1513,10 @@ function handlers.lsp_signature(req)
1401
1513
  local V, _, c, targets, f = at(query)
1402
1514
  if not V or not c or c.decl then return false end
1403
1515
  local signatures, seen = {}, {}
1404
- local function add_signature(node, label, uri, foreign)
1516
+ local function add_signature(node, label, uri, foreign, id)
1405
1517
  if foreign and not seen[foreign.label] then
1406
1518
  foreign.activeParameter = #foreign.parameters > 0 and math.min(call.argument, #foreign.parameters - 1) or nil
1519
+ foreign.documentation = id and definition_documentation(V, id) or foreign.documentation
1407
1520
  signatures[#signatures + 1] = foreign
1408
1521
  seen[foreign.label] = true
1409
1522
  elseif not foreign and REFERENCE[node.kind] and label and not seen[label] then
@@ -1430,6 +1543,7 @@ function handlers.lsp_signature(req)
1430
1543
  i = i + 1
1431
1544
  end
1432
1545
  signatures[#signatures + 1] = { label = label, parameters = parameters,
1546
+ documentation = id and definition_documentation(V, id),
1433
1547
  activeParameter = #parameters > 0 and math.min(call.argument, #parameters - 1) or nil }
1434
1548
  seen[label] = true
1435
1549
  end
@@ -1438,7 +1552,7 @@ function handlers.lsp_signature(req)
1438
1552
  for _, id in ipairs(targets) do
1439
1553
  local node = V.nodes[id]
1440
1554
  add_signature(node, M.detail(V, V.node_file[id], node).sig, uri_of(V, V.node_file[id]),
1441
- require('codeoutline.analysis.foreign').signature(node, doc:parse().language, T:text(name_token)))
1555
+ require('codeoutline.analysis.foreign').signature(node, language, T:text(name_token)), id)
1442
1556
  end
1443
1557
  if #targets == 0 and C_FAMILY[doc:parse().language] then
1444
1558
  -- Share definition lookup's bounded, source-validated external-header
@@ -1463,6 +1577,8 @@ function handlers.lsp_hover(req)
1463
1577
  local foreign = require('codeoutline.analysis.foreign').signature(node, doc:parse().language, doc.source:sub(c.first + 1, c.last))
1464
1578
  parts[#parts + 1] = '```' .. (foreign and doc:parse().language or rec.language or '') .. '\n'
1465
1579
  .. (foreign and foreign.label or M.detail(V, V.node_file[id], node).sig or node.qualified) .. '\n```'
1580
+ local documentation = definition_documentation(V, id)
1581
+ if documentation then parts[#parts + 1] = documentation.value end
1466
1582
  parts[#parts + 1] = node.kind .. ' `' .. node.qualified .. '` — ' .. rec.path .. ':' .. node.line
1467
1583
  end
1468
1584
  return { contents = { kind = 'markdown', value = table.concat(parts, '\n\n') }, range = doc:range(c.first, c.last) }
@@ -1 +1 @@
1
- return 25
1
+ return 26
@@ -1 +1 @@
1
- return '0.3.6'
1
+ return '0.3.7'