@colbymchenry/codegraph-win32-arm64 1.6.2 → 1.6.4
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/codegraph +1 -1
- package/bin/codegraph.cmd +1 -1
- package/lib/dist/.test-build-engine.json +1 -1
- package/lib/dist/.test-build-viewer.json +1 -1
- package/lib/dist/bin/codegraph.d.ts +3 -0
- package/lib/dist/bin/codegraph.d.ts.map +1 -1
- package/lib/dist/bin/codegraph.js +507 -702
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/bin/command-supervision.js +1 -57
- package/lib/dist/bin/command-supervision.js.map +1 -1
- package/lib/dist/bin/fatal-handler.js +0 -46
- package/lib/dist/bin/fatal-handler.js.map +1 -1
- package/lib/dist/bin/node-version-check.js +0 -33
- package/lib/dist/bin/node-version-check.js.map +1 -1
- package/lib/dist/bin/uninstall.js +0 -19
- package/lib/dist/bin/uninstall.js.map +1 -1
- package/lib/dist/bin/viewer-gate.js +0 -14
- package/lib/dist/bin/viewer-gate.js.map +1 -1
- package/lib/dist/compile-cache.d.ts +2 -0
- package/lib/dist/compile-cache.d.ts.map +1 -0
- package/lib/dist/compile-cache.js +45 -0
- package/lib/dist/compile-cache.js.map +1 -0
- package/lib/dist/context/formatter.js +3 -66
- package/lib/dist/context/formatter.js.map +1 -1
- package/lib/dist/context/index.d.ts +44 -1
- package/lib/dist/context/index.d.ts.map +1 -1
- package/lib/dist/context/index.js +123 -430
- package/lib/dist/context/index.js.map +1 -1
- package/lib/dist/context/markers.js +0 -17
- package/lib/dist/context/markers.js.map +1 -1
- package/lib/dist/db/index.d.ts +44 -1
- package/lib/dist/db/index.d.ts.map +1 -1
- package/lib/dist/db/index.js +123 -395
- package/lib/dist/db/index.js.map +1 -1
- package/lib/dist/db/migrations.d.ts +11 -1
- package/lib/dist/db/migrations.d.ts.map +1 -1
- package/lib/dist/db/migrations.js +71 -79
- package/lib/dist/db/migrations.js.map +1 -1
- package/lib/dist/db/name-substring-index.d.ts +63 -0
- package/lib/dist/db/name-substring-index.d.ts.map +1 -0
- package/lib/dist/db/name-substring-index.js +151 -0
- package/lib/dist/db/name-substring-index.js.map +1 -0
- package/lib/dist/db/node-sqlite.d.ts +19 -0
- package/lib/dist/db/node-sqlite.d.ts.map +1 -0
- package/lib/dist/db/node-sqlite.js +23 -0
- package/lib/dist/db/node-sqlite.js.map +1 -0
- package/lib/dist/db/open-error.d.ts +36 -0
- package/lib/dist/db/open-error.d.ts.map +1 -0
- package/lib/dist/db/open-error.js +63 -0
- package/lib/dist/db/open-error.js.map +1 -0
- package/lib/dist/db/parameter-flow-queries.d.ts +120 -0
- package/lib/dist/db/parameter-flow-queries.d.ts.map +1 -0
- package/lib/dist/db/parameter-flow-queries.js +168 -0
- package/lib/dist/db/parameter-flow-queries.js.map +1 -0
- package/lib/dist/db/queries.d.ts +654 -34
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1466 -1470
- package/lib/dist/db/queries.js.map +1 -1
- package/lib/dist/db/reference-tail.d.ts +83 -0
- package/lib/dist/db/reference-tail.d.ts.map +1 -0
- package/lib/dist/db/reference-tail.js +68 -0
- package/lib/dist/db/reference-tail.js.map +1 -0
- package/lib/dist/db/schema.sql +18 -2
- package/lib/dist/db/sqlite-adapter.d.ts +18 -1
- package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
- package/lib/dist/db/sqlite-adapter.js +12 -62
- package/lib/dist/db/sqlite-adapter.js.map +1 -1
- package/lib/dist/db/synthesis-stage.d.ts.map +1 -1
- package/lib/dist/db/synthesis-stage.js +2 -6
- package/lib/dist/db/synthesis-stage.js.map +1 -1
- package/lib/dist/db/wal-valve.js +1 -153
- package/lib/dist/db/wal-valve.js.map +1 -1
- package/lib/dist/db/wsl-shared-index.js +0 -37
- package/lib/dist/db/wsl-shared-index.js.map +1 -1
- package/lib/dist/directory.d.ts +51 -0
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +76 -530
- package/lib/dist/directory.js.map +1 -1
- package/lib/dist/engine.d.ts +15 -0
- package/lib/dist/engine.d.ts.map +1 -0
- package/lib/dist/engine.js +35 -0
- package/lib/dist/engine.js.map +1 -0
- package/lib/dist/errors.d.ts +10 -0
- package/lib/dist/errors.d.ts.map +1 -1
- package/lib/dist/errors.js +8 -101
- package/lib/dist/errors.js.map +1 -1
- package/lib/dist/extraction/astro-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/astro-extractor.js +11 -101
- package/lib/dist/extraction/astro-extractor.js.map +1 -1
- package/lib/dist/extraction/cfml-extractor.d.ts +27 -1
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +70 -206
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- package/lib/dist/extraction/commonjs-requires.js +0 -31
- package/lib/dist/extraction/commonjs-requires.js.map +1 -1
- package/lib/dist/extraction/dfm-extractor.js +0 -21
- package/lib/dist/extraction/dfm-extractor.js.map +1 -1
- package/lib/dist/extraction/extraction-version.d.ts +1 -1
- package/lib/dist/extraction/extraction-version.js +1 -24
- package/lib/dist/extraction/extraction-version.js.map +1 -1
- package/lib/dist/extraction/function-ref.d.ts +40 -0
- package/lib/dist/extraction/function-ref.d.ts.map +1 -1
- package/lib/dist/extraction/function-ref.js +157 -207
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.js +0 -165
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +73 -4
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +160 -431
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +208 -7
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +594 -1383
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/kernel/decode.js +0 -16
- package/lib/dist/extraction/kernel/decode.js.map +1 -1
- package/lib/dist/extraction/kernel/index.d.ts +3 -1
- package/lib/dist/extraction/kernel/index.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/index.js +48 -135
- package/lib/dist/extraction/kernel/index.js.map +1 -1
- package/lib/dist/extraction/kernel/layout.js +42 -76
- package/lib/dist/extraction/kernel/layout.js.map +1 -1
- package/lib/dist/extraction/kernel/loader.d.ts +5 -1
- package/lib/dist/extraction/kernel/loader.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/loader.js +0 -37
- package/lib/dist/extraction/kernel/loader.js.map +1 -1
- package/lib/dist/extraction/languages/arkts.js +0 -59
- package/lib/dist/extraction/languages/arkts.js.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.d.ts +125 -28
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +789 -856
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
- package/lib/dist/extraction/languages/cfquery.js +0 -9
- package/lib/dist/extraction/languages/cfquery.js.map +1 -1
- package/lib/dist/extraction/languages/cfscript.d.ts +20 -0
- package/lib/dist/extraction/languages/cfscript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/cfscript.js +80 -9
- package/lib/dist/extraction/languages/cfscript.js.map +1 -1
- package/lib/dist/extraction/languages/cobol.js +0 -114
- package/lib/dist/extraction/languages/cobol.js.map +1 -1
- package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts +66 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.js +343 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.js.map +1 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.d.ts +41 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.js +487 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.js.map +1 -0
- package/lib/dist/extraction/languages/csharp.js +3 -55
- package/lib/dist/extraction/languages/csharp.js.map +1 -1
- package/lib/dist/extraction/languages/dart.d.ts +129 -0
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +517 -162
- package/lib/dist/extraction/languages/dart.js.map +1 -1
- package/lib/dist/extraction/languages/erlang.d.ts.map +1 -1
- package/lib/dist/extraction/languages/erlang.js +15 -102
- package/lib/dist/extraction/languages/erlang.js.map +1 -1
- package/lib/dist/extraction/languages/go.d.ts +48 -0
- package/lib/dist/extraction/languages/go.d.ts.map +1 -1
- package/lib/dist/extraction/languages/go.js +102 -31
- package/lib/dist/extraction/languages/go.js.map +1 -1
- package/lib/dist/extraction/languages/index.js +0 -6
- package/lib/dist/extraction/languages/index.js.map +1 -1
- package/lib/dist/extraction/languages/java.d.ts.map +1 -1
- package/lib/dist/extraction/languages/java.js +67 -78
- package/lib/dist/extraction/languages/java.js.map +1 -1
- package/lib/dist/extraction/languages/javascript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/javascript.js +2 -12
- package/lib/dist/extraction/languages/javascript.js.map +1 -1
- package/lib/dist/extraction/languages/kotlin.d.ts +11 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +43 -197
- package/lib/dist/extraction/languages/kotlin.js.map +1 -1
- package/lib/dist/extraction/languages/lua.js +2 -39
- package/lib/dist/extraction/languages/lua.js.map +1 -1
- package/lib/dist/extraction/languages/luau.js +0 -14
- package/lib/dist/extraction/languages/luau.js.map +1 -1
- package/lib/dist/extraction/languages/nix.js +0 -16
- package/lib/dist/extraction/languages/nix.js.map +1 -1
- package/lib/dist/extraction/languages/objc.d.ts.map +1 -1
- package/lib/dist/extraction/languages/objc.js +5 -16
- package/lib/dist/extraction/languages/objc.js.map +1 -1
- package/lib/dist/extraction/languages/pascal-preparse.d.ts +66 -0
- package/lib/dist/extraction/languages/pascal-preparse.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal-preparse.js +958 -0
- package/lib/dist/extraction/languages/pascal-preparse.js.map +1 -0
- package/lib/dist/extraction/languages/pascal-system.d.ts +11 -0
- package/lib/dist/extraction/languages/pascal-system.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal-system.js +23 -0
- package/lib/dist/extraction/languages/pascal-system.js.map +1 -0
- package/lib/dist/extraction/languages/pascal.d.ts.map +1 -1
- package/lib/dist/extraction/languages/pascal.js +3 -4
- package/lib/dist/extraction/languages/pascal.js.map +1 -1
- package/lib/dist/extraction/languages/php.d.ts +9 -0
- package/lib/dist/extraction/languages/php.d.ts.map +1 -1
- package/lib/dist/extraction/languages/php.js +207 -44
- package/lib/dist/extraction/languages/php.js.map +1 -1
- package/lib/dist/extraction/languages/python.js +2 -20
- package/lib/dist/extraction/languages/python.js.map +1 -1
- package/lib/dist/extraction/languages/r.js +8 -78
- package/lib/dist/extraction/languages/r.js.map +1 -1
- package/lib/dist/extraction/languages/ruby.d.ts.map +1 -1
- package/lib/dist/extraction/languages/ruby.js +17 -25
- package/lib/dist/extraction/languages/ruby.js.map +1 -1
- package/lib/dist/extraction/languages/rust-macro-calls.d.ts +32 -0
- package/lib/dist/extraction/languages/rust-macro-calls.d.ts.map +1 -0
- package/lib/dist/extraction/languages/rust-macro-calls.js +306 -0
- package/lib/dist/extraction/languages/rust-macro-calls.js.map +1 -0
- package/lib/dist/extraction/languages/rust.d.ts +10 -0
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
- package/lib/dist/extraction/languages/rust.js +15 -47
- package/lib/dist/extraction/languages/rust.js.map +1 -1
- package/lib/dist/extraction/languages/scala.js +5 -41
- package/lib/dist/extraction/languages/scala.js.map +1 -1
- package/lib/dist/extraction/languages/solidity.js +1 -82
- package/lib/dist/extraction/languages/solidity.js.map +1 -1
- package/lib/dist/extraction/languages/swift.js +3 -47
- package/lib/dist/extraction/languages/swift.js.map +1 -1
- package/lib/dist/extraction/languages/terraform.js +6 -152
- package/lib/dist/extraction/languages/terraform.js.map +1 -1
- package/lib/dist/extraction/languages/typescript.d.ts +64 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +73 -49
- package/lib/dist/extraction/languages/typescript.js.map +1 -1
- package/lib/dist/extraction/languages/vbnet.d.ts.map +1 -1
- package/lib/dist/extraction/languages/vbnet.js +9 -42
- package/lib/dist/extraction/languages/vbnet.js.map +1 -1
- package/lib/dist/extraction/lazy-frameworks.d.ts +15 -0
- package/lib/dist/extraction/lazy-frameworks.d.ts.map +1 -0
- package/lib/dist/extraction/lazy-frameworks.js +8 -0
- package/lib/dist/extraction/lazy-frameworks.js.map +1 -0
- package/lib/dist/extraction/liquid-extractor.d.ts +29 -3
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/liquid-extractor.js +89 -148
- package/lib/dist/extraction/liquid-extractor.js.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.js +0 -78
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
- package/lib/dist/extraction/parse-budget.d.ts +42 -7
- package/lib/dist/extraction/parse-budget.d.ts.map +1 -1
- package/lib/dist/extraction/parse-budget.js +39 -15
- package/lib/dist/extraction/parse-budget.js.map +1 -1
- package/lib/dist/extraction/parse-pool.d.ts +29 -17
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +49 -193
- package/lib/dist/extraction/parse-pool.js.map +1 -1
- package/lib/dist/extraction/parse-worker.d.ts +1 -1
- package/lib/dist/extraction/parse-worker.d.ts.map +1 -1
- package/lib/dist/extraction/parse-worker.js +5 -58
- package/lib/dist/extraction/parse-worker.js.map +1 -1
- package/lib/dist/extraction/razor-extractor.d.ts +9 -0
- package/lib/dist/extraction/razor-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/razor-extractor.js +45 -69
- package/lib/dist/extraction/razor-extractor.js.map +1 -1
- package/lib/dist/extraction/razor-script.d.ts +23 -0
- package/lib/dist/extraction/razor-script.d.ts.map +1 -0
- package/lib/dist/extraction/razor-script.js +244 -0
- package/lib/dist/extraction/razor-script.js.map +1 -0
- package/lib/dist/extraction/sfc-script.d.ts +42 -0
- package/lib/dist/extraction/sfc-script.d.ts.map +1 -1
- package/lib/dist/extraction/sfc-script.js +32 -31
- package/lib/dist/extraction/sfc-script.js.map +1 -1
- package/lib/dist/extraction/store-worker.d.ts +1 -1
- package/lib/dist/extraction/store-worker.d.ts.map +1 -1
- package/lib/dist/extraction/store-worker.js +1 -38
- package/lib/dist/extraction/store-worker.js.map +1 -1
- package/lib/dist/extraction/store-writer.js +2 -34
- package/lib/dist/extraction/store-writer.js.map +1 -1
- package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/svelte-extractor.js +11 -87
- package/lib/dist/extraction/svelte-extractor.js.map +1 -1
- package/lib/dist/extraction/syntax-tokens.d.ts +6 -5
- package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -1
- package/lib/dist/extraction/syntax-tokens.js +4 -152
- package/lib/dist/extraction/syntax-tokens.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.d.ts +37 -1
- package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.js +76 -68
- package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.d.ts +102 -22
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.js +0 -7
- package/lib/dist/extraction/tree-sitter-types.js.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts +518 -10
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +2118 -2554
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/extraction/vue-extractor.d.ts +13 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/vue-extractor.js +52 -92
- package/lib/dist/extraction/vue-extractor.js.map +1 -1
- package/lib/dist/extraction/vue-options-api.js +0 -32
- package/lib/dist/extraction/vue-options-api.js.map +1 -1
- package/lib/dist/extraction/vue-template-calls.d.ts +37 -0
- package/lib/dist/extraction/vue-template-calls.d.ts.map +1 -0
- package/lib/dist/extraction/vue-template-calls.js +497 -0
- package/lib/dist/extraction/vue-template-calls.js.map +1 -0
- package/lib/dist/extraction/wasm/tree-sitter-dart.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-swift.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts +15 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
- package/lib/dist/extraction/wasm-runtime-flags.js +18 -89
- package/lib/dist/extraction/wasm-runtime-flags.js.map +1 -1
- package/lib/dist/file-limits.d.ts +8 -0
- package/lib/dist/file-limits.d.ts.map +1 -1
- package/lib/dist/file-limits.js +13 -28
- package/lib/dist/file-limits.js.map +1 -1
- package/lib/dist/graph/branch-guards.d.ts.map +1 -1
- package/lib/dist/graph/branch-guards.js +4 -251
- package/lib/dist/graph/branch-guards.js.map +1 -1
- package/lib/dist/graph/call-sites.d.ts +12 -0
- package/lib/dist/graph/call-sites.d.ts.map +1 -0
- package/lib/dist/graph/call-sites.js +17 -0
- package/lib/dist/graph/call-sites.js.map +1 -0
- package/lib/dist/graph/cobol-copybooks.d.ts +75 -0
- package/lib/dist/graph/cobol-copybooks.d.ts.map +1 -0
- package/lib/dist/graph/cobol-copybooks.js +45 -0
- package/lib/dist/graph/cobol-copybooks.js.map +1 -0
- package/lib/dist/graph/dead-code.d.ts +26 -4
- package/lib/dist/graph/dead-code.d.ts.map +1 -1
- package/lib/dist/graph/dead-code.js +157 -311
- package/lib/dist/graph/dead-code.js.map +1 -1
- package/lib/dist/graph/dynamic-boundary-report.js +1 -88
- package/lib/dist/graph/dynamic-boundary-report.js.map +1 -1
- package/lib/dist/graph/file-cycles.d.ts +20 -0
- package/lib/dist/graph/file-cycles.d.ts.map +1 -0
- package/lib/dist/graph/file-cycles.js +79 -0
- package/lib/dist/graph/file-cycles.js.map +1 -0
- package/lib/dist/graph/file-drift.d.ts +35 -0
- package/lib/dist/graph/file-drift.d.ts.map +1 -0
- package/lib/dist/graph/file-drift.js +46 -0
- package/lib/dist/graph/file-drift.js.map +1 -0
- package/lib/dist/graph/go-package.d.ts +27 -0
- package/lib/dist/graph/go-package.d.ts.map +1 -0
- package/lib/dist/graph/go-package.js +49 -0
- package/lib/dist/graph/go-package.js.map +1 -0
- package/lib/dist/graph/index.d.ts +2 -0
- package/lib/dist/graph/index.d.ts.map +1 -1
- package/lib/dist/graph/index.js +4 -6
- package/lib/dist/graph/index.js.map +1 -1
- package/lib/dist/graph/named-symbol-flow.d.ts +5 -1
- package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -1
- package/lib/dist/graph/named-symbol-flow.js +82 -223
- package/lib/dist/graph/named-symbol-flow.js.map +1 -1
- package/lib/dist/graph/owning-package.d.ts +59 -0
- package/lib/dist/graph/owning-package.d.ts.map +1 -0
- package/lib/dist/graph/owning-package.js +120 -0
- package/lib/dist/graph/owning-package.js.map +1 -0
- package/lib/dist/graph/queries.d.ts +6 -3
- package/lib/dist/graph/queries.d.ts.map +1 -1
- package/lib/dist/graph/queries.js +4 -137
- package/lib/dist/graph/queries.js.map +1 -1
- package/lib/dist/graph/symbol-lookup.d.ts +15 -3
- package/lib/dist/graph/symbol-lookup.d.ts.map +1 -1
- package/lib/dist/graph/symbol-lookup.js +47 -89
- package/lib/dist/graph/symbol-lookup.js.map +1 -1
- package/lib/dist/graph/symbol-references.d.ts +86 -0
- package/lib/dist/graph/symbol-references.d.ts.map +1 -0
- package/lib/dist/graph/symbol-references.js +304 -0
- package/lib/dist/graph/symbol-references.js.map +1 -0
- package/lib/dist/graph/synthesized-hop.d.ts +37 -0
- package/lib/dist/graph/synthesized-hop.d.ts.map +1 -0
- package/lib/dist/graph/synthesized-hop.js +62 -0
- package/lib/dist/graph/synthesized-hop.js.map +1 -0
- package/lib/dist/graph/test-code.d.ts +33 -0
- package/lib/dist/graph/test-code.d.ts.map +1 -0
- package/lib/dist/graph/test-code.js +104 -0
- package/lib/dist/graph/test-code.js.map +1 -0
- package/lib/dist/graph/traversal.d.ts +31 -2
- package/lib/dist/graph/traversal.d.ts.map +1 -1
- package/lib/dist/graph/traversal.js +96 -226
- package/lib/dist/graph/traversal.js.map +1 -1
- package/lib/dist/graph/type-hierarchy.js +0 -138
- package/lib/dist/graph/type-hierarchy.js.map +1 -1
- package/lib/dist/index.d.ts +214 -26
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +736 -1112
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/beta-signup.js +0 -39
- package/lib/dist/installer/beta-signup.js.map +1 -1
- package/lib/dist/installer/config-writer.js +0 -24
- package/lib/dist/installer/config-writer.js.map +1 -1
- package/lib/dist/installer/index.d.ts +13 -6
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +27 -160
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/instructions-template.d.ts +16 -1
- package/lib/dist/installer/instructions-template.d.ts.map +1 -1
- package/lib/dist/installer/instructions-template.js +10 -38
- package/lib/dist/installer/instructions-template.js.map +1 -1
- package/lib/dist/installer/targets/antigravity.js +0 -113
- package/lib/dist/installer/targets/antigravity.js.map +1 -1
- package/lib/dist/installer/targets/bob.d.ts +20 -0
- package/lib/dist/installer/targets/bob.d.ts.map +1 -0
- package/lib/dist/installer/targets/bob.js +83 -0
- package/lib/dist/installer/targets/bob.js.map +1 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -1
- package/lib/dist/installer/targets/claude.js +1 -185
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/codex.d.ts.map +1 -1
- package/lib/dist/installer/targets/codex.js +17 -109
- package/lib/dist/installer/targets/codex.js.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.js +2 -54
- package/lib/dist/installer/targets/copilot-cli.js.map +1 -1
- package/lib/dist/installer/targets/copilot-jetbrains.js +0 -57
- package/lib/dist/installer/targets/copilot-jetbrains.js.map +1 -1
- package/lib/dist/installer/targets/copilot-vscode.js +0 -58
- package/lib/dist/installer/targets/copilot-vscode.js.map +1 -1
- package/lib/dist/installer/targets/cursor.js +7 -88
- package/lib/dist/installer/targets/cursor.js.map +1 -1
- package/lib/dist/installer/targets/droid.d.ts +18 -0
- package/lib/dist/installer/targets/droid.d.ts.map +1 -0
- package/lib/dist/installer/targets/droid.js +92 -0
- package/lib/dist/installer/targets/droid.js.map +1 -0
- package/lib/dist/installer/targets/dsh.d.ts +35 -0
- package/lib/dist/installer/targets/dsh.d.ts.map +1 -0
- package/lib/dist/installer/targets/dsh.js +267 -0
- package/lib/dist/installer/targets/dsh.js.map +1 -0
- package/lib/dist/installer/targets/gemini.js +0 -37
- package/lib/dist/installer/targets/gemini.js.map +1 -1
- package/lib/dist/installer/targets/grok.d.ts +25 -0
- package/lib/dist/installer/targets/grok.d.ts.map +1 -0
- package/lib/dist/installer/targets/grok.js +96 -0
- package/lib/dist/installer/targets/grok.js.map +1 -0
- package/lib/dist/installer/targets/hermes.d.ts +19 -7
- package/lib/dist/installer/targets/hermes.d.ts.map +1 -1
- package/lib/dist/installer/targets/hermes.js +218 -214
- package/lib/dist/installer/targets/hermes.js.map +1 -1
- package/lib/dist/installer/targets/json-config.d.ts +45 -0
- package/lib/dist/installer/targets/json-config.d.ts.map +1 -0
- package/lib/dist/installer/targets/json-config.js +128 -0
- package/lib/dist/installer/targets/json-config.js.map +1 -0
- package/lib/dist/installer/targets/kimi.d.ts +21 -0
- package/lib/dist/installer/targets/kimi.d.ts.map +1 -0
- package/lib/dist/installer/targets/kimi.js +97 -0
- package/lib/dist/installer/targets/kimi.js.map +1 -0
- package/lib/dist/installer/targets/kiro.js +1 -41
- package/lib/dist/installer/targets/kiro.js.map +1 -1
- package/lib/dist/installer/targets/opencode.d.ts.map +1 -1
- package/lib/dist/installer/targets/opencode.js +1 -103
- package/lib/dist/installer/targets/opencode.js.map +1 -1
- package/lib/dist/installer/targets/pi.d.ts +24 -0
- package/lib/dist/installer/targets/pi.d.ts.map +1 -0
- package/lib/dist/installer/targets/pi.js +100 -0
- package/lib/dist/installer/targets/pi.js.map +1 -0
- package/lib/dist/installer/targets/qoder.d.ts +23 -0
- package/lib/dist/installer/targets/qoder.d.ts.map +1 -0
- package/lib/dist/installer/targets/qoder.js +83 -0
- package/lib/dist/installer/targets/qoder.js.map +1 -0
- package/lib/dist/installer/targets/qwen.d.ts +21 -0
- package/lib/dist/installer/targets/qwen.d.ts.map +1 -0
- package/lib/dist/installer/targets/qwen.js +115 -0
- package/lib/dist/installer/targets/qwen.js.map +1 -0
- package/lib/dist/installer/targets/registry.d.ts.map +1 -1
- package/lib/dist/installer/targets/registry.js +18 -25
- package/lib/dist/installer/targets/registry.js.map +1 -1
- package/lib/dist/installer/targets/shared.d.ts +83 -13
- package/lib/dist/installer/targets/shared.d.ts.map +1 -1
- package/lib/dist/installer/targets/shared.js +201 -131
- package/lib/dist/installer/targets/shared.js.map +1 -1
- package/lib/dist/installer/targets/toml.d.ts +82 -6
- package/lib/dist/installer/targets/toml.d.ts.map +1 -1
- package/lib/dist/installer/targets/toml.js +318 -112
- package/lib/dist/installer/targets/toml.js.map +1 -1
- package/lib/dist/installer/targets/types.d.ts +1 -1
- package/lib/dist/installer/targets/types.d.ts.map +1 -1
- package/lib/dist/installer/targets/types.js +0 -13
- package/lib/dist/installer/targets/types.js.map +1 -1
- package/lib/dist/installer/targets/windsurf.d.ts +22 -0
- package/lib/dist/installer/targets/windsurf.d.ts.map +1 -0
- package/lib/dist/installer/targets/windsurf.js +90 -0
- package/lib/dist/installer/targets/windsurf.js.map +1 -0
- package/lib/dist/lazy-engine.d.ts +22 -0
- package/lib/dist/lazy-engine.d.ts.map +1 -0
- package/lib/dist/lazy-engine.js +16 -0
- package/lib/dist/lazy-engine.js.map +1 -0
- package/lib/dist/mcp/answer-freshness.js +0 -6
- package/lib/dist/mcp/answer-freshness.js.map +1 -1
- package/lib/dist/mcp/daemon-manager.js +2 -23
- package/lib/dist/mcp/daemon-manager.js.map +1 -1
- package/lib/dist/mcp/daemon-paths.d.ts +2 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +9 -85
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-proof.d.ts +19 -0
- package/lib/dist/mcp/daemon-proof.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-proof.js +126 -0
- package/lib/dist/mcp/daemon-proof.js.map +1 -0
- package/lib/dist/mcp/daemon-registry.d.ts +47 -2
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +188 -139
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +69 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +186 -376
- package/lib/dist/mcp/daemon.js.map +1 -1
- package/lib/dist/mcp/dynamic-boundaries.js +4 -78
- package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
- package/lib/dist/mcp/early-ppid.js +0 -24
- package/lib/dist/mcp/early-ppid.js.map +1 -1
- package/lib/dist/mcp/engine.d.ts +24 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +47 -152
- package/lib/dist/mcp/engine.js.map +1 -1
- package/lib/dist/mcp/explore-dedup.js +0 -108
- package/lib/dist/mcp/explore-dedup.js.map +1 -1
- package/lib/dist/mcp/explore-diagnostics.d.ts +6 -0
- package/lib/dist/mcp/explore-diagnostics.d.ts.map +1 -1
- package/lib/dist/mcp/explore-diagnostics.js +8 -116
- package/lib/dist/mcp/explore-diagnostics.js.map +1 -1
- package/lib/dist/mcp/explore-one-symbol.d.ts +77 -0
- package/lib/dist/mcp/explore-one-symbol.d.ts.map +1 -0
- package/lib/dist/mcp/explore-one-symbol.js +431 -0
- package/lib/dist/mcp/explore-one-symbol.js.map +1 -0
- package/lib/dist/mcp/explore-session-state.js +0 -129
- package/lib/dist/mcp/explore-session-state.js.map +1 -1
- package/lib/dist/mcp/hook-client.d.ts +44 -0
- package/lib/dist/mcp/hook-client.d.ts.map +1 -0
- package/lib/dist/mcp/hook-client.js +202 -0
- package/lib/dist/mcp/hook-client.js.map +1 -0
- package/lib/dist/mcp/index-freshness-worker.js +1 -6
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -1
- package/lib/dist/mcp/index-freshness.js +0 -15
- package/lib/dist/mcp/index-freshness.js.map +1 -1
- package/lib/dist/mcp/index-version-warning.d.ts +21 -0
- package/lib/dist/mcp/index-version-warning.d.ts.map +1 -0
- package/lib/dist/mcp/index-version-warning.js +38 -0
- package/lib/dist/mcp/index-version-warning.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +29 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +131 -300
- package/lib/dist/mcp/index.js.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts +13 -3
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.js +106 -121
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
- package/lib/dist/mcp/opencode-tool-names.d.ts +32 -0
- package/lib/dist/mcp/opencode-tool-names.d.ts.map +1 -0
- package/lib/dist/mcp/opencode-tool-names.js +24 -0
- package/lib/dist/mcp/opencode-tool-names.js.map +1 -0
- package/lib/dist/mcp/ppid-watchdog.js +0 -24
- package/lib/dist/mcp/ppid-watchdog.js.map +1 -1
- package/lib/dist/mcp/process-identity.d.ts +42 -0
- package/lib/dist/mcp/process-identity.d.ts.map +1 -0
- package/lib/dist/mcp/process-identity.js +130 -0
- package/lib/dist/mcp/process-identity.js.map +1 -0
- package/lib/dist/mcp/project-lifecycle.d.ts +6 -0
- package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -1
- package/lib/dist/mcp/project-lifecycle.js +70 -19
- package/lib/dist/mcp/project-lifecycle.js.map +1 -1
- package/lib/dist/mcp/prompt-explore.d.ts +19 -0
- package/lib/dist/mcp/prompt-explore.d.ts.map +1 -0
- package/lib/dist/mcp/prompt-explore.js +6 -0
- package/lib/dist/mcp/prompt-explore.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts +25 -7
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +145 -274
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +52 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +114 -123
- package/lib/dist/mcp/query-pool.js.map +1 -1
- package/lib/dist/mcp/query-worker.js +24 -36
- package/lib/dist/mcp/query-worker.js.map +1 -1
- package/lib/dist/mcp/server-instructions.d.ts +18 -0
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +12 -32
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/session.d.ts +46 -0
- package/lib/dist/mcp/session.d.ts.map +1 -1
- package/lib/dist/mcp/session.js +70 -132
- package/lib/dist/mcp/session.js.map +1 -1
- package/lib/dist/mcp/startup-handshake.js +1 -48
- package/lib/dist/mcp/startup-handshake.js.map +1 -1
- package/lib/dist/mcp/stdin-teardown.js +0 -28
- package/lib/dist/mcp/stdin-teardown.js.map +1 -1
- package/lib/dist/mcp/stdout-teardown.d.ts +26 -0
- package/lib/dist/mcp/stdout-teardown.d.ts.map +1 -0
- package/lib/dist/mcp/stdout-teardown.js +20 -0
- package/lib/dist/mcp/stdout-teardown.js.map +1 -0
- package/lib/dist/mcp/tools.d.ts +157 -18
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +797 -3621
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/mcp/transport.d.ts.map +1 -1
- package/lib/dist/mcp/transport.js +4 -96
- package/lib/dist/mcp/transport.js.map +1 -1
- package/lib/dist/mcp/version.d.ts +13 -1
- package/lib/dist/mcp/version.d.ts.map +1 -1
- package/lib/dist/mcp/version.js +19 -21
- package/lib/dist/mcp/version.js.map +1 -1
- package/lib/dist/mcp/writer-lock.d.ts +11 -0
- package/lib/dist/mcp/writer-lock.d.ts.map +1 -1
- package/lib/dist/mcp/writer-lock.js +49 -46
- package/lib/dist/mcp/writer-lock.js.map +1 -1
- package/lib/dist/project-config.d.ts +20 -0
- package/lib/dist/project-config.d.ts.map +1 -1
- package/lib/dist/project-config.js +31 -140
- package/lib/dist/project-config.js.map +1 -1
- package/lib/dist/resolution/alias-binding.d.ts +7 -0
- package/lib/dist/resolution/alias-binding.d.ts.map +1 -1
- package/lib/dist/resolution/alias-binding.js +7 -56
- package/lib/dist/resolution/alias-binding.js.map +1 -1
- package/lib/dist/resolution/ambient-modules.d.ts +185 -0
- package/lib/dist/resolution/ambient-modules.d.ts.map +1 -0
- package/lib/dist/resolution/ambient-modules.js +732 -0
- package/lib/dist/resolution/ambient-modules.js.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts +48 -1
- package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/angular-template-synthesizer.js +401 -65
- package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -1
- package/lib/dist/resolution/c-feature-variants.d.ts +40 -0
- package/lib/dist/resolution/c-feature-variants.d.ts.map +1 -0
- package/lib/dist/resolution/c-feature-variants.js +249 -0
- package/lib/dist/resolution/c-feature-variants.js.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/c-fnptr-synthesizer.js +23 -391
- package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
- package/lib/dist/resolution/c-macro-renames.d.ts +25 -0
- package/lib/dist/resolution/c-macro-renames.d.ts.map +1 -0
- package/lib/dist/resolution/c-macro-renames.js +95 -0
- package/lib/dist/resolution/c-macro-renames.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +19 -5
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +1395 -1343
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
- package/lib/dist/resolution/const-alias-synthesizer.d.ts +48 -0
- package/lib/dist/resolution/const-alias-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/const-alias-synthesizer.js +234 -0
- package/lib/dist/resolution/const-alias-synthesizer.js.map +1 -0
- package/lib/dist/resolution/cooperative-yield.js +0 -27
- package/lib/dist/resolution/cooperative-yield.js.map +1 -1
- package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -1
- package/lib/dist/resolution/cpp-constructor.js +15 -17
- package/lib/dist/resolution/cpp-constructor.js.map +1 -1
- package/lib/dist/resolution/cpp-includers.d.ts +46 -0
- package/lib/dist/resolution/cpp-includers.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-includers.js +153 -0
- package/lib/dist/resolution/cpp-includers.js.map +1 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts +16 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -1
- package/lib/dist/resolution/cpp-macro-visibility.js +17 -68
- package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -1
- package/lib/dist/resolution/cpp-namespaces.d.ts +54 -0
- package/lib/dist/resolution/cpp-namespaces.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-namespaces.js +151 -0
- package/lib/dist/resolution/cpp-namespaces.js.map +1 -0
- package/lib/dist/resolution/cpp-raw-strings.d.ts +33 -0
- package/lib/dist/resolution/cpp-raw-strings.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-raw-strings.js +167 -0
- package/lib/dist/resolution/cpp-raw-strings.js.map +1 -0
- package/lib/dist/resolution/cpp-supertypes.d.ts +118 -0
- package/lib/dist/resolution/cpp-supertypes.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-supertypes.js +322 -0
- package/lib/dist/resolution/cpp-supertypes.js.map +1 -0
- package/lib/dist/resolution/cpp-template-instantiations.d.ts +83 -0
- package/lib/dist/resolution/cpp-template-instantiations.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-template-instantiations.js +983 -0
- package/lib/dist/resolution/cpp-template-instantiations.js.map +1 -0
- package/lib/dist/resolution/cpp-type-aliases.d.ts +194 -0
- package/lib/dist/resolution/cpp-type-aliases.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-type-aliases.js +648 -0
- package/lib/dist/resolution/cpp-type-aliases.js.map +1 -0
- package/lib/dist/resolution/dart-libraries.d.ts +75 -0
- package/lib/dist/resolution/dart-libraries.d.ts.map +1 -0
- package/lib/dist/resolution/dart-libraries.js +721 -0
- package/lib/dist/resolution/dart-libraries.js.map +1 -0
- package/lib/dist/resolution/dart-local-scope.d.ts +41 -0
- package/lib/dist/resolution/dart-local-scope.d.ts.map +1 -0
- package/lib/dist/resolution/dart-local-scope.js +565 -0
- package/lib/dist/resolution/dart-local-scope.js.map +1 -0
- package/lib/dist/resolution/event-emitter-synthesizer.d.ts +39 -0
- package/lib/dist/resolution/event-emitter-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/event-emitter-synthesizer.js +656 -0
- package/lib/dist/resolution/event-emitter-synthesizer.js.map +1 -0
- package/lib/dist/resolution/expo-router-synthesizer.js +0 -52
- package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/angular-router.js +41 -208
- package/lib/dist/resolution/frameworks/angular-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/aspnet-routes.d.ts +62 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.js +382 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/astro.js +4 -60
- package/lib/dist/resolution/frameworks/astro.js.map +1 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts +18 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.js +65 -15
- package/lib/dist/resolution/frameworks/cargo-workspace.js.map +1 -1
- package/lib/dist/resolution/frameworks/cics.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/cics.js +7 -33
- package/lib/dist/resolution/frameworks/cics.js.map +1 -1
- package/lib/dist/resolution/frameworks/codeigniter.d.ts +23 -0
- package/lib/dist/resolution/frameworks/codeigniter.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/codeigniter.js +271 -0
- package/lib/dist/resolution/frameworks/codeigniter.js.map +1 -0
- package/lib/dist/resolution/frameworks/component-folder.d.ts +17 -0
- package/lib/dist/resolution/frameworks/component-folder.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/component-folder.js +11 -0
- package/lib/dist/resolution/frameworks/component-folder.js.map +1 -0
- package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.js +85 -102
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
- package/lib/dist/resolution/frameworks/drupal.d.ts +17 -8
- package/lib/dist/resolution/frameworks/drupal.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/drupal.js +377 -142
- package/lib/dist/resolution/frameworks/drupal.js.map +1 -1
- package/lib/dist/resolution/frameworks/elysia.d.ts +38 -0
- package/lib/dist/resolution/frameworks/elysia.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/elysia.js +683 -0
- package/lib/dist/resolution/frameworks/elysia.js.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.js +8 -88
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.js +9 -190
- package/lib/dist/resolution/frameworks/expo-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/express.d.ts +48 -1
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/express.js +193 -199
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.js +1 -104
- package/lib/dist/resolution/frameworks/fabric.js.map +1 -1
- package/lib/dist/resolution/frameworks/go.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/go.js +14 -43
- package/lib/dist/resolution/frameworks/go.js.map +1 -1
- package/lib/dist/resolution/frameworks/goframe.js +1 -55
- package/lib/dist/resolution/frameworks/goframe.js.map +1 -1
- package/lib/dist/resolution/frameworks/index.d.ts +14 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +16 -50
- package/lib/dist/resolution/frameworks/index.js.map +1 -1
- package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/java.js +203 -129
- package/lib/dist/resolution/frameworks/java.js.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.js +71 -136
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
- package/lib/dist/resolution/frameworks/name-heuristic.js +0 -12
- package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +2 -199
- package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/next-proxy.d.ts +67 -0
- package/lib/dist/resolution/frameworks/next-proxy.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/next-proxy.js +239 -0
- package/lib/dist/resolution/frameworks/next-proxy.js.map +1 -0
- package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nextjs.js +10 -66
- package/lib/dist/resolution/frameworks/nextjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/object-literal.js +0 -21
- package/lib/dist/resolution/frameworks/object-literal.js.map +1 -1
- package/lib/dist/resolution/frameworks/package-deps.d.ts +11 -7
- package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/package-deps.js +35 -26
- package/lib/dist/resolution/frameworks/package-deps.js.map +1 -1
- package/lib/dist/resolution/frameworks/page-component.js +0 -14
- package/lib/dist/resolution/frameworks/page-component.js.map +1 -1
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/play.js +26 -34
- package/lib/dist/resolution/frameworks/play.js.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +5 -102
- package/lib/dist/resolution/frameworks/python.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.js +1 -166
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.d.ts +13 -4
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.js +10 -82
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/react.d.ts +57 -0
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +1449 -191
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.js +1 -61
- package/lib/dist/resolution/frameworks/ruby.js.map +1 -1
- package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/rust.js +35 -56
- package/lib/dist/resolution/frameworks/rust.js.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.js +7 -75
- package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.js +8 -46
- package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/swift-objc.js +0 -97
- package/lib/dist/resolution/frameworks/swift-objc.js.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +0 -97
- package/lib/dist/resolution/frameworks/swift.js.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.js +9 -130
- package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/terraform.js +1 -85
- package/lib/dist/resolution/frameworks/terraform.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.js +11 -134
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue.js +42 -114
- package/lib/dist/resolution/frameworks/vue.js.map +1 -1
- package/lib/dist/resolution/go-func-field-synthesizer.d.ts +58 -0
- package/lib/dist/resolution/go-func-field-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/go-func-field-synthesizer.js +696 -0
- package/lib/dist/resolution/go-func-field-synthesizer.js.map +1 -0
- package/lib/dist/resolution/go-module.d.ts +23 -7
- package/lib/dist/resolution/go-module.d.ts.map +1 -1
- package/lib/dist/resolution/go-module.js +21 -24
- package/lib/dist/resolution/go-module.js.map +1 -1
- package/lib/dist/resolution/go-stdlib-methods.d.ts +9 -0
- package/lib/dist/resolution/go-stdlib-methods.d.ts.map +1 -0
- package/lib/dist/resolution/go-stdlib-methods.js +224 -0
- package/lib/dist/resolution/go-stdlib-methods.js.map +1 -0
- package/lib/dist/resolution/goframe-synthesizer.js +2 -53
- package/lib/dist/resolution/goframe-synthesizer.js.map +1 -1
- package/lib/dist/resolution/import-resolver.d.ts +278 -29
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +1825 -1396
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +517 -6
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +1604 -1042
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/js-builtins.d.ts +23 -0
- package/lib/dist/resolution/js-builtins.d.ts.map +1 -1
- package/lib/dist/resolution/js-builtins.js +34 -14
- package/lib/dist/resolution/js-builtins.js.map +1 -1
- package/lib/dist/resolution/js-class-expressions.d.ts +48 -0
- package/lib/dist/resolution/js-class-expressions.d.ts.map +1 -0
- package/lib/dist/resolution/js-class-expressions.js +25 -0
- package/lib/dist/resolution/js-class-expressions.js.map +1 -0
- package/lib/dist/resolution/js-super-calls.d.ts +18 -0
- package/lib/dist/resolution/js-super-calls.d.ts.map +1 -0
- package/lib/dist/resolution/js-super-calls.js +94 -0
- package/lib/dist/resolution/js-super-calls.js.map +1 -0
- package/lib/dist/resolution/jsx-code.d.ts +28 -0
- package/lib/dist/resolution/jsx-code.d.ts.map +1 -0
- package/lib/dist/resolution/jsx-code.js +459 -0
- package/lib/dist/resolution/jsx-code.js.map +1 -0
- package/lib/dist/resolution/lru-cache.d.ts +5 -13
- package/lib/dist/resolution/lru-cache.d.ts.map +1 -1
- package/lib/dist/resolution/lru-cache.js +43 -32
- package/lib/dist/resolution/lru-cache.js.map +1 -1
- package/lib/dist/resolution/memory-budget.js +0 -52
- package/lib/dist/resolution/memory-budget.js.map +1 -1
- package/lib/dist/resolution/module-importers.d.ts +210 -0
- package/lib/dist/resolution/module-importers.d.ts.map +1 -0
- package/lib/dist/resolution/module-importers.js +673 -0
- package/lib/dist/resolution/module-importers.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +986 -7
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +24176 -6745
- package/lib/dist/resolution/name-matcher.js.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.d.ts +19 -0
- package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.js +46 -28
- package/lib/dist/resolution/next-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/override-parameters.d.ts +40 -0
- package/lib/dist/resolution/override-parameters.d.ts.map +1 -0
- package/lib/dist/resolution/override-parameters.js +339 -0
- package/lib/dist/resolution/override-parameters.js.map +1 -0
- package/lib/dist/resolution/parameter-flow.d.ts +218 -0
- package/lib/dist/resolution/parameter-flow.d.ts.map +1 -0
- package/lib/dist/resolution/parameter-flow.js +474 -0
- package/lib/dist/resolution/parameter-flow.js.map +1 -0
- package/lib/dist/resolution/pascal-scope.d.ts +91 -0
- package/lib/dist/resolution/pascal-scope.d.ts.map +1 -0
- package/lib/dist/resolution/pascal-scope.js +961 -0
- package/lib/dist/resolution/pascal-scope.js.map +1 -0
- package/lib/dist/resolution/path-aliases.d.ts +32 -4
- package/lib/dist/resolution/path-aliases.d.ts.map +1 -1
- package/lib/dist/resolution/path-aliases.js +43 -110
- package/lib/dist/resolution/path-aliases.js.map +1 -1
- package/lib/dist/resolution/php-web-root.d.ts +39 -0
- package/lib/dist/resolution/php-web-root.d.ts.map +1 -0
- package/lib/dist/resolution/php-web-root.js +141 -0
- package/lib/dist/resolution/php-web-root.js.map +1 -0
- package/lib/dist/resolution/project-scans.d.ts +38 -0
- package/lib/dist/resolution/project-scans.d.ts.map +1 -0
- package/lib/dist/resolution/project-scans.js +30 -0
- package/lib/dist/resolution/project-scans.js.map +1 -0
- package/lib/dist/resolution/python-overloads.d.ts +10 -0
- package/lib/dist/resolution/python-overloads.d.ts.map +1 -0
- package/lib/dist/resolution/python-overloads.js +75 -0
- package/lib/dist/resolution/python-overloads.js.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/react-router-synthesizer.js +3 -55
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/resolver-pool.d.ts +23 -2
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +43 -111
- package/lib/dist/resolution/resolver-pool.js.map +1 -1
- package/lib/dist/resolution/resolver-worker.d.ts +1 -1
- package/lib/dist/resolution/resolver-worker.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-worker.js +8 -37
- package/lib/dist/resolution/resolver-worker.js.map +1 -1
- package/lib/dist/resolution/resurrect-ref.d.ts +25 -0
- package/lib/dist/resolution/resurrect-ref.d.ts.map +1 -0
- package/lib/dist/resolution/resurrect-ref.js +19 -0
- package/lib/dist/resolution/resurrect-ref.js.map +1 -0
- package/lib/dist/resolution/ruby-constant-paths.d.ts +56 -0
- package/lib/dist/resolution/ruby-constant-paths.d.ts.map +1 -0
- package/lib/dist/resolution/ruby-constant-paths.js +255 -0
- package/lib/dist/resolution/ruby-constant-paths.js.map +1 -0
- package/lib/dist/resolution/ruby-parameter-flow.d.ts +10 -0
- package/lib/dist/resolution/ruby-parameter-flow.d.ts.map +1 -0
- package/lib/dist/resolution/ruby-parameter-flow.js +801 -0
- package/lib/dist/resolution/ruby-parameter-flow.js.map +1 -0
- package/lib/dist/resolution/rust-scopes.d.ts +120 -0
- package/lib/dist/resolution/rust-scopes.d.ts.map +1 -0
- package/lib/dist/resolution/rust-scopes.js +730 -0
- package/lib/dist/resolution/rust-scopes.js.map +1 -0
- package/lib/dist/resolution/shopify-themes.d.ts +10 -0
- package/lib/dist/resolution/shopify-themes.d.ts.map +1 -0
- package/lib/dist/resolution/shopify-themes.js +19 -0
- package/lib/dist/resolution/shopify-themes.js.map +1 -0
- package/lib/dist/resolution/strip-comments.d.ts +20 -1
- package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
- package/lib/dist/resolution/strip-comments.js +164 -119
- package/lib/dist/resolution/strip-comments.js.map +1 -1
- package/lib/dist/resolution/sveltekit-synthesizer.js +0 -64
- package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -1
- package/lib/dist/resolution/swift-objc-bridge.js +0 -160
- package/lib/dist/resolution/swift-objc-bridge.js.map +1 -1
- package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -1
- package/lib/dist/resolution/swift-type-visibility.js +62 -104
- package/lib/dist/resolution/swift-type-visibility.js.map +1 -1
- package/lib/dist/resolution/synth-utils.js +1 -22
- package/lib/dist/resolution/synth-utils.js.map +1 -1
- package/lib/dist/resolution/tanstack-router-synthesizer.js +0 -32
- package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/tauri-synthesizer.d.ts +37 -0
- package/lib/dist/resolution/tauri-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tauri-synthesizer.js +1038 -0
- package/lib/dist/resolution/tauri-synthesizer.js.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/tier-synthesizer.js +35 -177
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -1
- package/lib/dist/resolution/type-parameters.d.ts +23 -0
- package/lib/dist/resolution/type-parameters.d.ts.map +1 -1
- package/lib/dist/resolution/type-parameters.js +52 -54
- package/lib/dist/resolution/type-parameters.js.map +1 -1
- package/lib/dist/resolution/types.d.ts +192 -11
- package/lib/dist/resolution/types.d.ts.map +1 -1
- package/lib/dist/resolution/types.js +0 -47
- package/lib/dist/resolution/types.js.map +1 -1
- package/lib/dist/resolution/vbnet-receivers.d.ts +92 -0
- package/lib/dist/resolution/vbnet-receivers.d.ts.map +1 -0
- package/lib/dist/resolution/vbnet-receivers.js +1482 -0
- package/lib/dist/resolution/vbnet-receivers.js.map +1 -0
- package/lib/dist/resolution/vue-router-synthesizer.js +0 -31
- package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/workspace-packages.d.ts +206 -15
- package/lib/dist/resolution/workspace-packages.d.ts.map +1 -1
- package/lib/dist/resolution/workspace-packages.js +573 -152
- package/lib/dist/resolution/workspace-packages.js.map +1 -1
- package/lib/dist/search/identifier-segments.js +2 -93
- package/lib/dist/search/identifier-segments.js.map +1 -1
- package/lib/dist/search/query-parser.js +0 -54
- package/lib/dist/search/query-parser.js.map +1 -1
- package/lib/dist/search/query-paths.js +0 -167
- package/lib/dist/search/query-paths.js.map +1 -1
- package/lib/dist/search/query-utils.d.ts +44 -0
- package/lib/dist/search/query-utils.d.ts.map +1 -1
- package/lib/dist/search/query-utils.js +120 -198
- package/lib/dist/search/query-utils.js.map +1 -1
- package/lib/dist/sync/git-hooks.d.ts +14 -5
- package/lib/dist/sync/git-hooks.d.ts.map +1 -1
- package/lib/dist/sync/git-hooks.js +118 -65
- package/lib/dist/sync/git-hooks.js.map +1 -1
- package/lib/dist/sync/index.js +0 -14
- package/lib/dist/sync/index.js.map +1 -1
- package/lib/dist/sync/watch-policy.js +0 -45
- package/lib/dist/sync/watch-policy.js.map +1 -1
- package/lib/dist/sync/watcher.d.ts +29 -11
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +83 -487
- package/lib/dist/sync/watcher.js.map +1 -1
- package/lib/dist/sync/worktree.d.ts +7 -2
- package/lib/dist/sync/worktree.d.ts.map +1 -1
- package/lib/dist/sync/worktree.js +24 -97
- package/lib/dist/sync/worktree.js.map +1 -1
- package/lib/dist/telemetry/index.d.ts.map +1 -1
- package/lib/dist/telemetry/index.js +15 -135
- package/lib/dist/telemetry/index.js.map +1 -1
- package/lib/dist/types.d.ts +46 -0
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +15 -44
- package/lib/dist/types.js.map +1 -1
- package/lib/dist/ui/color.js +0 -19
- package/lib/dist/ui/color.js.map +1 -1
- package/lib/dist/ui/glyphs.js +2 -45
- package/lib/dist/ui/glyphs.js.map +1 -1
- package/lib/dist/ui/shimmer-progress.js +0 -21
- package/lib/dist/ui/shimmer-progress.js.map +1 -1
- package/lib/dist/ui/shimmer-worker.js +0 -22
- package/lib/dist/ui/shimmer-worker.js.map +1 -1
- package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -1
- package/lib/dist/ui-server/api/deadcode.js +2 -31
- package/lib/dist/ui-server/api/deadcode.js.map +1 -1
- package/lib/dist/ui-server/api/effects.js +0 -111
- package/lib/dist/ui-server/api/effects.js.map +1 -1
- package/lib/dist/ui-server/api/entrypoints.js +0 -142
- package/lib/dist/ui-server/api/entrypoints.js.map +1 -1
- package/lib/dist/ui-server/api/events.js +0 -145
- package/lib/dist/ui-server/api/events.js.map +1 -1
- package/lib/dist/ui-server/api/file.js +0 -80
- package/lib/dist/ui-server/api/file.js.map +1 -1
- package/lib/dist/ui-server/api/filecode.js +0 -95
- package/lib/dist/ui-server/api/filecode.js.map +1 -1
- package/lib/dist/ui-server/api/flow.js +0 -149
- package/lib/dist/ui-server/api/flow.js.map +1 -1
- package/lib/dist/ui-server/api/hierarchy.js +0 -28
- package/lib/dist/ui-server/api/hierarchy.js.map +1 -1
- package/lib/dist/ui-server/api/index.js +0 -88
- package/lib/dist/ui-server/api/index.js.map +1 -1
- package/lib/dist/ui-server/api/map.d.ts.map +1 -1
- package/lib/dist/ui-server/api/map.js +4 -317
- package/lib/dist/ui-server/api/map.js.map +1 -1
- package/lib/dist/ui-server/api/node.js +0 -111
- package/lib/dist/ui-server/api/node.js.map +1 -1
- package/lib/dist/ui-server/api/nodes.js +0 -16
- package/lib/dist/ui-server/api/nodes.js.map +1 -1
- package/lib/dist/ui-server/api/program.js +0 -90
- package/lib/dist/ui-server/api/program.js.map +1 -1
- package/lib/dist/ui-server/api/respond.js +0 -60
- package/lib/dist/ui-server/api/respond.js.map +1 -1
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -1
- package/lib/dist/ui-server/api/route-roots.js +2 -44
- package/lib/dist/ui-server/api/route-roots.js.map +1 -1
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -1
- package/lib/dist/ui-server/api/routes.js +4 -60
- package/lib/dist/ui-server/api/routes.js.map +1 -1
- package/lib/dist/ui-server/api/screens.d.ts.map +1 -1
- package/lib/dist/ui-server/api/screens.js +4 -174
- package/lib/dist/ui-server/api/screens.js.map +1 -1
- package/lib/dist/ui-server/api/search.js +0 -62
- package/lib/dist/ui-server/api/search.js.map +1 -1
- package/lib/dist/ui-server/api/session.js +0 -58
- package/lib/dist/ui-server/api/session.js.map +1 -1
- package/lib/dist/ui-server/api/source.d.ts.map +1 -1
- package/lib/dist/ui-server/api/source.js +0 -161
- package/lib/dist/ui-server/api/source.js.map +1 -1
- package/lib/dist/ui-server/api/stats.js +0 -58
- package/lib/dist/ui-server/api/stats.js.map +1 -1
- package/lib/dist/ui-server/api/steps.d.ts.map +1 -1
- package/lib/dist/ui-server/api/steps.js +5 -381
- package/lib/dist/ui-server/api/steps.js.map +1 -1
- package/lib/dist/ui-server/api/trail-store.d.ts +3 -3
- package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -1
- package/lib/dist/ui-server/api/trail-store.js +24 -106
- package/lib/dist/ui-server/api/trail-store.js.map +1 -1
- package/lib/dist/ui-server/api/trails.d.ts.map +1 -1
- package/lib/dist/ui-server/api/trails.js +19 -94
- package/lib/dist/ui-server/api/trails.js.map +1 -1
- package/lib/dist/ui-server/api/when.js +0 -36
- package/lib/dist/ui-server/api/when.js.map +1 -1
- package/lib/dist/ui-server/api/wire.js +0 -58
- package/lib/dist/ui-server/api/wire.js.map +1 -1
- package/lib/dist/ui-server/assets.js +0 -35
- package/lib/dist/ui-server/assets.js.map +1 -1
- package/lib/dist/ui-server/constants.js +0 -26
- package/lib/dist/ui-server/constants.js.map +1 -1
- package/lib/dist/ui-server/highlight/bounded-tokenize.js +0 -25
- package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -1
- package/lib/dist/ui-server/highlight/index.js +1 -132
- package/lib/dist/ui-server/highlight/index.js.map +1 -1
- package/lib/dist/ui-server/highlight/languages.d.ts +3 -3
- package/lib/dist/ui-server/highlight/languages.js +0 -31
- package/lib/dist/ui-server/highlight/languages.js.map +1 -1
- package/lib/dist/ui-server/highlight/tokenize-worker.js +0 -5
- package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -1
- package/lib/dist/ui-server/index.d.ts +25 -0
- package/lib/dist/ui-server/index.d.ts.map +1 -1
- package/lib/dist/ui-server/index.js +35 -103
- package/lib/dist/ui-server/index.js.map +1 -1
- package/lib/dist/ui-server/open-browser.js +0 -34
- package/lib/dist/ui-server/open-browser.js.map +1 -1
- package/lib/dist/ui-server/security.d.ts +5 -0
- package/lib/dist/ui-server/security.d.ts.map +1 -1
- package/lib/dist/ui-server/security.js +11 -147
- package/lib/dist/ui-server/security.js.map +1 -1
- package/lib/dist/ui-server/static.js +0 -41
- package/lib/dist/ui-server/static.js.map +1 -1
- package/lib/dist/upgrade/index.d.ts +18 -5
- package/lib/dist/upgrade/index.d.ts.map +1 -1
- package/lib/dist/upgrade/index.js +73 -229
- package/lib/dist/upgrade/index.js.map +1 -1
- package/lib/dist/upgrade/remove-binary.js +2 -67
- package/lib/dist/upgrade/remove-binary.js.map +1 -1
- package/lib/dist/upgrade/update-check.js +1 -81
- package/lib/dist/upgrade/update-check.js.map +1 -1
- package/lib/dist/utils.d.ts +69 -1
- package/lib/dist/utils.d.ts.map +1 -1
- package/lib/dist/utils.js +224 -266
- package/lib/dist/utils.js.map +1 -1
- package/lib/dist/worker-teardown.js +0 -47
- package/lib/dist/worker-teardown.js.map +1 -1
- package/lib/kernel/codegraph-kernel.node +2 -2
- package/lib/node_modules/.package-lock.json +4 -4
- package/lib/node_modules/ignore/README.md +138 -8
- package/lib/node_modules/ignore/index.d.ts +56 -20
- package/lib/node_modules/ignore/index.js +1033 -221
- package/lib/node_modules/ignore/legacy.js +871 -178
- package/lib/node_modules/ignore/package.json +10 -4
- package/lib/package.json +14 -8
- package/node.exe +2 -2
- package/package.json +1 -1
|
@@ -1,41 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Function-as-value capture (#756) — registration-linking for callbacks.
|
|
4
|
-
*
|
|
5
|
-
* A function name used as a VALUE — passed as a call argument
|
|
6
|
-
* (`register_handler(target_cb)`, `signal(SIGINT, handler)`), assigned to a
|
|
7
|
-
* field or function pointer (`o->cb = target_cb`, `OnFire := TargetCb`),
|
|
8
|
-
* placed in a struct/object initializer (`{ .recv_cb = my_cb }`,
|
|
9
|
-
* `{ recv: targetCb }`, `Ops{Cb: targetCb}`), or listed in a function table
|
|
10
|
-
* (`static cb_t table[] = { cb_a, cb_b }`) — is a real dependency that static
|
|
11
|
-
* call extraction misses entirely: `callers(target_cb)` showed nothing but
|
|
12
|
-
* direct calls, so every callback looked dead and its registration sites were
|
|
13
|
-
* invisible to impact analysis.
|
|
14
|
-
*
|
|
15
|
-
* This module captures those value positions during the AST walk as
|
|
16
|
-
* `function_ref` candidates. Capture is table-driven per language (the value
|
|
17
|
-
* positions and wrapper forms differ per grammar — `&fn` in C, `Main::fn` in
|
|
18
|
-
* Java, `::fn` in Kotlin, `#selector(fn)` in Swift, `@TargetCb` in Pascal,
|
|
19
|
-
* `method(:fn)` in Ruby). Candidates are GATED at end-of-file extraction
|
|
20
|
-
* (see `TreeSitterExtractor.flushFnRefCandidates`): only names matching a
|
|
21
|
-
* same-file function/method or an imported binding survive, which bounds
|
|
22
|
-
* volume and keeps precision high. Resolution then matches survivors against
|
|
23
|
-
* function/method nodes ONLY (`matchFunctionRef` in
|
|
24
|
-
* `src/resolution/name-matcher.ts`) and persists them as `references` edges,
|
|
25
|
-
* which `callers`/`impact` already traverse.
|
|
26
|
-
*
|
|
27
|
-
* Deliberately NOT covered (resolving the *dispatch* — `o->cb(x)` → the
|
|
28
|
-
* registered function — needs data-flow through struct fields; a wrong edge
|
|
29
|
-
* is worse than none): indirect-call resolution. Member values where the
|
|
30
|
-
* receiver isn't `this`/`self` (`pool.submit(obj.method)`, `Submit(c.store.Fetch)`)
|
|
31
|
-
* retain their receiver (#1820), so resolution can use type/import scope
|
|
32
|
-
* before considering a unique method name.
|
|
33
|
-
*/
|
|
34
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
3
|
exports.FN_REF_SPECS = void 0;
|
|
36
4
|
exports.captureFnRefCandidates = captureFnRefCandidates;
|
|
5
|
+
exports.goFnRefSite = goFnRefSite;
|
|
6
|
+
exports.goLocalBindings = goLocalBindings;
|
|
7
|
+
exports.goScopedFnRefScopes = goScopedFnRefScopes;
|
|
37
8
|
const tree_sitter_helpers_1 = require("./tree-sitter-helpers");
|
|
38
|
-
/** Names that are never function references even when grammars call them identifiers. */
|
|
39
9
|
const NAME_STOPLIST = new Set([
|
|
40
10
|
'this',
|
|
41
11
|
'self',
|
|
@@ -50,11 +20,6 @@ const NAME_STOPLIST = new Set([
|
|
|
50
20
|
'nullptr',
|
|
51
21
|
'None',
|
|
52
22
|
]);
|
|
53
|
-
// ---------------------------------------------------------------------------
|
|
54
|
-
// Per-language specs. Node types verified against each grammar (probe fixtures
|
|
55
|
-
// in the #756 investigation; see docs/design/function-ref-capture.md).
|
|
56
|
-
// ---------------------------------------------------------------------------
|
|
57
|
-
/** C / C++ / Objective-C share the C-family initializer & assignment shapes. */
|
|
58
23
|
function cFamilySpec(extra) {
|
|
59
24
|
return {
|
|
60
25
|
idTypes: new Set(['identifier']),
|
|
@@ -67,31 +32,11 @@ function cFamilySpec(extra) {
|
|
|
67
32
|
]),
|
|
68
33
|
unwrap: new Map([['pointer_expression', 'argument']]),
|
|
69
34
|
special: new Set(extra?.special ?? []),
|
|
70
|
-
// C has no symbol imports, and callbacks are registered cross-file at repo
|
|
71
|
-
// scale (redis: server.c's command table names handlers from t_*.c) — so
|
|
72
|
-
// initializer positions bypass the gate and lean on resolution's
|
|
73
|
-
// unique-or-drop rule. ONLY 'value'/'list' (struct/array initializers),
|
|
74
|
-
// and the flush additionally requires FILE scope: a C file-scope
|
|
75
|
-
// initializer is a constant-expression context, so a bare identifier
|
|
76
|
-
// there can only be a function address (or enum/macro, which the
|
|
77
|
-
// function-kind filter drops) — never a variable. 'rhs'/'varinit' were
|
|
78
|
-
// tried and produced false edges (`prev = next`, `*str = field` — data
|
|
79
|
-
// assignments matching a unique same-named function elsewhere), so
|
|
80
|
-
// assignments stay gated to same-file/import.
|
|
81
35
|
ungatedModes: new Set(['value', 'list']),
|
|
82
36
|
addressOfOnly: extra?.addressOfOnly,
|
|
83
37
|
};
|
|
84
38
|
}
|
|
85
|
-
// `this.handleClick` capture (member_expression) emits a `this.`-PREFIXED
|
|
86
|
-
// candidate name: resolution scopes it to the enclosing symbol's class
|
|
87
|
-
// (qualified-name prefix), so `this.fonts` (a property, post-#808) and
|
|
88
|
-
// inherited/unknown members yield no edge, while same-class methods —
|
|
89
|
-
// `btn.on('click', this.handleClick)`, the observer-registration idiom —
|
|
90
|
-
// resolve precisely. Bare identifiers stay function-kind-only (a bare id can
|
|
91
|
-
// never be a method value in JS).
|
|
92
39
|
const TS_JS_SPEC = {
|
|
93
|
-
// `shorthand_property_identifier`: `{ handleSubmit }` — the object a hook
|
|
94
|
-
// returns its handlers in, and a namespace object's members.
|
|
95
40
|
idTypes: new Set(['identifier', 'shorthand_property_identifier']),
|
|
96
41
|
dispatch: new Map([
|
|
97
42
|
['arguments', { mode: 'args' }],
|
|
@@ -99,16 +44,7 @@ const TS_JS_SPEC = {
|
|
|
99
44
|
['variable_declarator', { mode: 'varinit', field: 'value' }],
|
|
100
45
|
['pair', { mode: 'value', field: 'value' }],
|
|
101
46
|
['array', { mode: 'list' }],
|
|
102
|
-
// A JSX attribute value or child: `onPress={handleSubmit}`, `renderItem={renderRow}`,
|
|
103
|
-
// `<Route component={Home}/>`. The expression's one named child is the value; a
|
|
104
|
-
// spread or a call normalizes to nothing. This is THE handler-binding idiom of
|
|
105
|
-
// React, and without it a tap's handler had no edge from the component that
|
|
106
|
-
// renders it — the Screens and Steps views could not see what a tap does.
|
|
107
47
|
['jsx_expression', { mode: 'list' }],
|
|
108
|
-
// An object literal's shorthand members — `return { handleApprove,
|
|
109
|
-
// handleRetake }` from a hook, `const Api = { upload, createFolder }`.
|
|
110
|
-
// Every named child is offered; only a shorthand identifier normalizes
|
|
111
|
-
// (a `pair` is its own container above, a spread or a method is nothing).
|
|
112
48
|
['object', { mode: 'list' }],
|
|
113
49
|
]),
|
|
114
50
|
special: new Set(['member_expression']),
|
|
@@ -118,14 +54,9 @@ const PYTHON_SPEC = {
|
|
|
118
54
|
dispatch: new Map([
|
|
119
55
|
['argument_list', { mode: 'args' }],
|
|
120
56
|
['assignment', { mode: 'rhs', field: 'right' }],
|
|
121
|
-
['keyword_argument', { mode: 'value', field: 'value' }],
|
|
57
|
+
['keyword_argument', { mode: 'value', field: 'value' }],
|
|
122
58
|
['pair', { mode: 'value', field: 'value' }],
|
|
123
59
|
['list', { mode: 'list' }],
|
|
124
|
-
// `return SomeClass` / `return handler` — factory returns are how DRF
|
|
125
|
-
// wires views to serializers (get_serializer_class) and how Python
|
|
126
|
-
// factories hand back callables (#1478). A single returned expression is
|
|
127
|
-
// a direct named child, so 'list' covers it; tuple returns (`return A, B`)
|
|
128
|
-
// sit under an expression_list child and are deliberately not descended.
|
|
129
60
|
['return_statement', { mode: 'list' }],
|
|
130
61
|
]),
|
|
131
62
|
special: new Set(['attribute']),
|
|
@@ -137,8 +68,8 @@ const GO_SPEC = {
|
|
|
137
68
|
['assignment_statement', { mode: 'rhs', field: 'right' }],
|
|
138
69
|
['short_var_declaration', { mode: 'rhs', field: 'right' }],
|
|
139
70
|
['var_spec', { mode: 'varinit', field: 'value' }],
|
|
140
|
-
['keyed_element', { mode: 'value' }],
|
|
141
|
-
['literal_value', { mode: 'list' }],
|
|
71
|
+
['keyed_element', { mode: 'value' }],
|
|
72
|
+
['literal_value', { mode: 'list' }],
|
|
142
73
|
]),
|
|
143
74
|
layers: new Map([
|
|
144
75
|
['literal_element', null],
|
|
@@ -156,9 +87,9 @@ const RUST_SPEC = {
|
|
|
156
87
|
['static_item', { mode: 'varinit', field: 'value' }],
|
|
157
88
|
['let_declaration', { mode: 'varinit', field: 'value' }],
|
|
158
89
|
]),
|
|
90
|
+
special: new Set(['scoped_identifier']),
|
|
159
91
|
};
|
|
160
92
|
const JAVA_SPEC = {
|
|
161
|
-
// No bare-identifier function values in Java — only method references.
|
|
162
93
|
idTypes: new Set(),
|
|
163
94
|
dispatch: new Map([
|
|
164
95
|
['argument_list', { mode: 'args' }],
|
|
@@ -171,7 +102,7 @@ const KOTLIN_SPEC = {
|
|
|
171
102
|
idTypes: new Set(),
|
|
172
103
|
dispatch: new Map([
|
|
173
104
|
['value_arguments', { mode: 'args' }],
|
|
174
|
-
['assignment', { mode: 'rhs' }],
|
|
105
|
+
['assignment', { mode: 'rhs' }],
|
|
175
106
|
]),
|
|
176
107
|
layers: new Map([['value_argument', null]]),
|
|
177
108
|
special: new Set(['callable_reference', 'navigation_expression']),
|
|
@@ -180,7 +111,7 @@ const CSHARP_SPEC = {
|
|
|
180
111
|
idTypes: new Set(['identifier']),
|
|
181
112
|
dispatch: new Map([
|
|
182
113
|
['argument_list', { mode: 'args' }],
|
|
183
|
-
['assignment_expression', { mode: 'rhs', field: 'right' }],
|
|
114
|
+
['assignment_expression', { mode: 'rhs', field: 'right' }],
|
|
184
115
|
['initializer_expression', { mode: 'list' }],
|
|
185
116
|
['variable_declarator', { mode: 'varinit' }],
|
|
186
117
|
]),
|
|
@@ -188,9 +119,6 @@ const CSHARP_SPEC = {
|
|
|
188
119
|
special: new Set(['member_access_expression']),
|
|
189
120
|
};
|
|
190
121
|
const RUBY_SPEC = {
|
|
191
|
-
// Bare identifiers in Ruby args are method CALLS or locals, never function
|
|
192
|
-
// values — only the `method(:name)` idiom (and `&method(:name)`) plus
|
|
193
|
-
// hook-DSL symbols (`before_action :authenticate`) qualify.
|
|
194
122
|
idTypes: new Set(),
|
|
195
123
|
dispatch: new Map([
|
|
196
124
|
['argument_list', { mode: 'args' }],
|
|
@@ -199,13 +127,6 @@ const RUBY_SPEC = {
|
|
|
199
127
|
layers: new Map([['block_argument', null]]),
|
|
200
128
|
special: new Set(['call', 'simple_symbol']),
|
|
201
129
|
};
|
|
202
|
-
/**
|
|
203
|
-
* Rails/ActiveSupport-style hook DSLs whose symbol arguments name a method of
|
|
204
|
-
* the enclosing class: lifecycle callbacks (`before_action`, `after_save`,
|
|
205
|
-
* `around_create`, `skip_before_action`…), `validate :method`, `set_callback`,
|
|
206
|
-
* `helper_method`, and `rescue_from(..., with: :handler)`. NOT `validates`
|
|
207
|
-
* (plural) — its symbols name ATTRIBUTES, not methods.
|
|
208
|
-
*/
|
|
209
130
|
const RUBY_HOOK_RE = /^(skip_)?(before|after|around)_[a-z_]+$/;
|
|
210
131
|
const RUBY_HOOK_NAMES = new Set(['validate', 'set_callback', 'helper_method', 'rescue_from']);
|
|
211
132
|
function isRubyHookCall(name) {
|
|
@@ -229,7 +150,7 @@ const SCALA_SPEC = {
|
|
|
229
150
|
['assignment_expression', { mode: 'rhs', field: 'right' }],
|
|
230
151
|
['val_definition', { mode: 'varinit', field: 'value' }],
|
|
231
152
|
]),
|
|
232
|
-
unwrap: new Map([['postfix_expression', null]]),
|
|
153
|
+
unwrap: new Map([['postfix_expression', null]]),
|
|
233
154
|
};
|
|
234
155
|
const DART_SPEC = {
|
|
235
156
|
idTypes: new Set(['identifier']),
|
|
@@ -246,8 +167,8 @@ const LUA_SPEC = {
|
|
|
246
167
|
idTypes: new Set(['identifier']),
|
|
247
168
|
dispatch: new Map([
|
|
248
169
|
['arguments', { mode: 'args' }],
|
|
249
|
-
['assignment_statement', { mode: 'rhs' }],
|
|
250
|
-
['field', { mode: 'value', field: 'value' }],
|
|
170
|
+
['assignment_statement', { mode: 'rhs' }],
|
|
171
|
+
['field', { mode: 'value', field: 'value' }],
|
|
251
172
|
]),
|
|
252
173
|
layers: new Map([['expression_list', null]]),
|
|
253
174
|
};
|
|
@@ -255,16 +176,11 @@ const PASCAL_SPEC = {
|
|
|
255
176
|
idTypes: new Set(['identifier']),
|
|
256
177
|
dispatch: new Map([
|
|
257
178
|
['exprArgs', { mode: 'args' }],
|
|
258
|
-
['assignment', { mode: 'rhs', field: 'rhs' }],
|
|
179
|
+
['assignment', { mode: 'rhs', field: 'rhs' }],
|
|
259
180
|
]),
|
|
260
|
-
unwrap: new Map([['exprUnary', 'operand']]),
|
|
181
|
+
unwrap: new Map([['exprUnary', 'operand']]),
|
|
182
|
+
addressOfOnly: true,
|
|
261
183
|
};
|
|
262
|
-
/**
|
|
263
|
-
* PHP core functions whose string arguments are CALLABLES — the positional
|
|
264
|
-
* prior that makes a bare string trustworthy as a function reference.
|
|
265
|
-
* Deliberately core-PHP only; framework registries (WordPress `add_action`)
|
|
266
|
-
* belong in a frameworks/ resolver if ever added.
|
|
267
|
-
*/
|
|
268
184
|
const PHP_CALLABLE_HOFS = new Set([
|
|
269
185
|
'array_map', 'array_filter', 'array_walk', 'array_walk_recursive', 'array_reduce',
|
|
270
186
|
'usort', 'uasort', 'uksort',
|
|
@@ -278,20 +194,11 @@ const PHP_CALLABLE_HOFS = new Set([
|
|
|
278
194
|
'is_callable',
|
|
279
195
|
]);
|
|
280
196
|
const PHP_SPEC = {
|
|
281
|
-
// PHP has no bare-identifier function values (the first-class callable
|
|
282
|
-
// `fn(...)` already extracts as a `calls` edge). What qualifies:
|
|
283
|
-
// - a string argument to a known callable-taking core function
|
|
284
|
-
// (`usort($a, 'cmp_items')`) — see PHP_CALLABLE_HOFS
|
|
285
|
-
// - array callables: `[$this, 'method']` (class-scoped) and
|
|
286
|
-
// `[Foo::class, 'method']` (qualified), in any call's arguments
|
|
287
197
|
idTypes: new Set(),
|
|
288
198
|
dispatch: new Map([['arguments', { mode: 'args' }]]),
|
|
289
199
|
layers: new Map([['argument', null]]),
|
|
290
200
|
special: new Set(['encapsed_string', 'string', 'array_creation_expression']),
|
|
291
201
|
};
|
|
292
|
-
/**
|
|
293
|
-
* Capture specs by language.
|
|
294
|
-
*/
|
|
295
202
|
exports.FN_REF_SPECS = {
|
|
296
203
|
c: cFamilySpec(),
|
|
297
204
|
cpp: cFamilySpec({ addressOfOnly: true }),
|
|
@@ -315,13 +222,6 @@ exports.FN_REF_SPECS = {
|
|
|
315
222
|
luau: LUA_SPEC,
|
|
316
223
|
pascal: PASCAL_SPEC,
|
|
317
224
|
};
|
|
318
|
-
// ---------------------------------------------------------------------------
|
|
319
|
-
// Capture
|
|
320
|
-
// ---------------------------------------------------------------------------
|
|
321
|
-
/**
|
|
322
|
-
* Extract candidate names from a dispatched container node. Returns the
|
|
323
|
-
* (name, position) pairs of every function-value-shaped expression found.
|
|
324
|
-
*/
|
|
325
225
|
function captureFnRefCandidates(container, rule, spec, source) {
|
|
326
226
|
const valueNodes = [];
|
|
327
227
|
switch (rule.mode) {
|
|
@@ -339,11 +239,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
339
239
|
? (0, tree_sitter_helpers_1.getChildByField)(container, rule.field)
|
|
340
240
|
: container.namedChild(container.namedChildCount - 1);
|
|
341
241
|
if (rhs) {
|
|
342
|
-
// Param-storage skip: `this.status = status` / `o->cb = cb` — when
|
|
343
|
-
// the assigned member's name EQUALS the RHS identifier, the RHS is a
|
|
344
|
-
// local/parameter being stored, and the function it holds (if any)
|
|
345
|
-
// is unknowable statically. A same-named function elsewhere would
|
|
346
|
-
// resolve to the WRONG target (excalidraw A/B finding), so skip.
|
|
347
242
|
const lhs = (0, tree_sitter_helpers_1.getChildByField)(container, 'left') ??
|
|
348
243
|
(0, tree_sitter_helpers_1.getChildByField)(container, 'lhs') ??
|
|
349
244
|
(0, tree_sitter_helpers_1.getChildByField)(container, 'target') ??
|
|
@@ -359,8 +254,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
359
254
|
}
|
|
360
255
|
case 'value': {
|
|
361
256
|
let value = rule.field ? (0, tree_sitter_helpers_1.getChildByField)(container, rule.field) : null;
|
|
362
|
-
// Keyed containers without a value field (Go keyed_element): the value
|
|
363
|
-
// is the LAST named child (the first is the key).
|
|
364
257
|
if (!value && container.namedChildCount > 0) {
|
|
365
258
|
value = container.namedChild(container.namedChildCount - 1);
|
|
366
259
|
}
|
|
@@ -369,9 +262,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
369
262
|
break;
|
|
370
263
|
}
|
|
371
264
|
case 'varinit': {
|
|
372
|
-
// Destructuring (`const { center } = ellipse`) extracts DATA from the
|
|
373
|
-
// RHS — never a function alias. Without this skip, a parameter that
|
|
374
|
-
// shadows a same-named imported function produced a wrong edge.
|
|
375
265
|
const nameNode = (0, tree_sitter_helpers_1.getChildByField)(container, 'name') ?? (0, tree_sitter_helpers_1.getChildByField)(container, 'pattern');
|
|
376
266
|
if (nameNode && (nameNode.type === 'object_pattern' || nameNode.type === 'array_pattern' ||
|
|
377
267
|
nameNode.type === 'tuple_pattern' || nameNode.type === 'struct_pattern')) {
|
|
@@ -383,10 +273,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
383
273
|
valueNodes.push(value);
|
|
384
274
|
}
|
|
385
275
|
else {
|
|
386
|
-
// No value field in this grammar (C# variable_declarator, Dart
|
|
387
|
-
// static_final_declaration): the initializer is the last named child —
|
|
388
|
-
// but a declarator WITHOUT an initializer has its NAME there instead.
|
|
389
|
-
// Require ≥2 named children and never pick the name/pattern child.
|
|
390
276
|
const value = container.namedChild(container.namedChildCount - 1);
|
|
391
277
|
const nameChild = (0, tree_sitter_helpers_1.getChildByField)(container, 'name') ?? (0, tree_sitter_helpers_1.getChildByField)(container, 'pattern');
|
|
392
278
|
if (value &&
|
|
@@ -400,10 +286,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
400
286
|
}
|
|
401
287
|
const out = [];
|
|
402
288
|
for (const v of valueNodes) {
|
|
403
|
-
// A bare identifier is one that normalizes without passing through an
|
|
404
|
-
// unwrap/special reference form. C++'s addressOfOnly policy (applied at
|
|
405
|
-
// flush, where file scope is known) drops bare ids outside file-scope
|
|
406
|
-
// initializer tables.
|
|
407
289
|
const explicitRef = !spec.idTypes.has(v.type);
|
|
408
290
|
for (const { name, node, skipGate } of normalizeValue(v, spec, source, 0)) {
|
|
409
291
|
if (!name || NAME_STOPLIST.has(name))
|
|
@@ -420,27 +302,15 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
420
302
|
}
|
|
421
303
|
return out;
|
|
422
304
|
}
|
|
423
|
-
/**
|
|
424
|
-
* Normalize one value expression to zero or more function names. Recursion is
|
|
425
|
-
* bounded (wrapper layers only); anything that isn't a recognized
|
|
426
|
-
* function-value shape yields [].
|
|
427
|
-
*/
|
|
428
305
|
function normalizeValue(node, spec, source, depth) {
|
|
429
306
|
if (depth > 4)
|
|
430
307
|
return [];
|
|
431
308
|
const type = node.type;
|
|
432
|
-
// Bare identifier
|
|
433
309
|
if (spec.idTypes.has(type)) {
|
|
434
310
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(node, source), node }];
|
|
435
311
|
}
|
|
436
|
-
// Transparent layers (argument, value_argument, literal_element,
|
|
437
|
-
// expression_list, block_argument). expression_list fans out (Go `a, b = f, g`).
|
|
438
312
|
const layerField = spec.layers?.get(type);
|
|
439
313
|
if (spec.layers?.has(type)) {
|
|
440
|
-
// Labeled-argument param-forward skip (Swift/Kotlin): `value: value` /
|
|
441
|
-
// `delay: delay` — when the label EQUALS the value identifier, the value
|
|
442
|
-
// is a forwarded local/parameter, not a function reference (Alamofire
|
|
443
|
-
// A/B finding; same rationale as the `this.x = x` assignment skip).
|
|
444
314
|
if (type === 'value_argument') {
|
|
445
315
|
const label = (0, tree_sitter_helpers_1.getChildByField)(node, 'name');
|
|
446
316
|
const value = (0, tree_sitter_helpers_1.getChildByField)(node, 'value') ?? node.namedChild(node.namedChildCount - 1);
|
|
@@ -462,35 +332,24 @@ function normalizeValue(node, spec, source, depth) {
|
|
|
462
332
|
}
|
|
463
333
|
return results;
|
|
464
334
|
}
|
|
465
|
-
// Unary wrappers: &fn / @Fn / `fn _`
|
|
466
335
|
const unwrapField = spec.unwrap?.get(type);
|
|
467
336
|
if (spec.unwrap?.has(type)) {
|
|
468
|
-
// C-family `pointer_expression` covers BOTH `&x` (address-of — a function
|
|
469
|
-
// value) and `*x` (dereference — a data read, never a function value).
|
|
470
|
-
// Only `&` qualifies; without this, fmt's `*begin` reads resolved to its
|
|
471
|
-
// free `begin()` functions.
|
|
472
337
|
if (type === 'pointer_expression' && node.child(0)?.type !== '&')
|
|
473
338
|
return [];
|
|
474
339
|
const inner = unwrapField ? (0, tree_sitter_helpers_1.getChildByField)(node, unwrapField) : node.namedChild(0);
|
|
475
340
|
if (!inner)
|
|
476
341
|
return [];
|
|
477
|
-
// C++ `&Widget::on_click` — keep the QUALIFIED name. Resolution scopes the
|
|
478
|
-
// method to that class (more precise than a bare-name match, and exempt
|
|
479
|
-
// from the cpp bare-ids-are-free-functions rule since `&Cls::m` is an
|
|
480
|
-
// explicit member-pointer).
|
|
481
342
|
if (inner.type === 'qualified_identifier') {
|
|
482
343
|
const text = (0, tree_sitter_helpers_1.getNodeText)(inner, source).trim();
|
|
483
344
|
return /^[A-Za-z_][\w:]*$/.test(text) ? [{ name: text, node: inner }] : [];
|
|
484
345
|
}
|
|
485
346
|
return normalizeValue(inner, spec, source, depth + 1);
|
|
486
347
|
}
|
|
487
|
-
// Special whole-node reference forms
|
|
488
348
|
if (spec.special?.has(type)) {
|
|
489
349
|
return normalizeSpecial(node, type, source);
|
|
490
350
|
}
|
|
491
351
|
return [];
|
|
492
352
|
}
|
|
493
|
-
/** Rightmost descendant-or-self named child of one of the given types. */
|
|
494
353
|
function lastNamedOfType(node, types) {
|
|
495
354
|
let found = null;
|
|
496
355
|
for (let i = 0; i < node.namedChildCount; i++) {
|
|
@@ -507,13 +366,6 @@ function lastNamedOfType(node, types) {
|
|
|
507
366
|
}
|
|
508
367
|
function normalizeSpecial(node, type, source) {
|
|
509
368
|
switch (type) {
|
|
510
|
-
// Java method references. Receiver decides the resolution route (#808):
|
|
511
|
-
// `this::run0` / `super::close` → `this.<m>` (class-scoped resolver;
|
|
512
|
-
// super rides the inherited-member supertype pass)
|
|
513
|
-
// `Type::method` (capitalized) → qualified `Type::method` (suffix-
|
|
514
|
-
// matched against that type's members, cross-file capable)
|
|
515
|
-
// `variable::method` → nothing (receiver type unknown statically —
|
|
516
|
-
// the deferred obj.method class)
|
|
517
369
|
case 'method_reference': {
|
|
518
370
|
let last = null;
|
|
519
371
|
for (let i = 0; i < node.namedChildCount; i++) {
|
|
@@ -530,15 +382,17 @@ function normalizeSpecial(node, type, source) {
|
|
|
530
382
|
}
|
|
531
383
|
const recv = text.match(/^([A-Z][A-Za-z0-9_]*)\s*::/);
|
|
532
384
|
if (recv) {
|
|
533
|
-
// `Type::method` — but `Type::new` (constructor ref) has no method
|
|
534
|
-
// node to land on; let the stoplist drop it via the bare name.
|
|
535
385
|
return m === 'new' ? [] : [{ name: `${recv[1]}::${m}`, node: last }];
|
|
536
386
|
}
|
|
537
387
|
return [];
|
|
538
388
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
389
|
+
case 'scoped_identifier': {
|
|
390
|
+
const name = (0, tree_sitter_helpers_1.getChildByField)(node, 'name');
|
|
391
|
+
if (!name || name.type !== 'identifier' || !/^(?:r#)?[a-z_]/.test((0, tree_sitter_helpers_1.getNodeText)(name, source)))
|
|
392
|
+
return [];
|
|
393
|
+
const text = (0, tree_sitter_helpers_1.getNodeText)(node, source).replace(/\s+/g, '');
|
|
394
|
+
return /^[A-Za-z_][\w:#]*$/.test(text) ? [{ name: text, node: name }] : [];
|
|
395
|
+
}
|
|
542
396
|
case 'callable_reference': {
|
|
543
397
|
let receiver = null;
|
|
544
398
|
let member = null;
|
|
@@ -555,16 +409,12 @@ function normalizeSpecial(node, type, source) {
|
|
|
555
409
|
return [];
|
|
556
410
|
const m = (0, tree_sitter_helpers_1.getNodeText)(member, source);
|
|
557
411
|
if (!receiver)
|
|
558
|
-
return [{ name: m, node: member }];
|
|
412
|
+
return [{ name: m, node: member }];
|
|
559
413
|
const recvText = (0, tree_sitter_helpers_1.getNodeText)(receiver, source);
|
|
560
414
|
return /^[A-Z]/.test(recvText)
|
|
561
415
|
? [{ name: `${recvText}::${m}`, node: member }]
|
|
562
|
-
: [];
|
|
416
|
+
: [];
|
|
563
417
|
}
|
|
564
|
-
// Kotlin `this::fire` parses as navigation_expression with a `::fire`
|
|
565
|
-
// navigation_suffix — route through the class-scoped `this.` resolver.
|
|
566
|
-
// Ordinary `a.b` navigation (and any non-`this` receiver) MUST yield
|
|
567
|
-
// nothing.
|
|
568
418
|
case 'navigation_expression': {
|
|
569
419
|
if (!(0, tree_sitter_helpers_1.getNodeText)(node, source).startsWith('this::'))
|
|
570
420
|
return [];
|
|
@@ -578,8 +428,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
578
428
|
}
|
|
579
429
|
return [];
|
|
580
430
|
}
|
|
581
|
-
// Go `c.store.Fetch` (has a `field` child) vs Swift `#selector(...)` /
|
|
582
|
-
// ObjC `@selector(...)` (no `field` — inner identifier / selector text).
|
|
583
431
|
case 'selector_expression': {
|
|
584
432
|
const field = (0, tree_sitter_helpers_1.getChildByField)(node, 'field');
|
|
585
433
|
if (field) {
|
|
@@ -595,14 +443,11 @@ function normalizeSpecial(node, type, source) {
|
|
|
595
443
|
if (inner.type === 'identifier' || inner.type === 'simple_identifier') {
|
|
596
444
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(inner, source), node: inner }];
|
|
597
445
|
}
|
|
598
|
-
// Swift dotted form: rightmost simple_identifier; ObjC keeps selector text.
|
|
599
446
|
const last = lastNamedOfType(node, new Set(['simple_identifier']));
|
|
600
447
|
if (last)
|
|
601
448
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(last, source), node: last }];
|
|
602
449
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(inner, source).trim(), node: inner }];
|
|
603
450
|
}
|
|
604
|
-
// Ruby `method(:target_cb)` — a `call` whose method is literally `method`
|
|
605
|
-
// with a single symbol argument.
|
|
606
451
|
case 'call': {
|
|
607
452
|
const method = (0, tree_sitter_helpers_1.getChildByField)(node, 'method');
|
|
608
453
|
if (!method || (0, tree_sitter_helpers_1.getNodeText)(method, source) !== 'method')
|
|
@@ -616,9 +461,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
616
461
|
const name = (0, tree_sitter_helpers_1.getNodeText)(sym, source).replace(/^:/, '');
|
|
617
462
|
return name ? [{ name, node: sym }] : [];
|
|
618
463
|
}
|
|
619
|
-
// `this.handleClick` (TS/JS) — object must be EXACTLY `this`. The name
|
|
620
|
-
// keeps the `this.` prefix so resolution can scope it to the enclosing
|
|
621
|
-
// class (see resolveThisMemberFnRef) instead of bare name-matching.
|
|
622
464
|
case 'member_expression': {
|
|
623
465
|
const obj = (0, tree_sitter_helpers_1.getChildByField)(node, 'object');
|
|
624
466
|
const prop = (0, tree_sitter_helpers_1.getChildByField)(node, 'property');
|
|
@@ -627,19 +469,12 @@ function normalizeSpecial(node, type, source) {
|
|
|
627
469
|
}
|
|
628
470
|
return [];
|
|
629
471
|
}
|
|
630
|
-
// Keep the receiver on Python member values; calls/subscripts are not
|
|
631
|
-
// statically named receivers and must not collapse to a bare method.
|
|
632
472
|
case 'attribute': {
|
|
633
473
|
const attr = (0, tree_sitter_helpers_1.getChildByField)(node, 'attribute');
|
|
634
474
|
const name = (0, tree_sitter_helpers_1.getNodeText)(node, source);
|
|
635
475
|
return attr && /^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)+$/.test(name)
|
|
636
476
|
? [{ name, node: attr, skipGate: true }] : [];
|
|
637
477
|
}
|
|
638
|
-
// `this.Run0` (C#) — receiver must be EXACTLY `this`. Two grammar shapes:
|
|
639
|
-
// newer tree-sitter-c-sharp exposes an `expression` field holding a
|
|
640
|
-
// `this_expression`; the vendored grammar keeps `this` as an anonymous
|
|
641
|
-
// token (only the `name` field is a named child), so fall back to the
|
|
642
|
-
// node text.
|
|
643
478
|
case 'member_access_expression': {
|
|
644
479
|
const name = (0, tree_sitter_helpers_1.getChildByField)(node, 'name');
|
|
645
480
|
if (!name)
|
|
@@ -648,13 +483,11 @@ function normalizeSpecial(node, type, source) {
|
|
|
648
483
|
const isThisReceiver = expr
|
|
649
484
|
? expr.type === 'this_expression' || expr.type === 'this'
|
|
650
485
|
: (0, tree_sitter_helpers_1.getNodeText)(node, source).startsWith('this.');
|
|
651
|
-
|
|
486
|
+
if (isThisReceiver)
|
|
487
|
+
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(name, source), node: name }];
|
|
488
|
+
const value = (0, tree_sitter_helpers_1.getNodeText)(node, source).replace(/\s+/g, '').replace(/^this\./, '');
|
|
489
|
+
return /^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)+$/.test(value) ? [{ name: value, node: name, skipGate: true }] : [];
|
|
652
490
|
}
|
|
653
|
-
// PHP string callable — trustworthy ONLY as an argument to a known
|
|
654
|
-
// callable-taking core function (`usort($a, 'cmp_items')`). PHP global
|
|
655
|
-
// functions are referenced cross-file without imports, so these skip the
|
|
656
|
-
// name gate and rely on resolution's unique-or-drop rule. A
|
|
657
|
-
// `'Cls::method'` string becomes a qualified candidate.
|
|
658
491
|
case 'encapsed_string':
|
|
659
492
|
case 'string': {
|
|
660
493
|
const callee = phpEnclosingCallName(node);
|
|
@@ -671,9 +504,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
671
504
|
}
|
|
672
505
|
return [];
|
|
673
506
|
}
|
|
674
|
-
// PHP array callables, valid in ANY call's arguments (the shape itself is
|
|
675
|
-
// unambiguous): `[$this, 'method']` → class-scoped `this.method`;
|
|
676
|
-
// `[Foo::class, 'method']` → qualified `Foo::method`.
|
|
677
507
|
case 'array_creation_expression': {
|
|
678
508
|
if (node.namedChildCount !== 2)
|
|
679
509
|
return [];
|
|
@@ -698,11 +528,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
698
528
|
}
|
|
699
529
|
return [];
|
|
700
530
|
}
|
|
701
|
-
// Ruby hook-DSL symbols (`before_action :authenticate`,
|
|
702
|
-
// `rescue_from E, with: :render_404`): the symbol names a method of the
|
|
703
|
-
// ENCLOSING class — route through the class-scoped `this.` resolver
|
|
704
|
-
// (which also walks superclasses, covering ApplicationController-style
|
|
705
|
-
// inheritance). Symbols under any other call yield nothing.
|
|
706
531
|
case 'simple_symbol': {
|
|
707
532
|
const call = rubyEnclosingCall(node);
|
|
708
533
|
if (!call)
|
|
@@ -719,7 +544,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
719
544
|
return [];
|
|
720
545
|
}
|
|
721
546
|
}
|
|
722
|
-
/** Content of a PHP string literal node (single- or double-quoted). */
|
|
723
547
|
function phpStringContent(node, source) {
|
|
724
548
|
for (let i = 0; i < node.namedChildCount; i++) {
|
|
725
549
|
const child = node.namedChild(i);
|
|
@@ -728,7 +552,6 @@ function phpStringContent(node, source) {
|
|
|
728
552
|
}
|
|
729
553
|
return null;
|
|
730
554
|
}
|
|
731
|
-
/** The function name of the PHP call whose arguments contain `node`, if any. */
|
|
732
555
|
function phpEnclosingCallName(node) {
|
|
733
556
|
let cur = node.parent;
|
|
734
557
|
for (let hops = 0; cur && hops < 4; hops++, cur = cur.parent) {
|
|
@@ -737,12 +560,11 @@ function phpEnclosingCallName(node) {
|
|
|
737
560
|
return fn ? fn.text : null;
|
|
738
561
|
}
|
|
739
562
|
if (cur.type === 'member_call_expression' || cur.type === 'scoped_call_expression') {
|
|
740
|
-
return null;
|
|
563
|
+
return null;
|
|
741
564
|
}
|
|
742
565
|
}
|
|
743
566
|
return null;
|
|
744
567
|
}
|
|
745
|
-
/** The Ruby `call` node whose argument_list (or keyword pair) contains `node`. */
|
|
746
568
|
function rubyEnclosingCall(node) {
|
|
747
569
|
let cur = node.parent;
|
|
748
570
|
for (let hops = 0; cur && hops < 4; hops++, cur = cur.parent) {
|
|
@@ -751,4 +573,132 @@ function rubyEnclosingCall(node) {
|
|
|
751
573
|
}
|
|
752
574
|
return null;
|
|
753
575
|
}
|
|
576
|
+
const GO_SCOPE_TYPES = new Set([
|
|
577
|
+
'block',
|
|
578
|
+
'if_statement',
|
|
579
|
+
'for_statement',
|
|
580
|
+
'expression_switch_statement',
|
|
581
|
+
'type_switch_statement',
|
|
582
|
+
'select_statement',
|
|
583
|
+
'expression_case',
|
|
584
|
+
'default_case',
|
|
585
|
+
'type_case',
|
|
586
|
+
'communication_case',
|
|
587
|
+
]);
|
|
588
|
+
function goFnRefSite(node) {
|
|
589
|
+
let scope = -1;
|
|
590
|
+
let literal = null;
|
|
591
|
+
for (let cur = node; cur; cur = cur.parent) {
|
|
592
|
+
if (scope < 0 && GO_SCOPE_TYPES.has(cur.type))
|
|
593
|
+
scope = cur.id;
|
|
594
|
+
if (cur.type === 'function_declaration' || cur.type === 'method_declaration')
|
|
595
|
+
return { scope, unit: cur };
|
|
596
|
+
if (cur.type === 'func_literal')
|
|
597
|
+
literal = cur;
|
|
598
|
+
}
|
|
599
|
+
return { scope, unit: literal };
|
|
600
|
+
}
|
|
601
|
+
function goLocalBindings(units, names, source) {
|
|
602
|
+
const out = new Set();
|
|
603
|
+
for (const unit of units) {
|
|
604
|
+
const bind = (id) => {
|
|
605
|
+
if (id?.type !== 'identifier')
|
|
606
|
+
return;
|
|
607
|
+
const name = (0, tree_sitter_helpers_1.getNodeText)(id, source);
|
|
608
|
+
if (names.has(name))
|
|
609
|
+
out.add(`${unit.id}|${name}`);
|
|
610
|
+
};
|
|
611
|
+
const declares = (n) => {
|
|
612
|
+
for (let i = 0; i < n.childCount; i++) {
|
|
613
|
+
const c = n.child(i);
|
|
614
|
+
if (c && !c.isNamed && c.type === ':=')
|
|
615
|
+
return true;
|
|
616
|
+
}
|
|
617
|
+
return false;
|
|
618
|
+
};
|
|
619
|
+
const stack = [unit];
|
|
620
|
+
while (stack.length > 0) {
|
|
621
|
+
const n = stack.pop();
|
|
622
|
+
switch (n.type) {
|
|
623
|
+
case 'short_var_declaration':
|
|
624
|
+
for (const c of (0, tree_sitter_helpers_1.getChildByField)(n, 'left')?.namedChildren ?? [])
|
|
625
|
+
bind(c);
|
|
626
|
+
break;
|
|
627
|
+
case 'range_clause':
|
|
628
|
+
case 'receive_statement':
|
|
629
|
+
if (declares(n))
|
|
630
|
+
for (const c of (0, tree_sitter_helpers_1.getChildByField)(n, 'left')?.namedChildren ?? [])
|
|
631
|
+
bind(c);
|
|
632
|
+
break;
|
|
633
|
+
case 'type_switch_statement':
|
|
634
|
+
for (const c of (0, tree_sitter_helpers_1.getChildByField)(n, 'alias')?.namedChildren ?? [])
|
|
635
|
+
bind(c);
|
|
636
|
+
break;
|
|
637
|
+
case 'var_spec':
|
|
638
|
+
case 'const_spec':
|
|
639
|
+
case 'parameter_declaration':
|
|
640
|
+
case 'variadic_parameter_declaration':
|
|
641
|
+
for (const c of n.childrenForFieldName('name'))
|
|
642
|
+
bind(c);
|
|
643
|
+
break;
|
|
644
|
+
}
|
|
645
|
+
for (let i = n.namedChildCount - 1; i >= 0; i--) {
|
|
646
|
+
const c = n.namedChild(i);
|
|
647
|
+
if (c)
|
|
648
|
+
stack.push(c);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
for (const field of ['receiver', 'parameters', 'result']) {
|
|
652
|
+
const list = (0, tree_sitter_helpers_1.getChildByField)(unit, field);
|
|
653
|
+
if (list?.type !== 'parameter_list')
|
|
654
|
+
continue;
|
|
655
|
+
for (const p of list.namedChildren) {
|
|
656
|
+
if (p.type !== 'parameter_declaration' && p.type !== 'variadic_parameter_declaration')
|
|
657
|
+
continue;
|
|
658
|
+
for (const c of p.childrenForFieldName('name')) {
|
|
659
|
+
if (c.type === 'identifier')
|
|
660
|
+
out.delete(`${unit.id}|${(0, tree_sitter_helpers_1.getNodeText)(c, source)}`);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
return out;
|
|
666
|
+
}
|
|
667
|
+
function goScopedFnRefScopes(candidates, source) {
|
|
668
|
+
const groups = new Map();
|
|
669
|
+
for (const c of candidates) {
|
|
670
|
+
if (!c.goNode || c.name.includes('.'))
|
|
671
|
+
continue;
|
|
672
|
+
const key = `${c.fromNodeId}|${c.name}`;
|
|
673
|
+
const group = groups.get(key);
|
|
674
|
+
if (group)
|
|
675
|
+
group.push(c);
|
|
676
|
+
else
|
|
677
|
+
groups.set(key, [c]);
|
|
678
|
+
}
|
|
679
|
+
const sites = new Map();
|
|
680
|
+
const units = new Map();
|
|
681
|
+
const names = new Set();
|
|
682
|
+
for (const group of groups.values()) {
|
|
683
|
+
if (group.length < 2)
|
|
684
|
+
continue;
|
|
685
|
+
for (const c of group) {
|
|
686
|
+
const site = goFnRefSite(c.goNode);
|
|
687
|
+
if (!site.unit)
|
|
688
|
+
continue;
|
|
689
|
+
sites.set(c, site);
|
|
690
|
+
units.set(site.unit.id, site.unit);
|
|
691
|
+
names.add(c.name);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
const out = new Map();
|
|
695
|
+
if (units.size === 0)
|
|
696
|
+
return out;
|
|
697
|
+
const bound = goLocalBindings(units.values(), names, source);
|
|
698
|
+
for (const [c, site] of sites) {
|
|
699
|
+
if (bound.has(`${site.unit.id}|${c.name}`))
|
|
700
|
+
out.set(c, site.scope);
|
|
701
|
+
}
|
|
702
|
+
return out;
|
|
703
|
+
}
|
|
754
704
|
//# sourceMappingURL=function-ref.js.map
|