@colbymchenry/codegraph-win32-arm64 1.6.2 → 1.6.3
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 +425 -688
- 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 +610 -33
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1345 -1419
- 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 +34 -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 +66 -204
- 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 +145 -206
- 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 +45 -4
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +53 -430
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +197 -7
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +554 -1382
- 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 +25 -133
- 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.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 +84 -0
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +329 -161
- 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 +35 -184
- 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.js +5 -42
- 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.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.js +0 -13
- package/lib/dist/extraction/parse-budget.js.map +1 -1
- package/lib/dist/extraction/parse-pool.d.ts +29 -5
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +42 -174
- 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 +447 -9
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +1908 -2544
- 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-vbnet.wasm +0 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts +6 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
- package/lib/dist/extraction/wasm-runtime-flags.js +1 -88
- 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/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 +2 -2
- package/lib/dist/graph/queries.d.ts.map +1 -1
- package/lib/dist/graph/queries.js +2 -135
- 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/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 +21 -0
- package/lib/dist/graph/test-code.d.ts.map +1 -0
- package/lib/dist/graph/test-code.js +50 -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 +98 -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 +190 -25
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +694 -1109
- 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 +9 -5
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +25 -159
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/instructions-template.d.ts +1 -1
- package/lib/dist/installer/instructions-template.js +0 -37
- 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.js +0 -102
- 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 +81 -11
- package/lib/dist/installer/targets/shared.d.ts.map +1 -1
- package/lib/dist/installer/targets/shared.js +183 -129
- 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.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +2 -85
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-registry.d.ts +40 -0
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +174 -137
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +23 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +89 -373
- 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 +8 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +33 -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.js +0 -116
- package/lib/dist/mcp/explore-diagnostics.js.map +1 -1
- 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/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 +19 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +118 -293
- 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/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.map +1 -1
- package/lib/dist/mcp/project-lifecycle.js +50 -17
- package/lib/dist/mcp/project-lifecycle.js.map +1 -1
- package/lib/dist/mcp/proxy.d.ts +17 -6
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +74 -248
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +43 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +109 -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.js +0 -31
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/session.d.ts +27 -0
- package/lib/dist/mcp/session.d.ts.map +1 -1
- package/lib/dist/mcp/session.js +29 -130
- 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 +127 -18
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +661 -3590
- 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.js +1 -138
- 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 +15 -1
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +1355 -1270
- 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/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/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 +5 -68
- 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/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.map +1 -1
- package/lib/dist/resolution/frameworks/express.js +182 -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 +13 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +12 -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.js +2 -125
- 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 +276 -29
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +1670 -1380
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +415 -6
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +1323 -1037
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/js-builtins.d.ts +14 -0
- package/lib/dist/resolution/js-builtins.d.ts.map +1 -1
- package/lib/dist/resolution/js-builtins.js +14 -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 +185 -0
- package/lib/dist/resolution/module-importers.d.ts.map +1 -0
- package/lib/dist/resolution/module-importers.js +588 -0
- package/lib/dist/resolution/module-importers.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +858 -7
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +21030 -5110
- 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/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/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 +2 -101
- 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.js +4 -170
- 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 +183 -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 +570 -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],
|
|
@@ -158,7 +89,6 @@ const RUST_SPEC = {
|
|
|
158
89
|
]),
|
|
159
90
|
};
|
|
160
91
|
const JAVA_SPEC = {
|
|
161
|
-
// No bare-identifier function values in Java — only method references.
|
|
162
92
|
idTypes: new Set(),
|
|
163
93
|
dispatch: new Map([
|
|
164
94
|
['argument_list', { mode: 'args' }],
|
|
@@ -171,7 +101,7 @@ const KOTLIN_SPEC = {
|
|
|
171
101
|
idTypes: new Set(),
|
|
172
102
|
dispatch: new Map([
|
|
173
103
|
['value_arguments', { mode: 'args' }],
|
|
174
|
-
['assignment', { mode: 'rhs' }],
|
|
104
|
+
['assignment', { mode: 'rhs' }],
|
|
175
105
|
]),
|
|
176
106
|
layers: new Map([['value_argument', null]]),
|
|
177
107
|
special: new Set(['callable_reference', 'navigation_expression']),
|
|
@@ -180,7 +110,7 @@ const CSHARP_SPEC = {
|
|
|
180
110
|
idTypes: new Set(['identifier']),
|
|
181
111
|
dispatch: new Map([
|
|
182
112
|
['argument_list', { mode: 'args' }],
|
|
183
|
-
['assignment_expression', { mode: 'rhs', field: 'right' }],
|
|
113
|
+
['assignment_expression', { mode: 'rhs', field: 'right' }],
|
|
184
114
|
['initializer_expression', { mode: 'list' }],
|
|
185
115
|
['variable_declarator', { mode: 'varinit' }],
|
|
186
116
|
]),
|
|
@@ -188,9 +118,6 @@ const CSHARP_SPEC = {
|
|
|
188
118
|
special: new Set(['member_access_expression']),
|
|
189
119
|
};
|
|
190
120
|
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
121
|
idTypes: new Set(),
|
|
195
122
|
dispatch: new Map([
|
|
196
123
|
['argument_list', { mode: 'args' }],
|
|
@@ -199,13 +126,6 @@ const RUBY_SPEC = {
|
|
|
199
126
|
layers: new Map([['block_argument', null]]),
|
|
200
127
|
special: new Set(['call', 'simple_symbol']),
|
|
201
128
|
};
|
|
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
129
|
const RUBY_HOOK_RE = /^(skip_)?(before|after|around)_[a-z_]+$/;
|
|
210
130
|
const RUBY_HOOK_NAMES = new Set(['validate', 'set_callback', 'helper_method', 'rescue_from']);
|
|
211
131
|
function isRubyHookCall(name) {
|
|
@@ -229,7 +149,7 @@ const SCALA_SPEC = {
|
|
|
229
149
|
['assignment_expression', { mode: 'rhs', field: 'right' }],
|
|
230
150
|
['val_definition', { mode: 'varinit', field: 'value' }],
|
|
231
151
|
]),
|
|
232
|
-
unwrap: new Map([['postfix_expression', null]]),
|
|
152
|
+
unwrap: new Map([['postfix_expression', null]]),
|
|
233
153
|
};
|
|
234
154
|
const DART_SPEC = {
|
|
235
155
|
idTypes: new Set(['identifier']),
|
|
@@ -246,8 +166,8 @@ const LUA_SPEC = {
|
|
|
246
166
|
idTypes: new Set(['identifier']),
|
|
247
167
|
dispatch: new Map([
|
|
248
168
|
['arguments', { mode: 'args' }],
|
|
249
|
-
['assignment_statement', { mode: 'rhs' }],
|
|
250
|
-
['field', { mode: 'value', field: 'value' }],
|
|
169
|
+
['assignment_statement', { mode: 'rhs' }],
|
|
170
|
+
['field', { mode: 'value', field: 'value' }],
|
|
251
171
|
]),
|
|
252
172
|
layers: new Map([['expression_list', null]]),
|
|
253
173
|
};
|
|
@@ -255,16 +175,11 @@ const PASCAL_SPEC = {
|
|
|
255
175
|
idTypes: new Set(['identifier']),
|
|
256
176
|
dispatch: new Map([
|
|
257
177
|
['exprArgs', { mode: 'args' }],
|
|
258
|
-
['assignment', { mode: 'rhs', field: 'rhs' }],
|
|
178
|
+
['assignment', { mode: 'rhs', field: 'rhs' }],
|
|
259
179
|
]),
|
|
260
|
-
unwrap: new Map([['exprUnary', 'operand']]),
|
|
180
|
+
unwrap: new Map([['exprUnary', 'operand']]),
|
|
181
|
+
addressOfOnly: true,
|
|
261
182
|
};
|
|
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
183
|
const PHP_CALLABLE_HOFS = new Set([
|
|
269
184
|
'array_map', 'array_filter', 'array_walk', 'array_walk_recursive', 'array_reduce',
|
|
270
185
|
'usort', 'uasort', 'uksort',
|
|
@@ -278,20 +193,11 @@ const PHP_CALLABLE_HOFS = new Set([
|
|
|
278
193
|
'is_callable',
|
|
279
194
|
]);
|
|
280
195
|
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
196
|
idTypes: new Set(),
|
|
288
197
|
dispatch: new Map([['arguments', { mode: 'args' }]]),
|
|
289
198
|
layers: new Map([['argument', null]]),
|
|
290
199
|
special: new Set(['encapsed_string', 'string', 'array_creation_expression']),
|
|
291
200
|
};
|
|
292
|
-
/**
|
|
293
|
-
* Capture specs by language.
|
|
294
|
-
*/
|
|
295
201
|
exports.FN_REF_SPECS = {
|
|
296
202
|
c: cFamilySpec(),
|
|
297
203
|
cpp: cFamilySpec({ addressOfOnly: true }),
|
|
@@ -315,13 +221,6 @@ exports.FN_REF_SPECS = {
|
|
|
315
221
|
luau: LUA_SPEC,
|
|
316
222
|
pascal: PASCAL_SPEC,
|
|
317
223
|
};
|
|
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
224
|
function captureFnRefCandidates(container, rule, spec, source) {
|
|
326
225
|
const valueNodes = [];
|
|
327
226
|
switch (rule.mode) {
|
|
@@ -339,11 +238,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
339
238
|
? (0, tree_sitter_helpers_1.getChildByField)(container, rule.field)
|
|
340
239
|
: container.namedChild(container.namedChildCount - 1);
|
|
341
240
|
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
241
|
const lhs = (0, tree_sitter_helpers_1.getChildByField)(container, 'left') ??
|
|
348
242
|
(0, tree_sitter_helpers_1.getChildByField)(container, 'lhs') ??
|
|
349
243
|
(0, tree_sitter_helpers_1.getChildByField)(container, 'target') ??
|
|
@@ -359,8 +253,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
359
253
|
}
|
|
360
254
|
case 'value': {
|
|
361
255
|
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
256
|
if (!value && container.namedChildCount > 0) {
|
|
365
257
|
value = container.namedChild(container.namedChildCount - 1);
|
|
366
258
|
}
|
|
@@ -369,9 +261,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
369
261
|
break;
|
|
370
262
|
}
|
|
371
263
|
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
264
|
const nameNode = (0, tree_sitter_helpers_1.getChildByField)(container, 'name') ?? (0, tree_sitter_helpers_1.getChildByField)(container, 'pattern');
|
|
376
265
|
if (nameNode && (nameNode.type === 'object_pattern' || nameNode.type === 'array_pattern' ||
|
|
377
266
|
nameNode.type === 'tuple_pattern' || nameNode.type === 'struct_pattern')) {
|
|
@@ -383,10 +272,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
383
272
|
valueNodes.push(value);
|
|
384
273
|
}
|
|
385
274
|
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
275
|
const value = container.namedChild(container.namedChildCount - 1);
|
|
391
276
|
const nameChild = (0, tree_sitter_helpers_1.getChildByField)(container, 'name') ?? (0, tree_sitter_helpers_1.getChildByField)(container, 'pattern');
|
|
392
277
|
if (value &&
|
|
@@ -400,10 +285,6 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
400
285
|
}
|
|
401
286
|
const out = [];
|
|
402
287
|
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
288
|
const explicitRef = !spec.idTypes.has(v.type);
|
|
408
289
|
for (const { name, node, skipGate } of normalizeValue(v, spec, source, 0)) {
|
|
409
290
|
if (!name || NAME_STOPLIST.has(name))
|
|
@@ -420,27 +301,15 @@ function captureFnRefCandidates(container, rule, spec, source) {
|
|
|
420
301
|
}
|
|
421
302
|
return out;
|
|
422
303
|
}
|
|
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
304
|
function normalizeValue(node, spec, source, depth) {
|
|
429
305
|
if (depth > 4)
|
|
430
306
|
return [];
|
|
431
307
|
const type = node.type;
|
|
432
|
-
// Bare identifier
|
|
433
308
|
if (spec.idTypes.has(type)) {
|
|
434
309
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(node, source), node }];
|
|
435
310
|
}
|
|
436
|
-
// Transparent layers (argument, value_argument, literal_element,
|
|
437
|
-
// expression_list, block_argument). expression_list fans out (Go `a, b = f, g`).
|
|
438
311
|
const layerField = spec.layers?.get(type);
|
|
439
312
|
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
313
|
if (type === 'value_argument') {
|
|
445
314
|
const label = (0, tree_sitter_helpers_1.getChildByField)(node, 'name');
|
|
446
315
|
const value = (0, tree_sitter_helpers_1.getChildByField)(node, 'value') ?? node.namedChild(node.namedChildCount - 1);
|
|
@@ -462,35 +331,24 @@ function normalizeValue(node, spec, source, depth) {
|
|
|
462
331
|
}
|
|
463
332
|
return results;
|
|
464
333
|
}
|
|
465
|
-
// Unary wrappers: &fn / @Fn / `fn _`
|
|
466
334
|
const unwrapField = spec.unwrap?.get(type);
|
|
467
335
|
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
336
|
if (type === 'pointer_expression' && node.child(0)?.type !== '&')
|
|
473
337
|
return [];
|
|
474
338
|
const inner = unwrapField ? (0, tree_sitter_helpers_1.getChildByField)(node, unwrapField) : node.namedChild(0);
|
|
475
339
|
if (!inner)
|
|
476
340
|
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
341
|
if (inner.type === 'qualified_identifier') {
|
|
482
342
|
const text = (0, tree_sitter_helpers_1.getNodeText)(inner, source).trim();
|
|
483
343
|
return /^[A-Za-z_][\w:]*$/.test(text) ? [{ name: text, node: inner }] : [];
|
|
484
344
|
}
|
|
485
345
|
return normalizeValue(inner, spec, source, depth + 1);
|
|
486
346
|
}
|
|
487
|
-
// Special whole-node reference forms
|
|
488
347
|
if (spec.special?.has(type)) {
|
|
489
348
|
return normalizeSpecial(node, type, source);
|
|
490
349
|
}
|
|
491
350
|
return [];
|
|
492
351
|
}
|
|
493
|
-
/** Rightmost descendant-or-self named child of one of the given types. */
|
|
494
352
|
function lastNamedOfType(node, types) {
|
|
495
353
|
let found = null;
|
|
496
354
|
for (let i = 0; i < node.namedChildCount; i++) {
|
|
@@ -507,13 +365,6 @@ function lastNamedOfType(node, types) {
|
|
|
507
365
|
}
|
|
508
366
|
function normalizeSpecial(node, type, source) {
|
|
509
367
|
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
368
|
case 'method_reference': {
|
|
518
369
|
let last = null;
|
|
519
370
|
for (let i = 0; i < node.namedChildCount; i++) {
|
|
@@ -530,15 +381,10 @@ function normalizeSpecial(node, type, source) {
|
|
|
530
381
|
}
|
|
531
382
|
const recv = text.match(/^([A-Z][A-Za-z0-9_]*)\s*::/);
|
|
532
383
|
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
384
|
return m === 'new' ? [] : [{ name: `${recv[1]}::${m}`, node: last }];
|
|
536
385
|
}
|
|
537
386
|
return [];
|
|
538
387
|
}
|
|
539
|
-
// Kotlin `::targetCb` (one part) / `OtherClass::handle` (two parts —
|
|
540
|
-
// receiver is a type_identifier; lowercase receivers are variables, the
|
|
541
|
-
// deferred obj.method class).
|
|
542
388
|
case 'callable_reference': {
|
|
543
389
|
let receiver = null;
|
|
544
390
|
let member = null;
|
|
@@ -555,16 +401,12 @@ function normalizeSpecial(node, type, source) {
|
|
|
555
401
|
return [];
|
|
556
402
|
const m = (0, tree_sitter_helpers_1.getNodeText)(member, source);
|
|
557
403
|
if (!receiver)
|
|
558
|
-
return [{ name: m, node: member }];
|
|
404
|
+
return [{ name: m, node: member }];
|
|
559
405
|
const recvText = (0, tree_sitter_helpers_1.getNodeText)(receiver, source);
|
|
560
406
|
return /^[A-Z]/.test(recvText)
|
|
561
407
|
? [{ name: `${recvText}::${m}`, node: member }]
|
|
562
|
-
: [];
|
|
408
|
+
: [];
|
|
563
409
|
}
|
|
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
410
|
case 'navigation_expression': {
|
|
569
411
|
if (!(0, tree_sitter_helpers_1.getNodeText)(node, source).startsWith('this::'))
|
|
570
412
|
return [];
|
|
@@ -578,8 +420,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
578
420
|
}
|
|
579
421
|
return [];
|
|
580
422
|
}
|
|
581
|
-
// Go `c.store.Fetch` (has a `field` child) vs Swift `#selector(...)` /
|
|
582
|
-
// ObjC `@selector(...)` (no `field` — inner identifier / selector text).
|
|
583
423
|
case 'selector_expression': {
|
|
584
424
|
const field = (0, tree_sitter_helpers_1.getChildByField)(node, 'field');
|
|
585
425
|
if (field) {
|
|
@@ -595,14 +435,11 @@ function normalizeSpecial(node, type, source) {
|
|
|
595
435
|
if (inner.type === 'identifier' || inner.type === 'simple_identifier') {
|
|
596
436
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(inner, source), node: inner }];
|
|
597
437
|
}
|
|
598
|
-
// Swift dotted form: rightmost simple_identifier; ObjC keeps selector text.
|
|
599
438
|
const last = lastNamedOfType(node, new Set(['simple_identifier']));
|
|
600
439
|
if (last)
|
|
601
440
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(last, source), node: last }];
|
|
602
441
|
return [{ name: (0, tree_sitter_helpers_1.getNodeText)(inner, source).trim(), node: inner }];
|
|
603
442
|
}
|
|
604
|
-
// Ruby `method(:target_cb)` — a `call` whose method is literally `method`
|
|
605
|
-
// with a single symbol argument.
|
|
606
443
|
case 'call': {
|
|
607
444
|
const method = (0, tree_sitter_helpers_1.getChildByField)(node, 'method');
|
|
608
445
|
if (!method || (0, tree_sitter_helpers_1.getNodeText)(method, source) !== 'method')
|
|
@@ -616,9 +453,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
616
453
|
const name = (0, tree_sitter_helpers_1.getNodeText)(sym, source).replace(/^:/, '');
|
|
617
454
|
return name ? [{ name, node: sym }] : [];
|
|
618
455
|
}
|
|
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
456
|
case 'member_expression': {
|
|
623
457
|
const obj = (0, tree_sitter_helpers_1.getChildByField)(node, 'object');
|
|
624
458
|
const prop = (0, tree_sitter_helpers_1.getChildByField)(node, 'property');
|
|
@@ -627,19 +461,12 @@ function normalizeSpecial(node, type, source) {
|
|
|
627
461
|
}
|
|
628
462
|
return [];
|
|
629
463
|
}
|
|
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
464
|
case 'attribute': {
|
|
633
465
|
const attr = (0, tree_sitter_helpers_1.getChildByField)(node, 'attribute');
|
|
634
466
|
const name = (0, tree_sitter_helpers_1.getNodeText)(node, source);
|
|
635
467
|
return attr && /^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)+$/.test(name)
|
|
636
468
|
? [{ name, node: attr, skipGate: true }] : [];
|
|
637
469
|
}
|
|
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
470
|
case 'member_access_expression': {
|
|
644
471
|
const name = (0, tree_sitter_helpers_1.getChildByField)(node, 'name');
|
|
645
472
|
if (!name)
|
|
@@ -650,11 +477,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
650
477
|
: (0, tree_sitter_helpers_1.getNodeText)(node, source).startsWith('this.');
|
|
651
478
|
return isThisReceiver ? [{ name: (0, tree_sitter_helpers_1.getNodeText)(name, source), node: name }] : [];
|
|
652
479
|
}
|
|
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
480
|
case 'encapsed_string':
|
|
659
481
|
case 'string': {
|
|
660
482
|
const callee = phpEnclosingCallName(node);
|
|
@@ -671,9 +493,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
671
493
|
}
|
|
672
494
|
return [];
|
|
673
495
|
}
|
|
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
496
|
case 'array_creation_expression': {
|
|
678
497
|
if (node.namedChildCount !== 2)
|
|
679
498
|
return [];
|
|
@@ -698,11 +517,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
698
517
|
}
|
|
699
518
|
return [];
|
|
700
519
|
}
|
|
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
520
|
case 'simple_symbol': {
|
|
707
521
|
const call = rubyEnclosingCall(node);
|
|
708
522
|
if (!call)
|
|
@@ -719,7 +533,6 @@ function normalizeSpecial(node, type, source) {
|
|
|
719
533
|
return [];
|
|
720
534
|
}
|
|
721
535
|
}
|
|
722
|
-
/** Content of a PHP string literal node (single- or double-quoted). */
|
|
723
536
|
function phpStringContent(node, source) {
|
|
724
537
|
for (let i = 0; i < node.namedChildCount; i++) {
|
|
725
538
|
const child = node.namedChild(i);
|
|
@@ -728,7 +541,6 @@ function phpStringContent(node, source) {
|
|
|
728
541
|
}
|
|
729
542
|
return null;
|
|
730
543
|
}
|
|
731
|
-
/** The function name of the PHP call whose arguments contain `node`, if any. */
|
|
732
544
|
function phpEnclosingCallName(node) {
|
|
733
545
|
let cur = node.parent;
|
|
734
546
|
for (let hops = 0; cur && hops < 4; hops++, cur = cur.parent) {
|
|
@@ -737,12 +549,11 @@ function phpEnclosingCallName(node) {
|
|
|
737
549
|
return fn ? fn.text : null;
|
|
738
550
|
}
|
|
739
551
|
if (cur.type === 'member_call_expression' || cur.type === 'scoped_call_expression') {
|
|
740
|
-
return null;
|
|
552
|
+
return null;
|
|
741
553
|
}
|
|
742
554
|
}
|
|
743
555
|
return null;
|
|
744
556
|
}
|
|
745
|
-
/** The Ruby `call` node whose argument_list (or keyword pair) contains `node`. */
|
|
746
557
|
function rubyEnclosingCall(node) {
|
|
747
558
|
let cur = node.parent;
|
|
748
559
|
for (let hops = 0; cur && hops < 4; hops++, cur = cur.parent) {
|
|
@@ -751,4 +562,132 @@ function rubyEnclosingCall(node) {
|
|
|
751
562
|
}
|
|
752
563
|
return null;
|
|
753
564
|
}
|
|
565
|
+
const GO_SCOPE_TYPES = new Set([
|
|
566
|
+
'block',
|
|
567
|
+
'if_statement',
|
|
568
|
+
'for_statement',
|
|
569
|
+
'expression_switch_statement',
|
|
570
|
+
'type_switch_statement',
|
|
571
|
+
'select_statement',
|
|
572
|
+
'expression_case',
|
|
573
|
+
'default_case',
|
|
574
|
+
'type_case',
|
|
575
|
+
'communication_case',
|
|
576
|
+
]);
|
|
577
|
+
function goFnRefSite(node) {
|
|
578
|
+
let scope = -1;
|
|
579
|
+
let literal = null;
|
|
580
|
+
for (let cur = node; cur; cur = cur.parent) {
|
|
581
|
+
if (scope < 0 && GO_SCOPE_TYPES.has(cur.type))
|
|
582
|
+
scope = cur.id;
|
|
583
|
+
if (cur.type === 'function_declaration' || cur.type === 'method_declaration')
|
|
584
|
+
return { scope, unit: cur };
|
|
585
|
+
if (cur.type === 'func_literal')
|
|
586
|
+
literal = cur;
|
|
587
|
+
}
|
|
588
|
+
return { scope, unit: literal };
|
|
589
|
+
}
|
|
590
|
+
function goLocalBindings(units, names, source) {
|
|
591
|
+
const out = new Set();
|
|
592
|
+
for (const unit of units) {
|
|
593
|
+
const bind = (id) => {
|
|
594
|
+
if (id?.type !== 'identifier')
|
|
595
|
+
return;
|
|
596
|
+
const name = (0, tree_sitter_helpers_1.getNodeText)(id, source);
|
|
597
|
+
if (names.has(name))
|
|
598
|
+
out.add(`${unit.id}|${name}`);
|
|
599
|
+
};
|
|
600
|
+
const declares = (n) => {
|
|
601
|
+
for (let i = 0; i < n.childCount; i++) {
|
|
602
|
+
const c = n.child(i);
|
|
603
|
+
if (c && !c.isNamed && c.type === ':=')
|
|
604
|
+
return true;
|
|
605
|
+
}
|
|
606
|
+
return false;
|
|
607
|
+
};
|
|
608
|
+
const stack = [unit];
|
|
609
|
+
while (stack.length > 0) {
|
|
610
|
+
const n = stack.pop();
|
|
611
|
+
switch (n.type) {
|
|
612
|
+
case 'short_var_declaration':
|
|
613
|
+
for (const c of (0, tree_sitter_helpers_1.getChildByField)(n, 'left')?.namedChildren ?? [])
|
|
614
|
+
bind(c);
|
|
615
|
+
break;
|
|
616
|
+
case 'range_clause':
|
|
617
|
+
case 'receive_statement':
|
|
618
|
+
if (declares(n))
|
|
619
|
+
for (const c of (0, tree_sitter_helpers_1.getChildByField)(n, 'left')?.namedChildren ?? [])
|
|
620
|
+
bind(c);
|
|
621
|
+
break;
|
|
622
|
+
case 'type_switch_statement':
|
|
623
|
+
for (const c of (0, tree_sitter_helpers_1.getChildByField)(n, 'alias')?.namedChildren ?? [])
|
|
624
|
+
bind(c);
|
|
625
|
+
break;
|
|
626
|
+
case 'var_spec':
|
|
627
|
+
case 'const_spec':
|
|
628
|
+
case 'parameter_declaration':
|
|
629
|
+
case 'variadic_parameter_declaration':
|
|
630
|
+
for (const c of n.childrenForFieldName('name'))
|
|
631
|
+
bind(c);
|
|
632
|
+
break;
|
|
633
|
+
}
|
|
634
|
+
for (let i = n.namedChildCount - 1; i >= 0; i--) {
|
|
635
|
+
const c = n.namedChild(i);
|
|
636
|
+
if (c)
|
|
637
|
+
stack.push(c);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
for (const field of ['receiver', 'parameters', 'result']) {
|
|
641
|
+
const list = (0, tree_sitter_helpers_1.getChildByField)(unit, field);
|
|
642
|
+
if (list?.type !== 'parameter_list')
|
|
643
|
+
continue;
|
|
644
|
+
for (const p of list.namedChildren) {
|
|
645
|
+
if (p.type !== 'parameter_declaration' && p.type !== 'variadic_parameter_declaration')
|
|
646
|
+
continue;
|
|
647
|
+
for (const c of p.childrenForFieldName('name')) {
|
|
648
|
+
if (c.type === 'identifier')
|
|
649
|
+
out.delete(`${unit.id}|${(0, tree_sitter_helpers_1.getNodeText)(c, source)}`);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
return out;
|
|
655
|
+
}
|
|
656
|
+
function goScopedFnRefScopes(candidates, source) {
|
|
657
|
+
const groups = new Map();
|
|
658
|
+
for (const c of candidates) {
|
|
659
|
+
if (!c.goNode || c.name.includes('.'))
|
|
660
|
+
continue;
|
|
661
|
+
const key = `${c.fromNodeId}|${c.name}`;
|
|
662
|
+
const group = groups.get(key);
|
|
663
|
+
if (group)
|
|
664
|
+
group.push(c);
|
|
665
|
+
else
|
|
666
|
+
groups.set(key, [c]);
|
|
667
|
+
}
|
|
668
|
+
const sites = new Map();
|
|
669
|
+
const units = new Map();
|
|
670
|
+
const names = new Set();
|
|
671
|
+
for (const group of groups.values()) {
|
|
672
|
+
if (group.length < 2)
|
|
673
|
+
continue;
|
|
674
|
+
for (const c of group) {
|
|
675
|
+
const site = goFnRefSite(c.goNode);
|
|
676
|
+
if (!site.unit)
|
|
677
|
+
continue;
|
|
678
|
+
sites.set(c, site);
|
|
679
|
+
units.set(site.unit.id, site.unit);
|
|
680
|
+
names.add(c.name);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
const out = new Map();
|
|
684
|
+
if (units.size === 0)
|
|
685
|
+
return out;
|
|
686
|
+
const bound = goLocalBindings(units.values(), names, source);
|
|
687
|
+
for (const [c, site] of sites) {
|
|
688
|
+
if (bound.has(`${site.unit.id}|${c.name}`))
|
|
689
|
+
out.set(c, site.scope);
|
|
690
|
+
}
|
|
691
|
+
return out;
|
|
692
|
+
}
|
|
754
693
|
//# sourceMappingURL=function-ref.js.map
|