@codua/codeoutline-win32-x64 0.3.3 → 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/README.md +13 -1
- package/README.zh-CN.md +11 -1
- package/bin/xnet.exe +0 -0
- package/build-info.json +1 -1
- package/editors/codeoutline.vsix +0 -0
- package/editors/zed/extension.wasm +0 -0
- package/package.json +1 -1
- package/scripts/codeoutline/{automatic_events.lua → analysis/automatic_events.lua} +4 -4
- package/scripts/codeoutline/{cpp_bindings.lua → analysis/cpp/cpp_bindings.lua} +7 -7
- package/scripts/codeoutline/{cpp_implementations.lua → analysis/cpp/cpp_implementations.lua} +3 -3
- package/scripts/codeoutline/{cpp_includes.lua → analysis/cpp/cpp_includes.lua} +3 -3
- package/scripts/codeoutline/{cpp_macros.lua → analysis/cpp/cpp_macros.lua} +3 -3
- package/scripts/codeoutline/{cpp_receivers.lua → analysis/cpp/cpp_receivers.lua} +7 -7
- package/scripts/codeoutline/{cpp_types.lua → analysis/cpp/cpp_types.lua} +5 -5
- package/scripts/codeoutline/{csharp_bindings.lua → analysis/csharp/csharp_bindings.lua} +78 -41
- package/scripts/codeoutline/{dispatch_aliases.lua → analysis/dispatch_aliases.lua} +3 -3
- package/scripts/codeoutline/{foreign.lua → analysis/foreign.lua} +2 -2
- package/scripts/codeoutline/{function_values.lua → analysis/function_values.lua} +2 -2
- package/scripts/codeoutline/analysis/go/go_frameworks.lua +327 -0
- package/scripts/codeoutline/{go_methods.lua → analysis/go/go_methods.lua} +2 -2
- package/scripts/codeoutline/{go_modules.lua → analysis/go/go_modules.lua} +2 -2
- package/scripts/codeoutline/{graph.lua → analysis/graph.lua} +53 -47
- package/scripts/codeoutline/{implementations.lua → analysis/implementations.lua} +18 -9
- package/scripts/codeoutline/{indirect.lua → analysis/indirect.lua} +71 -13
- package/scripts/codeoutline/{js_evidence.lua → analysis/js/js_evidence.lua} +4 -3
- package/scripts/codeoutline/{js_resolution.lua → analysis/js/js_resolution.lua} +2 -2
- package/scripts/codeoutline/{js_workspace.lua → analysis/js/js_workspace.lua} +2 -2
- package/scripts/codeoutline/{ts_implementations.lua → analysis/js/ts_implementations.lua} +3 -3
- package/scripts/codeoutline/{foreign_lua.lua → analysis/lua/foreign_lua.lua} +3 -3
- package/scripts/codeoutline/{lua_bindings.lua → analysis/lua/lua_bindings.lua} +136 -12
- package/scripts/codeoutline/{lua_callback_loops.lua → analysis/lua/lua_callback_loops.lua} +1 -1
- package/scripts/codeoutline/{ordinary_bindings.lua → analysis/ordinary_bindings.lua} +45 -21
- package/scripts/codeoutline/{python_bindings.lua → analysis/python/python_bindings.lua} +2 -2
- package/scripts/codeoutline/analysis/receivers.lua +559 -0
- package/scripts/codeoutline/{rust_packages.lua → analysis/rust/rust_packages.lua} +2 -2
- package/scripts/codeoutline/analysis/rust/rust_resolution.lua +609 -0
- package/scripts/codeoutline/{shared_events.lua → analysis/shared_events.lua} +3 -3
- package/scripts/codeoutline/{static_dispatch.lua → analysis/static_dispatch.lua} +5 -5
- package/scripts/codeoutline/{type_uses.lua → analysis/type_uses.lua} +1 -1
- package/scripts/codeoutline/cli.lua +1 -1
- package/scripts/codeoutline/command.lua +10 -8
- package/scripts/codeoutline/{cpp_fragments.lua → indexing/cpp_fragments.lua} +4 -4
- package/scripts/codeoutline/{index.lua → indexing/index.lua} +12 -12
- package/scripts/codeoutline/{parse_pool.lua → indexing/parse_pool.lua} +1 -1
- package/scripts/codeoutline/{agent_config.lua → install/agent_config.lua} +21 -1
- package/scripts/codeoutline/{agent_install.lua → install/agent_install.lua} +2 -2
- package/scripts/codeoutline/{editor_install.lua → install/editor_install.lua} +34 -6
- package/scripts/codeoutline/lang/c.lua +2 -2
- package/scripts/codeoutline/lang/cpp.lua +2 -2
- package/scripts/codeoutline/lang/csharp.lua +2 -2
- package/scripts/codeoutline/lang/go.lua +2 -2
- package/scripts/codeoutline/lang/java.lua +2 -2
- package/scripts/codeoutline/lang/js.lua +2 -2
- package/scripts/codeoutline/lang/kotlin.lua +4 -2
- package/scripts/codeoutline/lang/lua.lua +3 -3
- package/scripts/codeoutline/lang/python.lua +2 -2
- package/scripts/codeoutline/lang/rust.lua +3 -3
- package/scripts/codeoutline/main.lua +9 -9
- package/scripts/codeoutline/{common.lua → parsing/common.lua} +22 -17
- package/scripts/codeoutline/{language_detect.lua → parsing/language_detect.lua} +1 -1
- package/scripts/codeoutline/{parse.lua → parsing/parse.lua} +4 -4
- package/scripts/codeoutline/{http.lua → protocol/http.lua} +1 -1
- package/scripts/codeoutline/{lsp.lua → protocol/lsp.lua} +4 -4
- package/scripts/codeoutline/{mcp.lua → protocol/mcp.lua} +9 -9
- package/scripts/codeoutline/{affected.lua → query/affected.lua} +6 -6
- package/scripts/codeoutline/{callers.lua → query/callers.lua} +9 -9
- package/scripts/codeoutline/{completion.lua → query/completion.lua} +37 -49
- package/scripts/codeoutline/{definition_candidates.lua → query/definition_candidates.lua} +19 -13
- package/scripts/codeoutline/{documents.lua → query/documents.lua} +4 -4
- package/scripts/codeoutline/{explore.lua → query/explore.lua} +85 -25
- package/scripts/codeoutline/{external_headers.lua → query/external_headers.lua} +6 -6
- package/scripts/codeoutline/{navigation.lua → query/navigation.lua} +172 -57
- package/scripts/codeoutline/{on_demand.lua → query/on_demand.lua} +6 -6
- package/scripts/codeoutline/{query_report.lua → query/query_report.lua} +9 -5
- package/scripts/codeoutline/{search_ranking.lua → query/search_ranking.lua} +10 -7
- package/scripts/codeoutline/{type_hierarchy.lua → query/type_hierarchy.lua} +11 -11
- package/scripts/codeoutline/{type_references.lua → query/type_references.lua} +17 -17
- package/scripts/codeoutline/{index_worker.lua → runtime/index_worker.lua} +10 -10
- package/scripts/codeoutline/{parse_worker.lua → runtime/parse_worker.lua} +2 -2
- package/scripts/codeoutline/{update_worker.lua → runtime/update_worker.lua} +1 -1
- package/scripts/codeoutline/service.lua +11 -11
- package/scripts/codeoutline/update_sequence.lua +1 -1
- package/scripts/codeoutline/version.lua +1 -1
- package/scripts/codeoutline/rust_resolution.lua +0 -301
- /package/scripts/codeoutline/{lua_literal.lua → analysis/lua/lua_literal.lua} +0 -0
- /package/scripts/codeoutline/{resolution.lua → analysis/resolution.lua} +0 -0
- /package/scripts/codeoutline/{cargo_toml.lua → analysis/rust/cargo_toml.lua} +0 -0
- /package/scripts/codeoutline/{type_bases.lua → analysis/type_bases.lua} +0 -0
- /package/scripts/codeoutline/{cache_repairs.lua → indexing/cache_repairs.lua} +0 -0
- /package/scripts/codeoutline/{daemon.lua → install/daemon.lua} +0 -0
- /package/scripts/codeoutline/{install_prompt.lua → install/install_prompt.lua} +0 -0
- /package/scripts/codeoutline/{xscan.lua → parsing/xscan.lua} +0 -0
- /package/scripts/codeoutline/{lsp_trace.lua → protocol/lsp_trace.lua} +0 -0
- /package/scripts/codeoutline/{coverage.lua → query/coverage.lua} +0 -0
- /package/scripts/codeoutline/{query_filters.lua → query/query_filters.lua} +0 -0
- /package/scripts/codeoutline/{idle_gc.lua → runtime/idle_gc.lua} +0 -0
- /package/scripts/codeoutline/{control.lua → shared/control.lua} +0 -0
- /package/scripts/codeoutline/{path.lua → shared/path.lua} +0 -0
- /package/scripts/codeoutline/{rules.lua → shared/rules.lua} +0 -0
- /package/scripts/codeoutline/{text.lua → shared/text.lua} +0 -0
package/README.md
CHANGED
|
@@ -157,9 +157,11 @@ For separate cleanup and package removal, first run `codeoutline uninstall`, the
|
|
|
157
157
|
The first command stops the service, removes its login entry, user-level Agent MCP
|
|
158
158
|
entries and the VS Code/Cursor/Zed clients. Use `--purge` to also remove
|
|
159
159
|
`~/.codeoutline` caches, updates and logs, or `--service-only` to keep integrations.
|
|
160
|
+
Cleanup also removes `codeoutline.*` settings from VS Code/Cursor user settings
|
|
161
|
+
and named profiles, including language overrides, preserving other settings and comments.
|
|
160
162
|
Use `--project PATH` to also remove MCP registrations in a specific project.
|
|
161
163
|
Close/reload editors to release running LSP processes before deleting package files.
|
|
162
|
-
|
|
164
|
+
Workspace settings, custom editor data directories, remote installations and original
|
|
163
165
|
configuration backups require separate cleanup. npm 7+ has no uninstall hooks;
|
|
164
166
|
running only `npm uninstall` cannot clean integrations or stop the service.
|
|
165
167
|
The package includes a best-effort `preuninstall` compatibility hook for package
|
|
@@ -235,6 +237,16 @@ On Linux, decoding GBK sources needs the GBK module of the system iconv. Minimal
|
|
|
235
237
|
|
|
236
238
|
C, C++, C#, Go, Java, JavaScript / TypeScript (including JSX/TSX), ArkTS (`.ets`), Kotlin (`.kt` / `.kts`), Lua, Python, and Rust.
|
|
237
239
|
|
|
240
|
+
Receiver lookup shares one query-time entry point across call relationships,
|
|
241
|
+
navigation and completion, with language-specific binding and member rules.
|
|
242
|
+
It distinguishes Lua method receivers, Python parameters and rebinding, JS/TS/ArkTS
|
|
243
|
+
lexical arrow `this` and dynamic function `this`, Kotlin extension/scope receivers,
|
|
244
|
+
Rust `self`/`Self`, and declared receivers in C/C++, C#, Java and Go. Ordinary
|
|
245
|
+
variables named `self` or `cls` retain their declared types. Detailed bindings stay
|
|
246
|
+
in bounded, source-validated memory caches; unknown receivers do not become
|
|
247
|
+
same-name method guesses. Runtime monkey-patching, arbitrary dynamic calls and
|
|
248
|
+
unproven generic constraints remain outside this static analysis.
|
|
249
|
+
|
|
238
250
|
ArkTS reuses the JS/TS parser: component `struct` declarations are indexed as classes,
|
|
239
251
|
with decorated fields, methods, local module imports and ArkUI calls. Declarative UI
|
|
240
252
|
blocks remain calls rather than method declarations. This is heuristic indexing, not
|
package/README.zh-CN.md
CHANGED
|
@@ -128,11 +128,13 @@ npm 全局安装可直接运行 `codeoutline remove`:先清理集成和默认
|
|
|
128
128
|
|
|
129
129
|
如需分步操作,先运行 `codeoutline uninstall`,再运行 `npm uninstall -g codeoutline`。
|
|
130
130
|
第一步停止服务、移除自启动项、用户级 Agent MCP 配置及 VS Code/Cursor/Zed 客户端。
|
|
131
|
+
同时清理 VS Code/Cursor 用户设置及命名配置档中的 `codeoutline.*` 配置,
|
|
132
|
+
包括语言专属设置,保留其他设置和注释。
|
|
131
133
|
添加 `--purge` 同时清理 `~/.codeoutline` 下的缓存、更新和日志;
|
|
132
134
|
使用 `--service-only` 则仅移除服务,保留集成。
|
|
133
135
|
添加 `--project PATH` 可同时移除指定项目的 MCP 注册。
|
|
134
136
|
删除包文件前请关闭或重载编辑器,以释放运行中的 LSP 进程。
|
|
135
|
-
|
|
137
|
+
工作区设置、编辑器自定义数据目录、远程安装和原始配置备份需单独清理。
|
|
136
138
|
npm 7+ 不执行卸载钩子,仅运行 `npm uninstall` 不会清理集成或停止服务。
|
|
137
139
|
发布包仍提供 `preuninstall` 兼容钩子,供支持它的包管理器调用;
|
|
138
140
|
仅在全局卸载时尝试清理集成,保留用户数据,并跳过升级及本地安装流程。
|
|
@@ -203,6 +205,14 @@ Linux 上解码 GBK 源码需要系统 iconv 的 GBK 模块;EL8/EL9 最小安
|
|
|
203
205
|
|
|
204
206
|
C、C++、C#、Go、Java、JavaScript / TypeScript(含 JSX/TSX)、ArkTS(`.ets`)、Kotlin(`.kt` / `.kts`)、Lua、Python、Rust。
|
|
205
207
|
|
|
208
|
+
调用关系、导航与补全共用查询期接收者入口,由各语言提供绑定和成员查找规则。
|
|
209
|
+
支持 Lua 方法接收者、Python 参数及重新赋值、JS/TS/ArkTS 箭头函数的词法 `this`
|
|
210
|
+
与普通函数的动态 `this`、Kotlin 扩展和作用域接收者、Rust `self`/`Self`,并复用
|
|
211
|
+
C/C++、C#、Java 和 Go 的声明类型解析。普通变量即使命名为 `self` 或 `cls`,
|
|
212
|
+
也按其声明类型处理。详细绑定仅保留在有容量限制、经源码校验的内存缓存中;
|
|
213
|
+
未知接收者不会退回同名方法猜测。运行时修改成员、任意动态调用和无法证明的泛型约束
|
|
214
|
+
仍超出静态分析范围。
|
|
215
|
+
|
|
206
216
|
ArkTS 复用 JS/TS 解析器,将组件 `struct` 按类索引,支持带装饰器的字段、方法、
|
|
207
217
|
本地模块导入和 ArkUI 调用;声明式 UI 块不会被当作方法声明。
|
|
208
218
|
这是启发式索引,不执行 ArkTS 类型检查;尚不解析 SDK `@kit.*`/`@ohos.*`、资源引用,
|
package/bin/xnet.exe
CHANGED
|
Binary file
|
package/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"updateSequence":22,"runtimeCommit":"be18042e9091379bf45624771a4e8819d2709f84","runtimeBuild":"b9b847244c68283df56e7858fe3daaafd35b756f0ff67cfa379f998133ddf29d","lua":"LuaJIT 2.1.1774896198","sourceCommit":"c94715914e9376877b4d67ecfca98427294ea272","sourceDirty":false,"releaseReady":true,"note":"Release build from a clean checkout","target":"win32-x64","version":"0.3.3","sha256":{"licenses/xnet2lua.txt":"1aa8af3df70f60f1ebf2d23e14c27af1606057ad9c32a9a0d15fd76cff257532","scripts/xupgate/client.lua":"88d8ccdd54282257d233af714fad22abc7af4b9ad65882f58330cc8814461985","scripts/codeoutline/ordinary_bindings.lua":"9c0d05619262882b448abe7fb0ad4da652a287cbfbac220d5ec152278b9acced","editors/codeoutline.vsix":"90a61f8799d48b5c9394162bd80fc7a9cd3ef3ee520fffc0c4080717f4cccda6","scripts/codeoutline/foreign.lua":"fef5c377dc89bafa45f8d74976488213b270465c62095db53b0d7582a4b704f8","licenses/luajit.txt":"1b10a02c9474cb908da2d87bc908edd8798f9ad28d9a8c53fbd05c13227f7394","scripts/codeoutline/parse.lua":"490e8c4a208c6eaacb0f1db80e7d0b95cc5f54c9c00fcbfd90934e466a598fe9","scripts/codeoutline/lang/c.lua":"2b0efa1ab8a162cdafa293b1f51ded5c528705cea2e2d6c93647498ba0e250b1","scripts/codeoutline/foreign_lua.lua":"03640aa84ba2ba628a5b0d8a7f66285fe308107fdd196862164d29d7e4129660","scripts/codeoutline/agent_install.lua":"28827c4fcf91b179bd7c8e0f34ff2565b06abfac62480cedfb5419bbfb2a1462","scripts/codeoutline/parse_pool.lua":"4dd16132fa0ac96bd1abda33d1be237d8139095b31addfb81094df8c5e69b92f","scripts/xupgate/http_client.lua":"e910132b82779969926f959fc876da4aa4807559f91d1d01d32b263f1784e01d","scripts/codeoutline/lang/cpp.lua":"a159d1d306cf30d39258ea05452fbdf36759d42498ba16a852b03a0f3005cc60","editors/zed/extension.wasm":"d8aac62200ecdf0dccc725f03a6ca70dd9893dbcbfbc566d1442927960df0f70","scripts/codeoutline/common.lua":"7647faecf2d37b7836d9fc6b1f75146d29f1d63ba9182685c19c1f19e33373d9","scripts/codeoutline/function_values.lua":"63dec69e905545217afdcfd4a073b92e0956b39fd34b8d2808db1043256eb8e1","scripts/codeoutline/parse_worker.lua":"c8099bca90f0ce5069257d72065f2c61089526bedfe89e341f610e5c3f5320c0","scripts/codeoutline/lang/csharp.lua":"5adffb1d563323d6aeae5339b1f3b8d33b07bc99a66e24c710aaa6b5983825f6","codeoutline.cmd":"52ee46a6010ff1161369e50df76e96beed2d6152f8c8e5095f73bc0b60a7629b","scripts/codeoutline/completion.lua":"e8783edab01d5261db727a2abbf0fae2c73daacfd80b9404aa245196971ec760","scripts/codeoutline/cache_repairs.lua":"7e31a6118c3e991382ae2751a8b1d4913bcbf4e24d35f56253f46e156e8420a5","scripts/codeoutline/path.lua":"407bd960c1ad04e5006b321ce33263393bb40eee5dee5c123be9b36d3ad10937","scripts/codeoutline/lang/go.lua":"3a62d4dc451b0d2f7f2aefd5e77d11449a5d725f59379728eba8dda0aacc13f3","scripts/codeoutline/control.lua":"b67a2e382e021f0793ef313aa4e71faab76f6cb77ca127f499d01ae96f36a8db","scripts/codeoutline/callers.lua":"a822bc0dcad44b5fdf263d5a988a68259a1db6159eaf4c2152236e5670c27b4f","scripts/codeoutline/python_bindings.lua":"d54cb346d1814af0e8b85b98d6f92faf8a6c2eadf02127764b2554f74c03c940","scripts/codeoutline/lang/java.lua":"0ea34298770cb3431f4bc3521c4d2ecf363d55e768d6cd30b3f11ad05d7e8f0d","scripts/codeoutline/coverage.lua":"3a4a0e5f5ea8b7ea4a0be62c7c1a202153cf0c5c3423f78b100aecbb39513d5e","scripts/codeoutline/cargo_toml.lua":"78f4f8bcf14f8db80bdac9fc2568988372d3cca222f82b34708f5330c00c8771","scripts/codeoutline/query_filters.lua":"dfaac210f8ebf53d0e4515866b0128a77ff77cb0c8d7d558b71a4eaf9f2b32ef","scripts/codeoutline/lang/js.lua":"6bb90ca153fd43ac8ed0777fe6f62a9ab36c740dc19caa8654d7541e0c14b1cf","scripts/codeoutline/cpp_bindings.lua":"7b359807322fca1d6769bd34c58ae914404dc1bcf67decad9ec6519fde25432b","scripts/codeoutline/http.lua":"3d957628ecc9592d57cc68a61e5d4229a71da501eb8fb3aa0bbb5e1cd772adf0","scripts/codeoutline/query_report.lua":"49c92aa2a1b3410e02dba8fd7ba2a11c8b7d02979895faf766501fd5039a57d1","scripts/codeoutline/lang/kotlin.lua":"cefaad1c412cb42ea6b2027ad9f81ad38d8d821f05c1cfde7f89c600d745a708","codeoutline":"1909247ba17be9d0fe14d689ea7c1c955013b5b79f05336e2161b6f161c4c394","scripts/codeoutline/cpp_fragments.lua":"025bc03f9d48eec3d310366d3c58f77871a989a55ba3538a3f0664b3b4c62d7b","scripts/codeoutline/command.lua":"8bb271c1427fb3a32b002e6d9e6cf0086960aeddfa6753bb96d71617a499c22f","scripts/codeoutline/resolution.lua":"ec137a38abfdcb7f366861a123480a3b3125a76acf7399a784f8fb207e833d0b","editors/zed/extension.toml":"2c5e28806d71e03b0c421d35b8a9aa9e1d428038417aebd7bdf3c871b22d93f4","scripts/codeoutline/lang/lua.lua":"f50a169549475d5d71f8af920feeb82797e8f24ccfe0c3f416abc5a32e942713","THIRD_PARTY.md":"a0d596a8600c5244b27c1426a81b4ec7046d213d733ec6b4287a4b1e8db501b5","scripts/codeoutline/cpp_implementations.lua":"c3f59e25512816cf52aad69333f6b3ae882ba8747f6ce74b083f928301316572","scripts/codeoutline/implementations.lua":"cc5ce71c13fdbfd12c03257bd8ca799f981147e5594a5e1f0ed90721e9a09e2b","scripts/codeoutline/rules.lua":"b01402863062435a6d31a4a5a90208319876fdb444a76c75fd0c45ea8ee6fee5","DISTRIBUTION.md":"7f1b6d02bd3fa71a7d02cbd57bebd82fbd930d96c1cb32a5f15764466c88ef12","scripts/codeoutline/lang/python.lua":"1ae8f1658e25220ec4d952c17ed817bfc92d0c45d4585d3dd4716d5585b60cc6","README.zh-CN.md":"cdb2ec51ba1b4c34e494a767b8bf858e36c190b89d61ccc00eadd3f62d357dea","scripts/codeoutline/cpp_includes.lua":"f8bd2016ff040b7f8bd8a3f844baa4fbf0fcc850eb3b1c33b106696c4be92a5d","scripts/codeoutline/index.lua":"490f6a91210d58cc81b822b2a8786aed776553b9382948b627f41a288dcebdf6","scripts/codeoutline/rust_packages.lua":"a0cca64e8f3fe37364655158c0f7f5e40ada2a1d1864e3e9f4b1e9d91b88eeef","README.md":"95baee9bda99c92b9fe12d5c9c2c6af6c19f754dd78f9b7bebad01e380bc50a6","scripts/codeoutline/lang/rust.lua":"c7c3ae20ef9b4e1ce1466c6f36c3507f760995e58bede2c9b06f0f68e33d7308","scripts/xupgate/common.lua":"e449f64c92e4ef46d0c9f4c815aacb38866392cbc3502544d3a1985f9dc4f978","scripts/codeoutline/cpp_macros.lua":"41dbcc249d184c2f36be3c3b009a6c6347f7fafd4197e45ceafd3ad7a06af55c","scripts/codeoutline/index_worker.lua":"c7eaa1d7c52d29c9fbdbd03ffeb88f74bc6c7d99a67a0eab43d83bb4f9d9c21e","scripts/codeoutline/rust_resolution.lua":"90be2ef14a7c1de357baae026d819f0053cae8eb475947d779ba519461e3c265","scripts/xupgate/proxy.lua":"5bf532e7005f44555d6a5277336e5ad395af060585c13a1cdc2441de50e0dcff","scripts/codeoutline/language_detect.lua":"87fb472a0a4c29ce6e838354480f59646af33c6d21771e9d3650a4a3d8cf9e0f","LICENSE":"1b63179362acd482b4a9a07ca526b3fce6d9103dcded361de2159ade174568b6","scripts/codeoutline/affected.lua":"4fafc905d93c6006519f230bfb874c0477a68c32357a75ae36c8a80c2e48f172","scripts/codeoutline/indirect.lua":"3bd5086427d0adb22b53f89a24031bfbfe3a18b0f2b4d41b4e1e03279695b7f7","scripts/codeoutline/search_ranking.lua":"2ea52d55e55f7de757cfb998f77eaa713ca19c5318b8d8470772c914fad9cb10","licenses/libdeflate.txt":"41b60f2caab6bffdd5ba360687bd23ca653c0a1235c00380ecffc939b4cd8d75","scripts/codeoutline/lsp.lua":"a87e7437f70354e46163b6efff4522699194bee78f046f71abfdfdc557969b66","lib/xhttp_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/cpp_types.lua":"4138c5e2884164b4be35fba1de35e396c4481124ef2f22b4093ba3611ffb012d","scripts/codeoutline/install_prompt.lua":"588c90cd2955756b13a96e1f0d17145a51eda239c9cf179d5eac195532ee9f49","scripts/codeoutline/agent_config.lua":"af2e47265e8934057b2d30d79f0672205089c7c7d4bf3aebca4c657579345b80","keys/update-ca.crt":"d9b5ec3d4628de9c5559871f39841a5f84d47c53ded4d58d6e3bba2b4c669a02","scripts/codeoutline/lsp_trace.lua":"41e6e67866eb6c862cf11337a637a94505f62a29533a9dbd6226d3b801444597","scripts/codeoutline/go_methods.lua":"b59746ee5e28170f790f44226bbc1b732d513b72278b994c96d65966c01126db","scripts/codeoutline/csharp_bindings.lua":"3a237f9a04c4cc2277ebfcbe902bdefecff125ef4a7c8d2d55e8284e916db0ab","scripts/codeoutline/js_evidence.lua":"abb87a3b3ccfc1bb4fcaf771ae91aed5636fec1d73cabeebdec8c7af3227e6b5","scripts/codeoutline/type_uses.lua":"5c6e2b3279cc4345b6ab33986b38d3717fd56fe82c1d36c9da495bcb22183695","scripts/xupgate/signature.lua":"f07de8a4093d08cc69d3c1d8296d23318c5d81344ece788d4453a9b3b700f000","scripts/codeoutline/lua_bindings.lua":"4d3dedd9ad664bbaa516e99119bc8bcc557f918995f83679f0408b2e4b42df9c","licenses/lua-cmsgpack.txt":"8edfdc5282278a1268d8a6ee52f9245f1a5fe3d1c8065be00330196b1de49873","scripts/codeoutline/daemon.lua":"06863991135cc9a85f07bca8310296f0df9e415b3e2de97ae006393e777b009b","scripts/codeoutline/js_resolution.lua":"770326d43d87369ba2ea06300d23bf45a073707aa91d81fff316f010ce1057b2","scripts/codeoutline/updater.lua":"267c4b6e9704fce710f44d1bfceac69c1857e34e064d8444d7890f0e10d921c7","scripts/xupgate/http_codec.lua":"a5b0f127105ba6dbd4a518a214ca55e22c7510e6b2fc8c25c325898d8346ef8c","scripts/codeoutline/lua_callback_loops.lua":"b499abed79b482c577684e537ad9583914a94863fc886302a2baa2213e89481a","licenses/mbedtls.txt":"9b405ef4c89342f5eae1dd828882f931747f71001cfba7d114801039b52ad09b","scripts/codeoutline/definition_candidates.lua":"c3efccb79ae4ce55229e048004f037798db3ca255a1e2efc2ce904468b31372d","scripts/codeoutline/js_workspace.lua":"fe59bfde1d22357432079dfef33f88c63da8e435e13c5ca97d4dc8c3e5638278","scripts/codeoutline/update_sequence.lua":"a198c6b13dc1c857631faec5d34b2c60e2cad2da6c405e4541ab68d84d6adc7e","scripts/codeoutline/service.lua":"ae6d50c7b59d0e844147f187b6becc40d87d052564d9405af61b8cdfa4f6da06","scripts/codeoutline/lua_literal.lua":"5fdd90a872988622337410c7e516d41b789ce4326c4aa6dddcd61998fe5aef90","scripts/codeoutline/text.lua":"56ee63c7b4cc63fe12d8ecd5b99410281463cdba8ca112f484e402ca6dfc5b90","scripts/codeoutline/dispatch_aliases.lua":"0383f3de71ed1774c73c08fdc57e408afbd6b146b9beff96a4c2cf6aefda7000","scripts/codeoutline/type_references.lua":"f737373c7c14cd4c9df7a434991ccd3cb27f32bc8d4b86d93e3b5ffb0248c684","scripts/codeoutline/update_worker.lua":"7e2ec28e4b911d7b90fd97d0a4c0e2f5b295d1a9200c5c7250e47a99139ca550","scripts/codeoutline/type_hierarchy.lua":"ba6c62d162e10a5b251492568a2bbab8cef46cf70a96deacb3e0893ff0e44851","scripts/codeoutline/main.lua":"3ac12632697d9e7559f5a7f754d0d101b6515fbde93f2c67787359b9e802d1d0","scripts/codeoutline/type_bases.lua":"470fdcfffc3ded8bd3c9608db6128539757c91692bc714173dbb1bcdf8344e36","scripts/codeoutline/documents.lua":"618a8d150341442d0c37f3966ea6a856c78bf91ccaedd507ff563b26c7059c4f","scripts/codeoutline/ts_implementations.lua":"b908020c17b68a2ef5a8b41732ce39e487105e90ade366b9d1f708b75257d06e","scripts/codeoutline/version.lua":"01359311870faa129dd5eb99739bb108cf414fd3b393055380f3ad64d7323aae","bin/xnet.exe":"4bad65022857323bb26d860654d140dbe426409b4c05b80e96230b564c4ca8ca","scripts/codeoutline/mcp.lua":"397476810877b39297ea476c555a3c80353a7122e766ca5adc7af5d81cf8a8b6","scripts/codeoutline/static_dispatch.lua":"0c34302427c36cdb15249c047ae238722752040ac3d5e074fd433f278d75062e","scripts/codeoutline/editor_install.lua":"d84aaa8ee32e50966256a9de51f264af2300a2577f50162ce8246180f2458212","scripts/codeoutline/shared_events.lua":"46a3f5780d12daed660138aa0cb769d727ceff9156916ca3c703928f036e5255","scripts/codeoutline/xscan.lua":"bd95a1b0b7022d029a41aab615897502478b5834612505e8d299343cb5ca8ef9","scripts/codeoutline/idle_gc.lua":"2025b037b593b5e19714b6e283c8a0490146e591de795988a543a161277714f1","scripts/codeoutline/navigation.lua":"eae12c00f6251b11515f308fed693b4adae8e6d528e3cc3a9616f49684cfef7c","scripts/codeoutline/automatic_events.lua":"d23e61985bc4ddbfd1d4b6b9c46e9ed815b68476415866390cc59b2dd048c912","scripts/codeoutline/explore.lua":"ef25b9085b73a7db34e2d09f6a3669d3a1ecb9ca51e63ed84aa1ec8162d7af23","scripts/codeoutline/cli.lua":"f7ac4addd32ced58069954cb81edd4836c6043bb5d143683b80bd7b11554c733","keys/update-public.pem":"7ff853339e19631b20ed3fa2cf221daa31c581e2e84d161b344b8f06de6562a8","scripts/codeoutline/graph.lua":"80fe8ec1d9aaaf1858a2590337ddba9f2a4209781c4a9b44967a6055ee6b6b9e","scripts/codeoutline/on_demand.lua":"c8ce74ef29f7fb1fc4973a40e22b994c43310308d7f446dfe42428a96f7b8b9d","scripts/codeoutline/cpp_receivers.lua":"6bafebc87579d8514a0d36492dbbe65e9346688f228062c86d87053dacaa37e3","scripts/codeoutline/external_headers.lua":"158fc3acf2e08651a1f735644b49042d7e4b019f48b996c396572de295e1d54d","scripts/codeoutline/go_modules.lua":"5aafa1c8607edfa12a79ad3c49db677f79e790582cb51d1e796da7783c656c0f"}}
|
|
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"}}
|
package/editors/codeoutline.vsix
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"cpu":["x64","arm64"],"license":"BSD-2-Clause","
|
|
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"}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- Possible Node EventEmitter deliveries, proven to share one local object.
|
|
2
2
|
-- No global event-name matching, execution-order inference or resident graph.
|
|
3
3
|
local M = { MAX_FILES = 128, MAX_SITES = 512, MAX_TARGETS = 64 }
|
|
4
|
-
local control = require('codeoutline.control')
|
|
4
|
+
local control = require('codeoutline.shared.control')
|
|
5
5
|
local registrations = { on = true, once = true, addListener = true }
|
|
6
6
|
local function supported(rec) return rec.language == 'javascript' or rec.language == 'typescript' end
|
|
7
7
|
local function node_events(rec)
|
|
@@ -43,7 +43,7 @@ function M.collect(r, T)
|
|
|
43
43
|
local has_emit = false
|
|
44
44
|
for _, ref in ipairs(r.refs) do if ref.name == 'emit' and ref.recv then has_emit = true; break end end
|
|
45
45
|
if not has_emit then return end
|
|
46
|
-
local expand, binding = require('codeoutline.dispatch_aliases').prepare(r, T)
|
|
46
|
+
local expand, binding = require('codeoutline.analysis.dispatch_aliases').prepare(r, T)
|
|
47
47
|
-- Unrepresented anonymous function scopes cannot safely share outer locals.
|
|
48
48
|
-- Named handlers and variable-bound arrow functions have parser nodes.
|
|
49
49
|
local headers = {}
|
|
@@ -134,9 +134,9 @@ end
|
|
|
134
134
|
|
|
135
135
|
function M.context(G, ctx, report)
|
|
136
136
|
local C = { incomplete = false, stats = { files = 0, sites = 0, links = 0 } }
|
|
137
|
-
local shared = require('codeoutline.shared_events').context(G, ctx, report)
|
|
137
|
+
local shared = require('codeoutline.analysis.shared_events').context(G, ctx, report)
|
|
138
138
|
C.stats.shared = shared.stats
|
|
139
|
-
local cache, js = {}, require('codeoutline.js_resolution')
|
|
139
|
+
local cache, js = {}, require('codeoutline.analysis.js.js_resolution')
|
|
140
140
|
local function data(f)
|
|
141
141
|
if cache[f] then return cache[f] end
|
|
142
142
|
if not M.candidate(G.files[f]) then return {} end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- Bounded declared receiver types. Source evidence is compact; lookup uses the
|
|
2
2
|
-- same symbol tables and include visibility as ordinary graph queries.
|
|
3
3
|
local M = {}
|
|
4
|
-
local control = require('codeoutline.control')
|
|
4
|
+
local control = require('codeoutline.shared.control')
|
|
5
5
|
local types = { class = true, struct = true, union = true }
|
|
6
6
|
local qualifiers = { const = true, volatile = true, static = true, mutable = true, struct = true, class = true }
|
|
7
7
|
local boundary = { [';'] = true, ['{'] = true, ['}'] = true, ['('] = true, [','] = true, [':'] = true }
|
|
@@ -10,7 +10,7 @@ local primitive = { auto = true, int = true, double = true, float = true, char =
|
|
|
10
10
|
|
|
11
11
|
function M.collect(r, T, type_refs)
|
|
12
12
|
if r.language ~= 'cpp' and r.language ~= 'c' then return end
|
|
13
|
-
require('codeoutline.cpp_types').collect(r, T)
|
|
13
|
+
require('codeoutline.analysis.cpp.cpp_types').collect(r, T)
|
|
14
14
|
local refs = r.refs
|
|
15
15
|
if type_refs and #type_refs > 0 then
|
|
16
16
|
refs = {}; for _, ref in ipairs(r.refs) do refs[#refs + 1] = ref end
|
|
@@ -22,7 +22,7 @@ function M.collect(r, T, type_refs)
|
|
|
22
22
|
elseif r.language == 'c' then -- ordinary C call resolution is unchanged
|
|
23
23
|
elseif ref.kind == 'call' or ref.kind == 'ref' or ref.kind == 'member_call' and T:text(ref.tok - 1) == '::' then
|
|
24
24
|
if T:text(ref.tok) == ref.name then
|
|
25
|
-
ref.binding = require('codeoutline.cpp_types').evidence(T, ref.tok)
|
|
25
|
+
ref.binding = require('codeoutline.analysis.cpp.cpp_types').evidence(T, ref.tok)
|
|
26
26
|
r.has_bindings = true
|
|
27
27
|
if ref.kind == 'call' or ref.kind == 'ref' then wanted[ref.name] = true end
|
|
28
28
|
end
|
|
@@ -91,7 +91,7 @@ function M.resolve(G, f, src, name, evidence, deps, ctx, accept)
|
|
|
91
91
|
if written then
|
|
92
92
|
local scope = src and G.nodes[src].qualified
|
|
93
93
|
if src and (G.nodes[src].kind == 'function' or G.nodes[src].kind == 'method') then scope = scope:match('^(.*)::[^:]+$') end
|
|
94
|
-
local ids, known = require('codeoutline.cpp_types').resolve(G, f, written,
|
|
94
|
+
local ids, known = require('codeoutline.analysis.cpp.cpp_types').resolve(G, f, written,
|
|
95
95
|
{ scope = scope, at = tonumber(position), deps = deps, context = ctx, accept = accept, definitions = true })
|
|
96
96
|
return ids, not known and 'unresolved c++ name' or nil
|
|
97
97
|
end
|
|
@@ -100,16 +100,16 @@ function M.resolve(G, f, src, name, evidence, deps, ctx, accept)
|
|
|
100
100
|
local written, at = ty:match('^(.-)%z(%d+)$')
|
|
101
101
|
ty = written or ty
|
|
102
102
|
local function classes(written, scope, file, position)
|
|
103
|
-
return require('codeoutline.cpp_types').resolve(G, file or f, written,
|
|
103
|
+
return require('codeoutline.analysis.cpp.cpp_types').resolve(G, file or f, written,
|
|
104
104
|
{ scope = scope, at = position, deps = deps, context = ctx })
|
|
105
105
|
end
|
|
106
106
|
local scope = src and G.nodes[src].qualified:match('^(.*)::[^:]+$')
|
|
107
107
|
local result, seen, emitted = {}, {}, {}
|
|
108
108
|
local definition_owners = {}
|
|
109
|
-
local configured = require('codeoutline.cpp_includes').policy(G, f, ctx).configured
|
|
109
|
+
local configured = require('codeoutline.analysis.cpp.cpp_includes').policy(G, f, ctx).configured
|
|
110
110
|
local function belongs(id, cls)
|
|
111
111
|
if definition_owners[id] == nil then
|
|
112
|
-
definition_owners[id] = require('codeoutline.cpp_types').owner(G, G.node_file[id], G.nodes[id], ctx) or false
|
|
112
|
+
definition_owners[id] = require('codeoutline.analysis.cpp.cpp_types').owner(G, G.node_file[id], G.nodes[id], ctx) or false
|
|
113
113
|
end
|
|
114
114
|
if definition_owners[id] == cls then return true end
|
|
115
115
|
-- Keep legacy class-outside hints when there is no configured policy
|
package/scripts/codeoutline/{cpp_implementations.lua → analysis/cpp/cpp_implementations.lua}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- C++ override evidence belongs to a query, never the resident index.
|
|
2
2
|
local M = { MAX_ALIAS_FILES = 128, MAX_ALIAS_BYTES = 1024 * 1024 }
|
|
3
|
-
local control = require('codeoutline.control')
|
|
4
|
-
local lookup = require('codeoutline.cpp_types')
|
|
3
|
+
local control = require('codeoutline.shared.control')
|
|
4
|
+
local lookup = require('codeoutline.analysis.cpp.cpp_types')
|
|
5
5
|
local classes = { class = true, struct = true }
|
|
6
6
|
local cv = { const = true, volatile = true }
|
|
7
7
|
local builtin = { void = true, bool = true, char = true, wchar_t = true, char8_t = true,
|
|
@@ -37,7 +37,7 @@ function M.collect(r, T)
|
|
|
37
37
|
if id % 128 == 0 then control.check() end
|
|
38
38
|
if classes[n.kind] or n.kind == 'method' then
|
|
39
39
|
local d = { at = T.s[n.ti] - 1 }
|
|
40
|
-
if classes[n.kind] then d.hierarchy_bases = require('codeoutline.type_bases').collect(T, n, r.language) end
|
|
40
|
+
if classes[n.kind] then d.hierarchy_bases = require('codeoutline.analysis.type_bases').collect(T, n, r.language) end
|
|
41
41
|
local ni, opening
|
|
42
42
|
for i = n.ti, n.tj do
|
|
43
43
|
local s = T:text(i)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- Ordered C/C++ include lookup over indexed paths. Configuration is query-owned.
|
|
2
2
|
local M = { MAX_PATHS = 128, MAX_RULES = 128, MAX_CACHED_TARGETS = 8192 }
|
|
3
|
-
local paths = require('codeoutline.path')
|
|
4
|
-
local control = require('codeoutline.control')
|
|
3
|
+
local paths = require('codeoutline.shared.path')
|
|
4
|
+
local control = require('codeoutline.shared.control')
|
|
5
5
|
local function absolute(path) return path:sub(1, 1) == '/' or path:match('^%a:/') ~= nil end
|
|
6
6
|
local function normalize(path)
|
|
7
7
|
path = path:gsub('\\', '/')
|
|
@@ -33,7 +33,7 @@ local function directory(value, label)
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
function M.context(G, client_paths)
|
|
36
|
-
local config = require('codeoutline.rules').read(G.root)
|
|
36
|
+
local config = require('codeoutline.shared.rules').read(G.root)
|
|
37
37
|
local root = normalize(G.root or '')
|
|
38
38
|
local function directories(value, label)
|
|
39
39
|
array(value, label, M.MAX_PATHS)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- Query-owned project macro visibility. No expansion or compiler execution.
|
|
2
2
|
local M = { MAX_FILES = 128, MAX_BYTES = 8 * 1024 * 1024, MAX_SUMMARY_BYTES = 1024 * 1024, MAX_EVENTS = 20000,
|
|
3
3
|
MAX_DIRECTIVES = 4096, MAX_DEPTH = 32, MAX_RESULTS = 4096 }
|
|
4
|
-
local control = require('codeoutline.control')
|
|
4
|
+
local control = require('codeoutline.shared.control')
|
|
5
5
|
local scanners = {}
|
|
6
6
|
local UNKNOWN = {}
|
|
7
7
|
local function trim(s) return (s:gsub('^%s+', ''):gsub('%s+$', '')) end
|
|
@@ -54,7 +54,7 @@ local function scanner_for(language)
|
|
|
54
54
|
local config = {}
|
|
55
55
|
for k, v in pairs(require('codeoutline.lang.' .. language).config) do config[k] = v end
|
|
56
56
|
config.pp_first_branch = false
|
|
57
|
-
scanner = require('codeoutline.xscan').lang(config); scanners[language] = scanner
|
|
57
|
+
scanner = require('codeoutline.parsing.xscan').lang(config); scanners[language] = scanner
|
|
58
58
|
end
|
|
59
59
|
return scanner
|
|
60
60
|
end
|
|
@@ -213,7 +213,7 @@ function M.context(G, ctx)
|
|
|
213
213
|
elseif kind == 'include' then
|
|
214
214
|
if not e.path then env[name] = UNKNOWN
|
|
215
215
|
else
|
|
216
|
-
local targets = require('codeoutline.cpp_includes').resolve(G, file, e, ctx)
|
|
216
|
+
local targets = require('codeoutline.analysis.cpp.cpp_includes').resolve(G, file, e, ctx)
|
|
217
217
|
if #targets == 1 then walk(targets[1], math.huge, active, depth + 1)
|
|
218
218
|
elseif #targets > 1 then
|
|
219
219
|
if declarations then
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
-- Query-owned C/C++ call-result receivers. Never infer a type from a member name.
|
|
2
|
-
local control = require('codeoutline.control')
|
|
2
|
+
local control = require('codeoutline.shared.control')
|
|
3
3
|
local M = { MAX_FILES = 16, MAX_BYTES = 8388608, MAX_DEPTH = 12, MAX_CANDIDATES = 256, MAX_TIME_MS = 400 }
|
|
4
4
|
local family = { c = true, cpp = true }
|
|
5
5
|
local aggregates = { class = true, struct = true, union = true }
|
|
@@ -200,7 +200,7 @@ function M.context(G, ctx)
|
|
|
200
200
|
end
|
|
201
201
|
local function visible(f, g)
|
|
202
202
|
if f == g then return true end
|
|
203
|
-
if not visibility[f] then visibility[f] = require('codeoutline.graph').visible_dependencies(G, f, ctx) end
|
|
203
|
+
if not visibility[f] then visibility[f] = require('codeoutline.analysis.graph').visible_dependencies(G, f, ctx) end
|
|
204
204
|
return visibility[f][g]
|
|
205
205
|
end
|
|
206
206
|
local function bound(f, name, at)
|
|
@@ -225,12 +225,12 @@ function M.context(G, ctx)
|
|
|
225
225
|
for i, alias in ipairs(G.by_name[ty.name:match('([^:]+)$')] or {}) do
|
|
226
226
|
if i > M.MAX_CANDIDATES then limited(); return nil end
|
|
227
227
|
if active(alias) and G.nodes[alias].kind == 'typedef' and visible(f, G.node_file[alias]) then
|
|
228
|
-
for _, a in ipairs(require('codeoutline.cpp_types').aliases(G, G.node_file[alias], ctx)) do
|
|
228
|
+
for _, a in ipairs(require('codeoutline.analysis.cpp.cpp_types').aliases(G, G.node_file[alias], ctx)) do
|
|
229
229
|
if a.name == G.nodes[alias].name and a.decorated then return nil end
|
|
230
230
|
end
|
|
231
231
|
end
|
|
232
232
|
end
|
|
233
|
-
ids = require('codeoutline.cpp_types').resolve(G, f, ty.name, { context = ctx, scope = owner, at = ty.at })
|
|
233
|
+
ids = require('codeoutline.analysis.cpp.cpp_types').resolve(G, f, ty.name, { context = ctx, scope = owner, at = ty.at })
|
|
234
234
|
else
|
|
235
235
|
ids = {}
|
|
236
236
|
for i, id in ipairs(G.by_name[ty.name] or {}) do
|
|
@@ -259,12 +259,12 @@ function M.context(G, ctx)
|
|
|
259
259
|
local candidates
|
|
260
260
|
if declarations then
|
|
261
261
|
local known
|
|
262
|
-
candidates, known = require('codeoutline.cpp_types').resolve(G, G.node_file[id], '::' .. G.nodes[id].qualified .. '::' .. name,
|
|
262
|
+
candidates, known = require('codeoutline.analysis.cpp.cpp_types').resolve(G, G.node_file[id], '::' .. G.nodes[id].qualified .. '::' .. name,
|
|
263
263
|
{ context = ctx, accept = { ['function'] = true, method = true, prototype = true, field = true } })
|
|
264
264
|
if known and #candidates == 0 then return {} end
|
|
265
265
|
end
|
|
266
266
|
if not candidates or #candidates == 0 then
|
|
267
|
-
candidates = require('codeoutline.cpp_bindings').resolve(G, G.node_file[id], nil, name,
|
|
267
|
+
candidates = require('codeoutline.analysis.cpp.cpp_bindings').resolve(G, G.node_file[id], nil, name,
|
|
268
268
|
'cpp:type:::' .. G.nodes[id].qualified, nil, ctx) or {}
|
|
269
269
|
end
|
|
270
270
|
for _, mid in ipairs(candidates) do
|
|
@@ -302,7 +302,7 @@ function M.context(G, ctx)
|
|
|
302
302
|
local d = C.data(f)
|
|
303
303
|
if not d or d.calls[target.at] or bound(f, target.name, target.at) then return nil end
|
|
304
304
|
if G.files[f].language == 'cpp' then
|
|
305
|
-
candidates = require('codeoutline.cpp_types').resolve(G, f, target.name,
|
|
305
|
+
candidates = require('codeoutline.analysis.cpp.cpp_types').resolve(G, f, target.name,
|
|
306
306
|
{ context = ctx, scope = scope(owner), at = target.at, accept = callable })
|
|
307
307
|
else
|
|
308
308
|
candidates = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
-- Shared C++ name lookup. Alias/import bodies and lexical ranges are query-only.
|
|
2
2
|
local M = {}
|
|
3
|
-
local control = require('codeoutline.control')
|
|
3
|
+
local control = require('codeoutline.shared.control')
|
|
4
4
|
local classes = { class = true, struct = true, union = true }
|
|
5
5
|
local declaring = { class = true, struct = true, union = true, enum = true, namespace = true, typedef = true,
|
|
6
6
|
['function'] = true, method = true, prototype = true, variable = true, field = true, constant = true, macro = true }
|
|
@@ -125,7 +125,7 @@ function M.resolve(G, f, written, opts)
|
|
|
125
125
|
local ctx, accept = opts.context, opts.accept or classes
|
|
126
126
|
local visibility, records = {}, {}
|
|
127
127
|
local function dependencies(file)
|
|
128
|
-
if not visibility[file] then visibility[file] = require('codeoutline.graph').visible_dependencies(G, file, ctx) end
|
|
128
|
+
if not visibility[file] then visibility[file] = require('codeoutline.analysis.graph').visible_dependencies(G, file, ctx) end
|
|
129
129
|
return visibility[file]
|
|
130
130
|
end
|
|
131
131
|
local function visible(file, target)
|
|
@@ -344,7 +344,7 @@ function M.resolve(G, f, written, opts)
|
|
|
344
344
|
if accept[n.kind] then result[#result + 1] = id end
|
|
345
345
|
end
|
|
346
346
|
if opts.definitions and #result > 0 then
|
|
347
|
-
local _, paired = require('codeoutline.graph').visible_dependencies(G, f, ctx)
|
|
347
|
+
local _, paired = require('codeoutline.analysis.graph').visible_dependencies(G, f, ctx)
|
|
348
348
|
local definitions = {}
|
|
349
349
|
for _, id in ipairs(G.by_name[G.nodes[result[1]].name] or {}) do
|
|
350
350
|
local n, g = G.nodes[id], G.node_file[id]
|
|
@@ -375,7 +375,7 @@ function M.namespace_members(G, f, namespace, ctx, at, seen, depth, expired)
|
|
|
375
375
|
seen, depth = seen or {}, depth or 0
|
|
376
376
|
if seen[namespace] or depth > 8 then return {} end
|
|
377
377
|
seen[namespace] = true
|
|
378
|
-
local deps = require('codeoutline.graph').visible_dependencies(G, f, ctx)
|
|
378
|
+
local deps = require('codeoutline.analysis.graph').visible_dependencies(G, f, ctx)
|
|
379
379
|
local result = {}
|
|
380
380
|
local function add(id)
|
|
381
381
|
local n, g = G.nodes[id], G.node_file[id]
|
|
@@ -418,7 +418,7 @@ function M.namespace_members(G, f, namespace, ctx, at, seen, depth, expired)
|
|
|
418
418
|
end
|
|
419
419
|
|
|
420
420
|
function M.imported_members(G, f, scope, at, ctx, expired, prefix)
|
|
421
|
-
local deps = require('codeoutline.graph').visible_dependencies(G, f, ctx)
|
|
421
|
+
local deps = require('codeoutline.analysis.graph').visible_dependencies(G, f, ctx)
|
|
422
422
|
local result, names = {}, {}
|
|
423
423
|
local any = setmetatable({}, { __index = function() return true end })
|
|
424
424
|
local function active(alias, file)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
-- C# using/receiver evidence shared by LSP and graph queries. No compiler execution.
|
|
2
2
|
local M = {}
|
|
3
|
-
local control = require('codeoutline.control')
|
|
3
|
+
local control = require('codeoutline.shared.control')
|
|
4
4
|
local types = { class = true, struct = true, interface = true, record = true, enum = true }
|
|
5
5
|
local callable = { method = true, constructor = true, ['function'] = true, prototype = true }
|
|
6
6
|
local function clean(s) return s and s:gsub('^@', '') end
|
|
@@ -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.
|
|
308
|
-
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
-- Query-owned, bounded lexical aliases for explicit dispatch contracts.
|
|
2
2
|
-- No execution, basename guesses or persistent binding graph.
|
|
3
3
|
local M = {}
|
|
4
|
-
local control = require('codeoutline.control')
|
|
4
|
+
local control = require('codeoutline.shared.control')
|
|
5
5
|
local member = { ['.'] = true, [':'] = true, ['::'] = true, ['->'] = true }
|
|
6
6
|
local supported = { lua = true, javascript = true, typescript = true, arkts = true, python = true, c = true, cpp = true }
|
|
7
7
|
local callable = { ['function'] = true, method = true, constructor = true }
|
|
@@ -11,7 +11,7 @@ local statements = { ['local'] = true, ['function'] = true, ['end'] = true, ['re
|
|
|
11
11
|
|
|
12
12
|
local function quoted(T, i, language)
|
|
13
13
|
local s = T:text(i)
|
|
14
|
-
if T.k[i] == 'str' and language == 'lua' then return require('codeoutline.lua_literal').decode(s) end
|
|
14
|
+
if T.k[i] == 'str' and language == 'lua' then return require('codeoutline.analysis.lua.lua_literal').decode(s) end
|
|
15
15
|
if T.k[i] == 'str' and (s:sub(1, 1) == '"' or s:sub(1, 1) == "'")
|
|
16
16
|
and s:sub(-1) == s:sub(1, 1) and not s:find('[\\$]') then return s:sub(2, -2) end
|
|
17
17
|
end
|
|
@@ -443,7 +443,7 @@ function M.prepare(r, T)
|
|
|
443
443
|
if target.namespace then
|
|
444
444
|
local short = suffix:match('^[%.:]([%w_]+)$')
|
|
445
445
|
if not short then return false end
|
|
446
|
-
b.members = b.members or require('codeoutline.lua_bindings').local_members(r.nodes, scopes,
|
|
446
|
+
b.members = b.members or require('codeoutline.analysis.lua.lua_bindings').local_members(r.nodes, scopes,
|
|
447
447
|
b.name, b.token, b.scope, b.finish)
|
|
448
448
|
local id = b.members[short]
|
|
449
449
|
return id and { node = id, symbol = r.nodes[id].qualified } or false
|
|
@@ -7,7 +7,7 @@ local records, contracts, order = setmetatable({}, { __mode = 'k' }), setmetatab
|
|
|
7
7
|
local function load(G, f)
|
|
8
8
|
local rec = G.files[f]
|
|
9
9
|
if records[rec] ~= nil then return records[rec] or nil end
|
|
10
|
-
local full = require('codeoutline.navigation').full(G, f, true)
|
|
10
|
+
local full = require('codeoutline.query.navigation').full(G, f, true)
|
|
11
11
|
if not full then return nil end
|
|
12
12
|
-- Node indices are stable only while the source still matches the index.
|
|
13
13
|
for n, node in ipairs(rec.nodes) do
|
|
@@ -68,7 +68,7 @@ function M.exports(rec, language, module)
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
function M.collect(rec, T)
|
|
71
|
-
require('codeoutline.foreign_lua').collect(rec, T)
|
|
71
|
+
require('codeoutline.analysis.lua.foreign_lua').collect(rec, T)
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
function M.modules(G, language, name, ctx)
|