@colbymchenry/codegraph-win32-arm64 1.6.1 → 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 +427 -684
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/bin/command-supervision.d.ts +7 -0
- package/lib/dist/bin/command-supervision.d.ts.map +1 -1
- package/lib/dist/bin/command-supervision.js +30 -74
- 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 +641 -40
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1370 -1398
- 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 +81 -0
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +91 -500
- 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 +15 -133
- package/lib/dist/extraction/astro-extractor.js.map +1 -1
- package/lib/dist/extraction/cfml-extractor.d.ts +102 -10
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +260 -179
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- package/lib/dist/extraction/commonjs-requires.d.ts +23 -0
- package/lib/dist/extraction/commonjs-requires.d.ts.map +1 -0
- package/lib/dist/extraction/commonjs-requires.js +37 -0
- package/lib/dist/extraction/commonjs-requires.js.map +1 -0
- 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.d.ts +9 -0
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
- package/lib/dist/extraction/generated-detection.js +29 -154
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +47 -4
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +91 -374
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +216 -11
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +703 -1368
- 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 +29 -131
- 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 +140 -28
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +876 -823
- 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.d.ts.map +1 -1
- package/lib/dist/extraction/languages/csharp.js +11 -54
- 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 +335 -159
- 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 +15 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +69 -150
- 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.d.ts +15 -0
- package/lib/dist/extraction/languages/swift.d.ts.map +1 -1
- package/lib/dist/extraction/languages/swift.js +33 -27
- 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 +71 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +86 -41
- package/lib/dist/extraction/languages/typescript.js.map +1 -1
- package/lib/dist/extraction/languages/vbnet.d.ts.map +1 -1
- package/lib/dist/extraction/languages/vbnet.js +9 -42
- package/lib/dist/extraction/languages/vbnet.js.map +1 -1
- package/lib/dist/extraction/lazy-frameworks.d.ts +15 -0
- package/lib/dist/extraction/lazy-frameworks.d.ts.map +1 -0
- package/lib/dist/extraction/lazy-frameworks.js +8 -0
- package/lib/dist/extraction/lazy-frameworks.js.map +1 -0
- package/lib/dist/extraction/liquid-extractor.d.ts +29 -3
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/liquid-extractor.js +89 -148
- package/lib/dist/extraction/liquid-extractor.js.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.js +0 -78
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
- package/lib/dist/extraction/parse-budget.d.ts +16 -0
- package/lib/dist/extraction/parse-budget.d.ts.map +1 -0
- package/lib/dist/extraction/parse-budget.js +11 -0
- package/lib/dist/extraction/parse-budget.js.map +1 -0
- package/lib/dist/extraction/parse-pool.d.ts +41 -5
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +74 -158
- 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 +7 -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 +85 -0
- package/lib/dist/extraction/sfc-script.d.ts.map +1 -0
- package/lib/dist/extraction/sfc-script.js +136 -0
- package/lib/dist/extraction/sfc-script.js.map +1 -0
- 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 +5 -37
- package/lib/dist/extraction/store-worker.js.map +1 -1
- package/lib/dist/extraction/store-writer.d.ts +10 -2
- package/lib/dist/extraction/store-writer.d.ts.map +1 -1
- package/lib/dist/extraction/store-writer.js +8 -32
- 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 +16 -122
- 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 +6 -153
- 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 +455 -9
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +1998 -2517
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/extraction/vue-extractor.d.ts +20 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/vue-extractor.js +113 -115
- package/lib/dist/extraction/vue-extractor.js.map +1 -1
- package/lib/dist/extraction/vue-options-api.d.ts +28 -0
- package/lib/dist/extraction/vue-options-api.d.ts.map +1 -0
- package/lib/dist/extraction/vue-options-api.js +164 -0
- package/lib/dist/extraction/vue-options-api.js.map +1 -0
- 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-cobol.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -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 +17 -0
- package/lib/dist/graph/branch-guards.d.ts.map +1 -1
- package/lib/dist/graph/branch-guards.js +98 -250
- 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 +85 -219
- 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 +195 -25
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +697 -1105
- 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 -79
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-registry.d.ts +44 -0
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +189 -118
- 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 +10 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +41 -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 +5 -4
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -1
- package/lib/dist/mcp/index-freshness.d.ts +7 -1
- package/lib/dist/mcp/index-freshness.d.ts.map +1 -1
- package/lib/dist/mcp/index-freshness.js +20 -12
- 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 +55 -21
- package/lib/dist/mcp/project-lifecycle.js.map +1 -1
- package/lib/dist/mcp/proxy.d.ts +26 -8
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +209 -223
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +58 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +140 -100
- 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 +159 -20
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +730 -3545
- 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 +19 -52
- 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 +96 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.js +695 -0
- package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -0
- 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 +1487 -1234
- 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 +60 -61
- 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 +142 -0
- package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/angular-router.js +959 -0
- package/lib/dist/resolution/frameworks/angular-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/astro.js +30 -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 +106 -101
- 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 +10 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.js +79 -65
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts +6 -0
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.js +64 -183
- 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 +215 -173
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.js +11 -112
- 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 +15 -61
- 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 +16 -2
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +20 -48
- 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 +209 -147
- package/lib/dist/resolution/frameworks/java.js.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.js +291 -71
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts +35 -0
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js +33 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +236 -192
- 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 +11 -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.d.ts +20 -0
- package/lib/dist/resolution/frameworks/page-component.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/page-component.js +31 -0
- package/lib/dist/resolution/frameworks/page-component.js.map +1 -0
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/play.js +27 -33
- package/lib/dist/resolution/frameworks/play.js.map +1 -1
- package/lib/dist/resolution/frameworks/python.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +106 -116
- 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 +17 -7
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.js +21 -79
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/react.d.ts +68 -1
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +1721 -114
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.js +152 -52
- 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 +51 -70
- 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 +9 -74
- 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.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +199 -167
- 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 +26 -10
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.js +147 -147
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue.d.ts +9 -2
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue.js +69 -107
- 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 +298 -23
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +1802 -1280
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +449 -5
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +1477 -981
- 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 +15 -13
- 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 +891 -8
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +25013 -2928
- 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 +2 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/react-router-synthesizer.js +67 -48
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/resolver-pool.d.ts +43 -3
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +55 -97
- 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 +10 -36
- 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 +68 -0
- package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -0
- package/lib/dist/resolution/swift-type-visibility.js +355 -0
- package/lib/dist/resolution/swift-type-visibility.js.map +1 -0
- package/lib/dist/resolution/synth-utils.js +1 -22
- package/lib/dist/resolution/synth-utils.js.map +1 -1
- package/lib/dist/resolution/tanstack-router-synthesizer.js +0 -32
- package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/tauri-synthesizer.d.ts +37 -0
- package/lib/dist/resolution/tauri-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tauri-synthesizer.js +1038 -0
- package/lib/dist/resolution/tauri-synthesizer.js.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts +7 -2
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/tier-synthesizer.js +318 -121
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -1
- package/lib/dist/resolution/type-parameters.d.ts +34 -0
- package/lib/dist/resolution/type-parameters.d.ts.map +1 -0
- package/lib/dist/resolution/type-parameters.js +285 -0
- package/lib/dist/resolution/type-parameters.js.map +1 -0
- package/lib/dist/resolution/types.d.ts +209 -10
- 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 +29 -2
- package/lib/dist/sync/worktree.d.ts.map +1 -1
- package/lib/dist/sync/worktree.js +59 -78
- 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 +68 -146
- 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.d.ts +7 -0
- package/lib/dist/ui-server/api/effects.d.ts.map +1 -1
- package/lib/dist/ui-server/api/effects.js +20 -103
- package/lib/dist/ui-server/api/effects.js.map +1 -1
- package/lib/dist/ui-server/api/entrypoints.d.ts +6 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -1
- package/lib/dist/ui-server/api/entrypoints.js +73 -130
- 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 +41 -6
- package/lib/dist/ui-server/api/map.d.ts.map +1 -1
- package/lib/dist/ui-server/api/map.js +95 -308
- package/lib/dist/ui-server/api/map.js.map +1 -1
- package/lib/dist/ui-server/api/node.d.ts.map +1 -1
- package/lib/dist/ui-server/api/node.js +4 -109
- 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 +6 -0
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -1
- package/lib/dist/ui-server/api/route-roots.js +18 -39
- package/lib/dist/ui-server/api/route-roots.js.map +1 -1
- package/lib/dist/ui-server/api/routes.d.ts +2 -0
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -1
- package/lib/dist/ui-server/api/routes.js +47 -47
- 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 +16 -171
- 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 +105 -373
- 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 +20 -94
- package/lib/dist/ui-server/api/trails.js.map +1 -1
- package/lib/dist/ui-server/api/when.d.ts +10 -2
- package/lib/dist/ui-server/api/when.d.ts.map +1 -1
- package/lib/dist/ui-server/api/when.js +32 -44
- 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.d.ts +28 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js +114 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -0
- package/lib/dist/ui-server/highlight/index.d.ts.map +1 -1
- package/lib/dist/ui-server/highlight/index.js +7 -133
- 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.d.ts +7 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js +15 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -0
- 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 +61 -10
- package/lib/dist/upgrade/index.d.ts.map +1 -1
- package/lib/dist/upgrade/index.js +191 -225
- 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/viewer/assets/{index-D4S7YUPf.js → index-BSGpxBr9.js} +60 -58
- package/lib/dist/viewer/index.html +1 -1
- package/lib/dist/worker-teardown.d.ts +48 -0
- package/lib/dist/worker-teardown.d.ts.map +1 -0
- package/lib/dist/worker-teardown.js +53 -0
- package/lib/dist/worker-teardown.js.map +1 -0
- 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
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CPP_TEMPLATE_SITE_CAP = exports.CPP_TEMPLATE_ARGUMENT_CAP = void 0;
|
|
4
|
+
exports.cppNamespaceBlocks = cppNamespaceBlocks;
|
|
5
|
+
exports.cppTemplateArgumentEdges = cppTemplateArgumentEdges;
|
|
6
|
+
const cpp_constructor_1 = require("./cpp-constructor");
|
|
7
|
+
const cpp_namespaces_1 = require("./cpp-namespaces");
|
|
8
|
+
const cpp_raw_strings_1 = require("./cpp-raw-strings");
|
|
9
|
+
const cpp_supertypes_1 = require("./cpp-supertypes");
|
|
10
|
+
const cpp_type_aliases_1 = require("./cpp-type-aliases");
|
|
11
|
+
const name_matcher_1 = require("./name-matcher");
|
|
12
|
+
const lru_cache_1 = require("./lru-cache");
|
|
13
|
+
const strip_comments_1 = require("./strip-comments");
|
|
14
|
+
const synth_utils_1 = require("./synth-utils");
|
|
15
|
+
exports.CPP_TEMPLATE_ARGUMENT_CAP = 40;
|
|
16
|
+
exports.CPP_TEMPLATE_SITE_CAP = 1024;
|
|
17
|
+
const MAX_TEMPLATE_HOPS = 4;
|
|
18
|
+
const MAX_ARGUMENT_LIST = 64 * 1024;
|
|
19
|
+
const HEAD_WINDOW = 400;
|
|
20
|
+
const MAX_FILES_HELD = 4096;
|
|
21
|
+
const MAX_TEMPLATES_HELD = 1024;
|
|
22
|
+
const CLASS_KINDS = new Set(['class', 'struct', 'union']);
|
|
23
|
+
const FUNCTION_KINDS = new Set(['function', 'method']);
|
|
24
|
+
const DECLARATION_KINDS = new Set([...CLASS_KINDS, ...FUNCTION_KINDS, 'type_alias', 'variable', 'constant']);
|
|
25
|
+
const CPP_FILE = /\.(?:c|h|cc|cpp|cxx|hpp|hh|hxx|cppm|ipp|inl|tcc)$/i;
|
|
26
|
+
const IDENTIFIER = /^[A-Za-z_]\w*$/;
|
|
27
|
+
const VALUE_CALL = /^([A-Za-z_]\w*)\.([A-Za-z_]\w*)$/;
|
|
28
|
+
const CV_QUALIFIER = /\b(?:const|volatile|typename|mutable|static)\b/g;
|
|
29
|
+
const DECLARED_VALUE = /\b([A-Za-z_]\w*)(?:\s*::\s*[A-Za-z_]\w*)*(?:\s*<[^<>;{}()]*>)?[\s*&]+(?:[A-Z][A-Z0-9_]*\s+)*(?=([A-Za-z_]\w*)\b)/g;
|
|
30
|
+
const TYPED_SUITE = /\b(?:TYPED_TEST_(?:SUITE|CASE)\s*\(|INSTANTIATE_TYPED_TEST_(?:SUITE|CASE)_P\s*\(\s*[A-Za-z_]\w*\s*,)\s*((?:::\s*)?[A-Za-z_]\w*(?:\s*::\s*[A-Za-z_]\w*)*)\s*,/g;
|
|
31
|
+
const ANONYMOUS = '<anonymous>';
|
|
32
|
+
const SPECIALIZATION_HEAD = /^(?:class|struct|union)\s+(?:[A-Z][A-Z0-9_]*(?:\([^()]*\))?\s+)*((?:[A-Za-z_]\w*\s*::\s*)*[A-Za-z_]\w*)\s*</;
|
|
33
|
+
const CLASS_HEAD = /\b(?:class|struct|union)\s+(?:[A-Z][A-Z0-9_]*(?:\([^()]*\))?\s+)*(?:[\w:]+::\s*)?$/;
|
|
34
|
+
const CONDITION = /\b(?:enable_if|void_t|disjunction|conjunction|negation|conditional|requires)\w*|\bis_\w+/;
|
|
35
|
+
function argumentsBetween(text, open, close) {
|
|
36
|
+
const out = [];
|
|
37
|
+
let depth = 0;
|
|
38
|
+
let parens = 0;
|
|
39
|
+
let start = open + 1;
|
|
40
|
+
const push = (end) => {
|
|
41
|
+
const raw = text.slice(start, end);
|
|
42
|
+
const trimmed = raw.trim();
|
|
43
|
+
if (trimmed)
|
|
44
|
+
out.push({ text: trimmed, offset: start + raw.indexOf(trimmed) });
|
|
45
|
+
};
|
|
46
|
+
for (let i = open + 1; i < close; i++) {
|
|
47
|
+
const c = text[i];
|
|
48
|
+
if (c === '(' || c === '[')
|
|
49
|
+
parens++;
|
|
50
|
+
else if (c === ')' || c === ']')
|
|
51
|
+
parens--;
|
|
52
|
+
else if (parens > 0)
|
|
53
|
+
continue;
|
|
54
|
+
else if (c === '<')
|
|
55
|
+
depth++;
|
|
56
|
+
else if (c === '>' && text[i - 1] !== '-')
|
|
57
|
+
depth--;
|
|
58
|
+
else if (c === ',' && depth === 0) {
|
|
59
|
+
push(i);
|
|
60
|
+
start = i + 1;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
push(close);
|
|
64
|
+
return out;
|
|
65
|
+
}
|
|
66
|
+
function closingAngle(text, open) {
|
|
67
|
+
let depth = 0;
|
|
68
|
+
let parens = 0;
|
|
69
|
+
const end = Math.min(text.length, open + MAX_ARGUMENT_LIST);
|
|
70
|
+
for (let i = open; i < end; i++) {
|
|
71
|
+
const c = text[i];
|
|
72
|
+
if (c === '(' || c === '[')
|
|
73
|
+
parens++;
|
|
74
|
+
else if (c === ')' || c === ']') {
|
|
75
|
+
if (--parens < 0)
|
|
76
|
+
return -1;
|
|
77
|
+
}
|
|
78
|
+
else if (parens > 0)
|
|
79
|
+
continue;
|
|
80
|
+
else if (c === '<')
|
|
81
|
+
depth++;
|
|
82
|
+
else if (c === '>') {
|
|
83
|
+
if (text[i - 1] === '-')
|
|
84
|
+
continue;
|
|
85
|
+
if (--depth === 0)
|
|
86
|
+
return i;
|
|
87
|
+
}
|
|
88
|
+
else if (c === ';' || c === '{' || c === '}')
|
|
89
|
+
return -1;
|
|
90
|
+
}
|
|
91
|
+
return -1;
|
|
92
|
+
}
|
|
93
|
+
const isWord = (code) => (code >= 48 && code <= 57) || (code >= 65 && code <= 90) || (code >= 97 && code <= 122) || code === 95;
|
|
94
|
+
const isSpace = (code) => code === 32 || code === 9 || code === 10 || code === 13;
|
|
95
|
+
const detached = (name) => `_${name}`.slice(1);
|
|
96
|
+
function addNamesBeforeAngle(text, names) {
|
|
97
|
+
for (let open = text.indexOf('<'); open >= 0; open = text.indexOf('<', open + 1)) {
|
|
98
|
+
let end = open;
|
|
99
|
+
while (end > 0 && isSpace(text.charCodeAt(end - 1)))
|
|
100
|
+
end--;
|
|
101
|
+
let start = end;
|
|
102
|
+
while (start > 0 && isWord(text.charCodeAt(start - 1)))
|
|
103
|
+
start--;
|
|
104
|
+
if (start < end)
|
|
105
|
+
names.add(text.slice(start, end));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function qualifiersBefore(text, end) {
|
|
109
|
+
const out = [];
|
|
110
|
+
let at = end;
|
|
111
|
+
for (;;) {
|
|
112
|
+
while (at > 0 && isSpace(text.charCodeAt(at - 1)))
|
|
113
|
+
at--;
|
|
114
|
+
if (text.slice(at - 2, at) !== '::')
|
|
115
|
+
return out;
|
|
116
|
+
at -= 2;
|
|
117
|
+
while (at > 0 && isSpace(text.charCodeAt(at - 1)))
|
|
118
|
+
at--;
|
|
119
|
+
let args = null;
|
|
120
|
+
if (text[at - 1] === '>') {
|
|
121
|
+
let depth = 0;
|
|
122
|
+
let i = at - 1;
|
|
123
|
+
const floor = Math.max(0, at - MAX_ARGUMENT_LIST);
|
|
124
|
+
for (; i >= floor; i--) {
|
|
125
|
+
if (text[i] === '>')
|
|
126
|
+
depth++;
|
|
127
|
+
else if (text[i] === '<' && --depth === 0)
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
if (i < floor)
|
|
131
|
+
return out;
|
|
132
|
+
args = argumentsBetween(text, i, at - 1).map((a) => a.text);
|
|
133
|
+
at = i;
|
|
134
|
+
while (at > 0 && isSpace(text.charCodeAt(at - 1)))
|
|
135
|
+
at--;
|
|
136
|
+
}
|
|
137
|
+
let start = at;
|
|
138
|
+
while (start > 0 && isWord(text.charCodeAt(start - 1)))
|
|
139
|
+
start--;
|
|
140
|
+
if (start === at)
|
|
141
|
+
return out;
|
|
142
|
+
out.unshift({ name: text.slice(start, at), args });
|
|
143
|
+
at = start;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const escapeRegExp = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
147
|
+
function argumentKey(arg) {
|
|
148
|
+
return arg.replace(/\s*([^\w\s])\s*/g, '$1').replace(/\s+/g, ' ');
|
|
149
|
+
}
|
|
150
|
+
const slotKey = (slot) => `${slot.template.key}#${slot.index}#${slot.template.pattern?.join() ?? ''}`;
|
|
151
|
+
function isOwnHead(args, head) {
|
|
152
|
+
return args.length === head.length && args.every((a, k) => a.replace(/\s*\.\.\.$/, '') === head[k].name);
|
|
153
|
+
}
|
|
154
|
+
function specializationOf(args, parameters) {
|
|
155
|
+
const names = new Set(parameters.flatMap((p) => (p.name ? [p.name] : [])));
|
|
156
|
+
const pattern = args.map((text) => {
|
|
157
|
+
const bare = text.replace(/\.\.\.$/, '');
|
|
158
|
+
if (names.has(bare))
|
|
159
|
+
return { text, parameter: bare, pack: bare !== text, words: [] };
|
|
160
|
+
const words = (text.match(/[A-Za-z_]\w*/g) ?? []).filter((w) => names.has(w));
|
|
161
|
+
if (words.length === 0)
|
|
162
|
+
return { text, words };
|
|
163
|
+
if (CONDITION.test(text))
|
|
164
|
+
return { text, condition: true, words };
|
|
165
|
+
return { text, words, shape: new RegExp(`^${text.split(/([A-Za-z_]\w*)/).map((part) => (names.has(part) ? '(.+)' : escapeRegExp(part))).join('')}$`) };
|
|
166
|
+
});
|
|
167
|
+
return { pattern, written: args.join() };
|
|
168
|
+
}
|
|
169
|
+
function cppNamespaceBlocks(text) {
|
|
170
|
+
const blocks = [];
|
|
171
|
+
const open = [];
|
|
172
|
+
let path = [];
|
|
173
|
+
for (const m of text.matchAll(/\bnamespace\b(?:\s+([A-Za-z_][\w:]*(?:\s+[\w:]+)*))?\s*\{|[{}]/g)) {
|
|
174
|
+
if (m[0] === '{')
|
|
175
|
+
open.push(null);
|
|
176
|
+
else if (m[0] === '}') {
|
|
177
|
+
const block = open.pop();
|
|
178
|
+
if (block) {
|
|
179
|
+
block.end = m.index;
|
|
180
|
+
path = open.reduce((p, b) => b?.path ?? p, []);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
const names = m[1]?.replace(/\s+/g, '') ?? '';
|
|
185
|
+
const block = { start: m.index, end: text.length, path: names ? [...path, ...names.split('::')] : path };
|
|
186
|
+
blocks.push(block);
|
|
187
|
+
open.push(block);
|
|
188
|
+
path = block.path;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return blocks;
|
|
192
|
+
}
|
|
193
|
+
class TemplateInstantiations {
|
|
194
|
+
queries;
|
|
195
|
+
ctx;
|
|
196
|
+
onYield;
|
|
197
|
+
sources = new lru_cache_1.LRUCache(MAX_FILES_HELD);
|
|
198
|
+
declarations = new lru_cache_1.LRUCache(MAX_FILES_HELD);
|
|
199
|
+
namespaces = new lru_cache_1.LRUCache(MAX_FILES_HELD);
|
|
200
|
+
templates = new Map();
|
|
201
|
+
written = new lru_cache_1.LRUCache(MAX_TEMPLATES_HELD);
|
|
202
|
+
calls = new Map();
|
|
203
|
+
seen = new Map();
|
|
204
|
+
includedBy = null;
|
|
205
|
+
includers = new Map();
|
|
206
|
+
values = new Map();
|
|
207
|
+
filesNaming = new Map();
|
|
208
|
+
typedFiles = [];
|
|
209
|
+
suites = null;
|
|
210
|
+
blanked = null;
|
|
211
|
+
scanned = 0;
|
|
212
|
+
constructor(queries, ctx, onYield) {
|
|
213
|
+
this.queries = queries;
|
|
214
|
+
this.ctx = ctx;
|
|
215
|
+
this.onYield = onYield;
|
|
216
|
+
}
|
|
217
|
+
async read() {
|
|
218
|
+
const declared = new Map();
|
|
219
|
+
const aliases = (0, cpp_namespaces_1.cppNamespaceAliasWalk)(this.ctx);
|
|
220
|
+
for (const file of this.ctx.getAllFiles()) {
|
|
221
|
+
if (!CPP_FILE.test(file))
|
|
222
|
+
continue;
|
|
223
|
+
if ((++this.scanned & 63) === 0)
|
|
224
|
+
await this.onYield();
|
|
225
|
+
const text = this.ctx.scanFile ? this.ctx.scanFile(file) : this.ctx.readFile(file);
|
|
226
|
+
if (!text)
|
|
227
|
+
continue;
|
|
228
|
+
aliases?.add(file, text);
|
|
229
|
+
const names = new Set();
|
|
230
|
+
addNamesBeforeAngle(text, names);
|
|
231
|
+
for (const name of names) {
|
|
232
|
+
const list = this.filesNaming.get(name);
|
|
233
|
+
if (list)
|
|
234
|
+
list.push(file);
|
|
235
|
+
else
|
|
236
|
+
this.filesNaming.set(detached(name), [file]);
|
|
237
|
+
}
|
|
238
|
+
const typed = text.includes('TYPED_TEST');
|
|
239
|
+
if (typed)
|
|
240
|
+
this.typedFiles.push(file);
|
|
241
|
+
if (!typed && !text.includes('template'))
|
|
242
|
+
continue;
|
|
243
|
+
const types = new Set([...(0, cpp_type_aliases_1.cppTypeNamesDeclared)(text)].map(detached));
|
|
244
|
+
if (typed)
|
|
245
|
+
types.add('TypeParam');
|
|
246
|
+
declared.set(file, types);
|
|
247
|
+
}
|
|
248
|
+
aliases?.finish();
|
|
249
|
+
return declared;
|
|
250
|
+
}
|
|
251
|
+
lines(file) {
|
|
252
|
+
return this.ctx.getFileLines?.(file) ?? this.ctx.readFile(file)?.split(/\r?\n/) ?? [];
|
|
253
|
+
}
|
|
254
|
+
classesNamed(qualified) {
|
|
255
|
+
return this.ctx.getNodesByQualifiedName(qualified).filter((n) => CLASS_KINDS.has(n.kind))
|
|
256
|
+
.sort((a, b) => (a.filePath < b.filePath ? -1 : a.filePath > b.filePath ? 1 : 0) || a.startLine - b.startLine);
|
|
257
|
+
}
|
|
258
|
+
declarationAround(node) {
|
|
259
|
+
for (let scope = (0, cpp_type_aliases_1.cppParentScope)(node.qualifiedName); scope; scope = (0, cpp_type_aliases_1.cppParentScope)(scope)) {
|
|
260
|
+
const around = this.ctx.getNodesByQualifiedName(scope).find((n) => n.id !== node.id && (CLASS_KINDS.has(n.kind) || FUNCTION_KINDS.has(n.kind)) && n.filePath === node.filePath &&
|
|
261
|
+
n.startLine <= node.startLine && (n.endLine ?? n.startLine) >= (node.endLine ?? node.startLine));
|
|
262
|
+
if (around)
|
|
263
|
+
return around;
|
|
264
|
+
}
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
templateOfClass(decl, head) {
|
|
268
|
+
const text = this.lines(decl.filePath).slice(decl.startLine - 1, decl.startLine + 7).join('\n').slice(decl.startColumn);
|
|
269
|
+
const written = SPECIALIZATION_HEAD.exec(text);
|
|
270
|
+
const close = written ? closingAngle(text, written[0].length - 1) : -1;
|
|
271
|
+
const args = close < 0 ? null : argumentsBetween(text, written[0].length - 1, close).map((a) => a.text);
|
|
272
|
+
const pattern = args && !isOwnHead(args, head) ? args : null;
|
|
273
|
+
const nested = close >= 0 && /^\s*::/.test(text.slice(close + 1));
|
|
274
|
+
if (decl.name !== ANONYMOUS && !nested)
|
|
275
|
+
return this.classTemplate(decl, head, pattern);
|
|
276
|
+
if (!args)
|
|
277
|
+
return null;
|
|
278
|
+
const place = this.placeIn(decl, decl.startLine);
|
|
279
|
+
const found = (0, cpp_supertypes_1.cppClassWritten)(written[1].replace(/\s+/g, ''), { ...this.site(place), scope: (0, cpp_type_aliases_1.cppParentScope)(decl.qualifiedName) }, place.ref, this.ctx);
|
|
280
|
+
return found?.exact && CLASS_KINDS.has(found.node.kind) ? this.classTemplate(found.node, head, pattern) : null;
|
|
281
|
+
}
|
|
282
|
+
classTemplate(decl, parameters, pattern) {
|
|
283
|
+
return { key: `class:${decl.qualifiedName}@${decl.filePath}`, kind: 'class', name: decl.name, node: decl, parameters, pattern };
|
|
284
|
+
}
|
|
285
|
+
functionTemplate(node, parameters) {
|
|
286
|
+
return { key: `function:${node.id}`, kind: 'function', name: node.name, node, parameters, pattern: null };
|
|
287
|
+
}
|
|
288
|
+
outOfLineTemplates(node, heads) {
|
|
289
|
+
const text = this.lines(node.filePath).slice(node.startLine - 1, node.startLine + 11).join('\n').slice(node.startColumn);
|
|
290
|
+
const name = new RegExp(String.raw `::\s*(?:template\s+)?~?${escapeRegExp(node.name)}\s*[(<]`).exec(text);
|
|
291
|
+
const written = name ? qualifiersBefore(text, name.index + 2).filter((q) => q.args) : [];
|
|
292
|
+
const out = [];
|
|
293
|
+
if (heads.length !== written.length && heads.length !== written.length + 1)
|
|
294
|
+
return out;
|
|
295
|
+
if (heads.length === written.length + 1)
|
|
296
|
+
out.push(this.functionTemplate(node, heads[heads.length - 1]));
|
|
297
|
+
const segments = node.qualifiedName.split('::');
|
|
298
|
+
for (let i = written.length - 1; i >= 0; i--) {
|
|
299
|
+
const q = written[i];
|
|
300
|
+
const head = heads[i];
|
|
301
|
+
const at = segments.lastIndexOf(q.name, segments.length - 2);
|
|
302
|
+
const decls = at < 0 ? [] : this.classesNamed(segments.slice(0, at + 1).join('::'));
|
|
303
|
+
const decl = decls.find((n) => n.filePath === node.filePath) ?? decls.find((n) => this.sees(node.filePath, n));
|
|
304
|
+
if (!decl || head.length === 0)
|
|
305
|
+
continue;
|
|
306
|
+
out.push(this.classTemplate(decl, head, isOwnHead(q.args, head) ? null : q.args));
|
|
307
|
+
}
|
|
308
|
+
return out;
|
|
309
|
+
}
|
|
310
|
+
typedTestTemplate(caller) {
|
|
311
|
+
if (caller.kind !== 'function' || !/^TYPED_TEST(?:_P)?$/.test(caller.name))
|
|
312
|
+
return null;
|
|
313
|
+
const head = this.lines(caller.filePath).slice(caller.startLine - 1, caller.startLine + 1).join(' ');
|
|
314
|
+
const fixture = /\bTYPED_TEST(?:_P)?\s*\(\s*((?:::\s*)?[A-Za-z_]\w*(?:\s*::\s*[A-Za-z_]\w*)*)\s*,/.exec(head)?.[1];
|
|
315
|
+
if (!fixture)
|
|
316
|
+
return null;
|
|
317
|
+
const place = this.placeIn(caller, caller.startLine);
|
|
318
|
+
const found = (0, cpp_supertypes_1.cppClassWritten)(fixture.replace(/\s+/g, ''), this.site(place), place.ref, this.ctx);
|
|
319
|
+
if (!found?.exact || !CLASS_KINDS.has(found.node.kind))
|
|
320
|
+
return null;
|
|
321
|
+
return this.classTemplate(found.node, [{ name: 'TypeParam', pack: false, fallback: null }], null);
|
|
322
|
+
}
|
|
323
|
+
templatesAround(node) {
|
|
324
|
+
const hit = this.templates.get(node.id);
|
|
325
|
+
if (hit)
|
|
326
|
+
return hit;
|
|
327
|
+
const out = [];
|
|
328
|
+
this.templates.set(node.id, out);
|
|
329
|
+
const heads = (0, cpp_type_aliases_1.cppTemplateHeads)(node, this.ctx);
|
|
330
|
+
const around = this.declarationAround(node);
|
|
331
|
+
if (heads.length > 0) {
|
|
332
|
+
const own = heads[heads.length - 1];
|
|
333
|
+
if (CLASS_KINDS.has(node.kind)) {
|
|
334
|
+
const template = this.templateOfClass(node, own);
|
|
335
|
+
if (template)
|
|
336
|
+
out.push(template);
|
|
337
|
+
}
|
|
338
|
+
else if (node.kind === 'type_alias') {
|
|
339
|
+
out.push({ key: `alias:${node.qualifiedName}`, kind: 'alias', name: node.name, node, parameters: own, pattern: null });
|
|
340
|
+
}
|
|
341
|
+
else if (FUNCTION_KINDS.has(node.kind)) {
|
|
342
|
+
if (around || !(0, cpp_type_aliases_1.cppParentScope)(node.qualifiedName))
|
|
343
|
+
out.push(this.functionTemplate(node, own));
|
|
344
|
+
else
|
|
345
|
+
out.push(...this.outOfLineTemplates(node, heads));
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
const typed = this.typedTestTemplate(node);
|
|
349
|
+
if (typed)
|
|
350
|
+
out.push(typed);
|
|
351
|
+
if (around)
|
|
352
|
+
out.push(...this.templatesAround(around));
|
|
353
|
+
return out;
|
|
354
|
+
}
|
|
355
|
+
slotNamed(name, templates) {
|
|
356
|
+
for (const template of templates) {
|
|
357
|
+
const index = template.parameters.findIndex((p) => p.name === name);
|
|
358
|
+
if (index >= 0)
|
|
359
|
+
return { template, index };
|
|
360
|
+
}
|
|
361
|
+
return null;
|
|
362
|
+
}
|
|
363
|
+
parameterOf(segments, ref, caller) {
|
|
364
|
+
const head = segments[0];
|
|
365
|
+
const direct = this.slotNamed(head, this.templatesAround(caller));
|
|
366
|
+
if (direct)
|
|
367
|
+
return { slot: direct, parameter: head, types: segments.slice(1) };
|
|
368
|
+
const alias = (0, cpp_type_aliases_1.cppAliasWrittenAt)(head, ref, this.ctx);
|
|
369
|
+
const written = alias && (0, cpp_type_aliases_1.cppTypeSegments)(alias.text);
|
|
370
|
+
if (!written)
|
|
371
|
+
return null;
|
|
372
|
+
const slot = this.slotNamed(written[0], this.templatesAround(alias.alias ?? caller));
|
|
373
|
+
return slot ? { slot, parameter: written[0], types: [...written.slice(1), ...segments.slice(1)] } : null;
|
|
374
|
+
}
|
|
375
|
+
localValues(caller, types) {
|
|
376
|
+
const hit = this.values.get(caller.id);
|
|
377
|
+
if (hit)
|
|
378
|
+
return hit;
|
|
379
|
+
const values = new Set();
|
|
380
|
+
const text = this.lines(caller.filePath).slice(caller.startLine - 1, caller.endLine ?? caller.startLine).join('\n').replace(CV_QUALIFIER, ' ');
|
|
381
|
+
for (const m of text.matchAll(DECLARED_VALUE))
|
|
382
|
+
if (types.has(m[1]))
|
|
383
|
+
values.add(m[2]);
|
|
384
|
+
this.values.set(caller.id, values);
|
|
385
|
+
return values;
|
|
386
|
+
}
|
|
387
|
+
throughValue(ref, caller, receiver, member, types) {
|
|
388
|
+
if (this.templatesAround(caller).length === 0)
|
|
389
|
+
return null;
|
|
390
|
+
let text;
|
|
391
|
+
if (this.localValues(caller, types).has(receiver)) {
|
|
392
|
+
const declared = (0, name_matcher_1.cppArgumentType)(receiver, ref, this.ctx);
|
|
393
|
+
text = declared?.kind === 'type' ? declared.text : undefined;
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
const field = (0, name_matcher_1.cppCallersMember)(receiver, caller, ref, this.ctx)?.text;
|
|
397
|
+
const head = field ? (0, cpp_type_aliases_1.cppTypeSegments)(field)?.[0] : undefined;
|
|
398
|
+
if (head && types.has(head) && !(0, name_matcher_1.isCppLocalName)(receiver, caller, ref, this.ctx))
|
|
399
|
+
text = field;
|
|
400
|
+
}
|
|
401
|
+
const written = text ? (0, cpp_type_aliases_1.cppTypeSegments)(text) : null;
|
|
402
|
+
const type = written && this.parameterOf(written, ref, caller);
|
|
403
|
+
if (!type)
|
|
404
|
+
return null;
|
|
405
|
+
const line = this.lines(ref.filePath)[ref.line - 1] ?? '';
|
|
406
|
+
const arrow = new RegExp(String.raw `\b${receiver}\s*->\s*(?:template\s+)?${member}\b`).test(line);
|
|
407
|
+
return arrow !== (0, cpp_type_aliases_1.isCppPointerType)(text) ? null : { ...type, member, arity: null };
|
|
408
|
+
}
|
|
409
|
+
through(ref, caller, types) {
|
|
410
|
+
const value = VALUE_CALL.exec(ref.referenceName);
|
|
411
|
+
if (value)
|
|
412
|
+
return this.throughValue(ref, caller, value[1], value[2], types);
|
|
413
|
+
const constructor = /^(.*)::([^:]+)\/(\d+)$/.exec(ref.referenceName);
|
|
414
|
+
const segments = (constructor ? constructor[1] : ref.referenceName).replace(/::\s*template\s+/g, '::').split('::');
|
|
415
|
+
if (!segments.every((s) => IDENTIFIER.test(s)))
|
|
416
|
+
return null;
|
|
417
|
+
const type = this.parameterOf(segments, ref, caller);
|
|
418
|
+
if (!type)
|
|
419
|
+
return null;
|
|
420
|
+
if (constructor)
|
|
421
|
+
return { ...type, member: null, arity: Number(constructor[3]) };
|
|
422
|
+
if (ref.referenceKind === 'instantiates')
|
|
423
|
+
return { ...type, member: null, arity: null };
|
|
424
|
+
return { ...type, types: type.types.slice(0, -1), member: type.types[type.types.length - 1], arity: null };
|
|
425
|
+
}
|
|
426
|
+
source(file) {
|
|
427
|
+
let source = this.sources.get(file);
|
|
428
|
+
if (source === undefined) {
|
|
429
|
+
const raw = this.ctx.readFile(file);
|
|
430
|
+
const text = raw === null ? null : (0, strip_comments_1.stripCommentsForRegex)(raw, 'cpp');
|
|
431
|
+
source = text === null ? null : { text, lineAt: (0, synth_utils_1.makeLineAt)(text, 1) };
|
|
432
|
+
this.sources.set(file, source);
|
|
433
|
+
}
|
|
434
|
+
return source;
|
|
435
|
+
}
|
|
436
|
+
declarationsIn(file) {
|
|
437
|
+
let decls = this.declarations.get(file);
|
|
438
|
+
if (!decls) {
|
|
439
|
+
decls = this.ctx.getNodesInFile(file).filter((n) => DECLARATION_KINDS.has(n.kind) && (n.language === 'cpp' || n.language === 'c'));
|
|
440
|
+
this.declarations.set(file, decls);
|
|
441
|
+
}
|
|
442
|
+
return decls;
|
|
443
|
+
}
|
|
444
|
+
declarationAt(file, line) {
|
|
445
|
+
let best = null;
|
|
446
|
+
for (const n of this.declarationsIn(file)) {
|
|
447
|
+
if (n.startLine > line || (n.endLine ?? n.startLine) < line)
|
|
448
|
+
continue;
|
|
449
|
+
if (!best || n.startLine > best.startLine || (n.startLine === best.startLine && (n.endLine ?? n.startLine) < (best.endLine ?? best.startLine)))
|
|
450
|
+
best = n;
|
|
451
|
+
}
|
|
452
|
+
return best;
|
|
453
|
+
}
|
|
454
|
+
namespaceAt(file, offset, line) {
|
|
455
|
+
const source = this.source(file);
|
|
456
|
+
if (!source)
|
|
457
|
+
return '';
|
|
458
|
+
let blocks = this.namespaces.get(file);
|
|
459
|
+
if (!blocks)
|
|
460
|
+
this.namespaces.set(file, (blocks = cppNamespaceBlocks(source.text)));
|
|
461
|
+
let path = [];
|
|
462
|
+
for (const block of blocks) {
|
|
463
|
+
if (block.start > offset)
|
|
464
|
+
break;
|
|
465
|
+
if (offset < block.end)
|
|
466
|
+
path = block.path;
|
|
467
|
+
}
|
|
468
|
+
const macros = (0, cpp_namespaces_1.cppMacroNamespaceFrames)(file, this.ctx).filter((f) => f.start <= line && f.end >= line).flatMap((f) => f.path);
|
|
469
|
+
return [...macros, ...path].join('::');
|
|
470
|
+
}
|
|
471
|
+
placeIn(around, line) {
|
|
472
|
+
const file = around.filePath;
|
|
473
|
+
const scope = CLASS_KINDS.has(around.kind) ? around.qualifiedName : (0, cpp_type_aliases_1.cppParentScope)(around.qualifiedName);
|
|
474
|
+
const ref = { fromNodeId: around.id, referenceName: '', referenceKind: 'references', line, column: 0, filePath: file, language: 'cpp' };
|
|
475
|
+
return { file, line, scope, around, templates: [], parameters: new Set(), ref };
|
|
476
|
+
}
|
|
477
|
+
parametersOf(templates) {
|
|
478
|
+
const parameters = new Set();
|
|
479
|
+
for (const t of templates)
|
|
480
|
+
for (const p of t.parameters)
|
|
481
|
+
if (p.name)
|
|
482
|
+
parameters.add(p.name);
|
|
483
|
+
return parameters;
|
|
484
|
+
}
|
|
485
|
+
placeOfCaller(caller, line) {
|
|
486
|
+
const templates = this.templatesAround(caller);
|
|
487
|
+
return { ...this.placeIn(caller, line), templates, parameters: this.parametersOf(templates) };
|
|
488
|
+
}
|
|
489
|
+
placeAt(file, offset) {
|
|
490
|
+
const source = this.source(file);
|
|
491
|
+
const line = source.lineAt(offset);
|
|
492
|
+
const around = this.declarationAt(file, line);
|
|
493
|
+
const place = around ? this.placeOfCaller(around, line) : {
|
|
494
|
+
file, line, around: null, templates: [], parameters: new Set(),
|
|
495
|
+
scope: this.namespaceAt(file, offset, line),
|
|
496
|
+
ref: { fromNodeId: '', referenceName: '', referenceKind: 'references', line, column: 0, filePath: file, language: 'cpp' },
|
|
497
|
+
};
|
|
498
|
+
const before = source.text.slice(Math.max(0, offset - HEAD_WINDOW), offset);
|
|
499
|
+
const statement = before.slice(Math.max(before.lastIndexOf(';'), before.lastIndexOf('{'), before.lastIndexOf('}')) + 1);
|
|
500
|
+
if (statement.includes('template')) {
|
|
501
|
+
const parameters = new Set(place.parameters);
|
|
502
|
+
for (const name of (0, cpp_type_aliases_1.cppTypeNamesDeclared)(`${statement}>`))
|
|
503
|
+
parameters.add(name);
|
|
504
|
+
place.parameters = parameters;
|
|
505
|
+
}
|
|
506
|
+
return place;
|
|
507
|
+
}
|
|
508
|
+
site(place) {
|
|
509
|
+
return { scope: place.scope, file: place.file, line: place.line, parameters: place.parameters, sees: (n) => this.sees(place.file, n) };
|
|
510
|
+
}
|
|
511
|
+
includersOf(file) {
|
|
512
|
+
const hit = this.includers.get(file);
|
|
513
|
+
if (hit)
|
|
514
|
+
return hit;
|
|
515
|
+
if (!this.includedBy) {
|
|
516
|
+
this.includedBy = new Map();
|
|
517
|
+
for (const { source, target } of this.queries.getCppIncludeEdges()) {
|
|
518
|
+
const list = this.includedBy.get(target);
|
|
519
|
+
if (list)
|
|
520
|
+
list.push(source);
|
|
521
|
+
else
|
|
522
|
+
this.includedBy.set(target, [source]);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
const found = new Set();
|
|
526
|
+
const queue = [file];
|
|
527
|
+
for (let i = 0; i < queue.length; i++) {
|
|
528
|
+
for (const source of this.includedBy.get(queue[i]) ?? []) {
|
|
529
|
+
if (found.has(source))
|
|
530
|
+
continue;
|
|
531
|
+
found.add(source);
|
|
532
|
+
queue.push(source);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
this.includers.set(file, found);
|
|
536
|
+
return found;
|
|
537
|
+
}
|
|
538
|
+
sees(file, decl) {
|
|
539
|
+
if (decl.filePath === file)
|
|
540
|
+
return true;
|
|
541
|
+
const key = `${file}\0${decl.filePath}`;
|
|
542
|
+
let seen = this.seen.get(key);
|
|
543
|
+
if (seen === undefined) {
|
|
544
|
+
const includers = this.includersOf(decl.filePath);
|
|
545
|
+
seen = includers.has(file) || this.includersOf(file).has(decl.filePath);
|
|
546
|
+
if (!seen)
|
|
547
|
+
for (const unit of this.includersOf(file))
|
|
548
|
+
if (includers.has(unit)) {
|
|
549
|
+
seen = true;
|
|
550
|
+
break;
|
|
551
|
+
}
|
|
552
|
+
this.seen.set(key, seen);
|
|
553
|
+
}
|
|
554
|
+
return seen;
|
|
555
|
+
}
|
|
556
|
+
isDirective(file, line) {
|
|
557
|
+
const lines = this.lines(file);
|
|
558
|
+
let at = line - 1;
|
|
559
|
+
while (at > 0 && /\\\s*$/.test(lines[at - 1] ?? ''))
|
|
560
|
+
at--;
|
|
561
|
+
return /^\s*#/.test(lines[at] ?? '');
|
|
562
|
+
}
|
|
563
|
+
isCode(file, line, column, name) {
|
|
564
|
+
if (this.blanked?.file !== file || this.blanked.line !== line) {
|
|
565
|
+
const text = (0, cpp_raw_strings_1.cppLiteralsBlanked)(this.lines(file)[line - 1] ?? '', line, (0, cpp_raw_strings_1.cppNonCodeLines)(file, this.ctx));
|
|
566
|
+
this.blanked = { file, line, text };
|
|
567
|
+
}
|
|
568
|
+
return this.blanked.text.startsWith(name, column);
|
|
569
|
+
}
|
|
570
|
+
isTemplate(found, template, file) {
|
|
571
|
+
return found.qualifiedName === template.node.qualifiedName && this.sees(file, template.node);
|
|
572
|
+
}
|
|
573
|
+
async writtenAs(template) {
|
|
574
|
+
const hit = this.written.get(template.key);
|
|
575
|
+
if (hit)
|
|
576
|
+
return hit;
|
|
577
|
+
const out = { instantiations: [], specializations: [] };
|
|
578
|
+
this.written.set(template.key, out);
|
|
579
|
+
const { name } = template;
|
|
580
|
+
for (const file of this.filesNaming.get(name) ?? []) {
|
|
581
|
+
if ((++this.scanned & 15) === 0)
|
|
582
|
+
await this.onYield();
|
|
583
|
+
const source = this.source(file);
|
|
584
|
+
if (!source)
|
|
585
|
+
continue;
|
|
586
|
+
const { text } = source;
|
|
587
|
+
let lineStart = { line: 0, offset: 0 };
|
|
588
|
+
for (let at = text.indexOf(name); at >= 0; at = text.indexOf(name, at + name.length)) {
|
|
589
|
+
if (at > 0 && isWord(text.charCodeAt(at - 1)))
|
|
590
|
+
continue;
|
|
591
|
+
let open = at + name.length;
|
|
592
|
+
while (open < text.length && isSpace(text.charCodeAt(open)))
|
|
593
|
+
open++;
|
|
594
|
+
if (text[open] !== '<')
|
|
595
|
+
continue;
|
|
596
|
+
const close = closingAngle(text, open);
|
|
597
|
+
if (close < 0)
|
|
598
|
+
continue;
|
|
599
|
+
const before = text.slice(Math.max(0, at - HEAD_WINDOW), at);
|
|
600
|
+
if (/(?:\.|->)\s*(?:template\s+)?$/.test(before) || /\bfriend\s+(?:class|struct)\s+[\w:\s]*$/.test(before))
|
|
601
|
+
continue;
|
|
602
|
+
const line = source.lineAt(at);
|
|
603
|
+
if (lineStart.line !== line)
|
|
604
|
+
lineStart = { line, offset: text.lastIndexOf('\n', at) + 1 };
|
|
605
|
+
if (this.isDirective(file, line) || !this.isCode(file, line, at - lineStart.offset, name))
|
|
606
|
+
continue;
|
|
607
|
+
const place = this.placeAt(file, at);
|
|
608
|
+
const written = [...qualifiersBefore(text, at).map((q) => q.name), name].join('::');
|
|
609
|
+
const site = template.kind === 'alias' ? { ...this.site(place), declared: true } : this.site(place);
|
|
610
|
+
const found = (0, cpp_supertypes_1.cppClassWritten)(written, site, place.ref, this.ctx);
|
|
611
|
+
if (!found?.exact || !this.isTemplate(found.node, template, file))
|
|
612
|
+
continue;
|
|
613
|
+
const args = argumentsBetween(text, open, close).map((a) => ({ text: a.text, place: { ...place, line: source.lineAt(a.offset) } }));
|
|
614
|
+
const after = text.slice(close + 1, close + 8);
|
|
615
|
+
const keyword = CLASS_HEAD.exec(before);
|
|
616
|
+
const head = keyword && /^\s*(?:[{;]|:(?!:)|final\b)/.test(after) ? /\btemplate\s*<([^;{}]*)>\s*$/.exec(before.slice(0, keyword.index)) : null;
|
|
617
|
+
if (head) {
|
|
618
|
+
out.specializations.push(specializationOf(args.map((a) => argumentKey(a.text)), (0, cpp_type_aliases_1.cppTemplateParametersIn)(head[1])));
|
|
619
|
+
continue;
|
|
620
|
+
}
|
|
621
|
+
out.instantiations.push({ args });
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
if (template.kind === 'class')
|
|
625
|
+
for (const list of this.typedLists(template))
|
|
626
|
+
out.instantiations.push(list);
|
|
627
|
+
return out;
|
|
628
|
+
}
|
|
629
|
+
typedSuites() {
|
|
630
|
+
if (this.suites)
|
|
631
|
+
return this.suites;
|
|
632
|
+
const suites = new Map();
|
|
633
|
+
for (const file of this.typedFiles) {
|
|
634
|
+
const source = this.source(file);
|
|
635
|
+
if (!source)
|
|
636
|
+
continue;
|
|
637
|
+
for (const m of source.text.matchAll(TYPED_SUITE)) {
|
|
638
|
+
if (this.isDirective(file, source.lineAt(m.index)))
|
|
639
|
+
continue;
|
|
640
|
+
const fixture = m[1].replace(/\s+/g, '');
|
|
641
|
+
const last = fixture.slice(fixture.lastIndexOf(':') + 1);
|
|
642
|
+
const list = suites.get(last);
|
|
643
|
+
const suite = { file, offset: m.index + m[0].length, fixture };
|
|
644
|
+
if (list)
|
|
645
|
+
list.push(suite);
|
|
646
|
+
else
|
|
647
|
+
suites.set(last, [suite]);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
this.suites = suites;
|
|
651
|
+
return suites;
|
|
652
|
+
}
|
|
653
|
+
typedLists(template) {
|
|
654
|
+
const out = [];
|
|
655
|
+
for (const suite of this.typedSuites().get(template.name) ?? []) {
|
|
656
|
+
const place = this.placeAt(suite.file, suite.offset);
|
|
657
|
+
const found = (0, cpp_supertypes_1.cppClassWritten)(suite.fixture, this.site(place), place.ref, this.ctx);
|
|
658
|
+
if (!found?.exact || !this.isTemplate(found.node, template, suite.file))
|
|
659
|
+
continue;
|
|
660
|
+
for (const arg of this.typeList(suite.file, suite.offset, 0))
|
|
661
|
+
out.push({ args: [arg] });
|
|
662
|
+
}
|
|
663
|
+
return out;
|
|
664
|
+
}
|
|
665
|
+
typeList(file, offset, hops) {
|
|
666
|
+
const source = this.source(file);
|
|
667
|
+
if (!source || hops > 3)
|
|
668
|
+
return [];
|
|
669
|
+
const { text } = source;
|
|
670
|
+
const from = text.slice(offset, offset + HEAD_WINDOW);
|
|
671
|
+
const list = /\bTypes\s*</.exec(from);
|
|
672
|
+
const end = /[,;)]/.exec(from)?.index ?? 0;
|
|
673
|
+
if (list && list.index < Math.max(end, 1)) {
|
|
674
|
+
const open = offset + list.index + list[0].length - 1;
|
|
675
|
+
const close = closingAngle(text, open);
|
|
676
|
+
if (close < 0)
|
|
677
|
+
return [];
|
|
678
|
+
const place = this.placeAt(file, open);
|
|
679
|
+
return argumentsBetween(text, open, close).map((a) => ({ text: a.text, place: { ...place, line: source.lineAt(a.offset) } }));
|
|
680
|
+
}
|
|
681
|
+
const name = from.slice(0, end).replace(/\s+/g, '');
|
|
682
|
+
if (!(0, cpp_type_aliases_1.cppTypeSegments)(name))
|
|
683
|
+
return [];
|
|
684
|
+
const place = this.placeAt(file, offset);
|
|
685
|
+
const found = (0, cpp_supertypes_1.cppClassWritten)(name, { ...this.site(place), declared: true }, place.ref, this.ctx);
|
|
686
|
+
if (!found || found.node.kind !== 'type_alias')
|
|
687
|
+
return [];
|
|
688
|
+
const alias = found.node;
|
|
689
|
+
const aliased = this.source(alias.filePath);
|
|
690
|
+
if (!aliased)
|
|
691
|
+
return [];
|
|
692
|
+
let start = 0;
|
|
693
|
+
for (let i = 1; i < alias.startLine; i++)
|
|
694
|
+
start = aliased.text.indexOf('\n', start) + 1;
|
|
695
|
+
return this.typeList(alias.filePath, start + alias.startColumn, hops + 1);
|
|
696
|
+
}
|
|
697
|
+
callsOf(template) {
|
|
698
|
+
const hit = this.calls.get(template.key);
|
|
699
|
+
if (hit !== undefined)
|
|
700
|
+
return hit;
|
|
701
|
+
const edges = this.queries.getIncomingEdges(template.node.id, ['calls', 'references']);
|
|
702
|
+
if (edges.length > exports.CPP_TEMPLATE_SITE_CAP) {
|
|
703
|
+
this.calls.set(template.key, null);
|
|
704
|
+
return null;
|
|
705
|
+
}
|
|
706
|
+
const out = [];
|
|
707
|
+
for (const edge of edges) {
|
|
708
|
+
const caller = this.ctx.getNodeById?.(edge.source);
|
|
709
|
+
if (!caller || edge.line === undefined || edge.line === null || !this.sees(caller.filePath, template.node))
|
|
710
|
+
continue;
|
|
711
|
+
const ref = {
|
|
712
|
+
fromNodeId: caller.id, referenceName: template.name, referenceKind: 'calls',
|
|
713
|
+
line: edge.line, column: edge.column ?? 0, filePath: caller.filePath, language: 'cpp',
|
|
714
|
+
};
|
|
715
|
+
const place = this.placeOfCaller(caller, edge.line);
|
|
716
|
+
const args = (0, name_matcher_1.cppCallTemplateArguments)(ref, this.ctx)?.map((text) => ({ text, place })) ?? null;
|
|
717
|
+
out.push({ ref, place, args });
|
|
718
|
+
}
|
|
719
|
+
out.sort((a, b) => (a.ref.filePath < b.ref.filePath ? -1 : a.ref.filePath > b.ref.filePath ? 1 : 0) || a.ref.line - b.ref.line || a.ref.column - b.ref.column);
|
|
720
|
+
this.calls.set(template.key, out);
|
|
721
|
+
return out;
|
|
722
|
+
}
|
|
723
|
+
deduced(template, index, call) {
|
|
724
|
+
const name = template.parameters[index].name;
|
|
725
|
+
if (!name)
|
|
726
|
+
return null;
|
|
727
|
+
const list = (0, name_matcher_1.cppOverloadParameters)(template.node, template.name, this.ctx);
|
|
728
|
+
if (list === null)
|
|
729
|
+
return null;
|
|
730
|
+
const type = new RegExp(String.raw `^(?:const\s+)?${escapeRegExp(name)}\s*(?:const\s*)?(\*|&&?)?\s*(?:const\s+)?(?:[A-Za-z_]\w*)?\s*(?:=.*)?$`, 's');
|
|
731
|
+
const parameters = (0, name_matcher_1.splitCppTopLevel)(list).map((p) => p.trim().replace(/\s+/g, ' '));
|
|
732
|
+
const position = parameters.findIndex((p) => type.test(p));
|
|
733
|
+
if (position < 0)
|
|
734
|
+
return null;
|
|
735
|
+
const given = (0, name_matcher_1.cppCallArguments)(call.ref, template.name, this.ctx)?.[position];
|
|
736
|
+
const argument = given === undefined ? null : (0, name_matcher_1.cppArgumentType)(given, call.ref, this.ctx);
|
|
737
|
+
if (argument?.kind !== 'type')
|
|
738
|
+
return null;
|
|
739
|
+
const value = argument.text.replace(/&+\s*$/, '').trim();
|
|
740
|
+
if (type.exec(parameters[position])?.[1] !== '*')
|
|
741
|
+
return { text: value, place: call.place };
|
|
742
|
+
return /\*\s*(?:const\s*)?$/.test(value) ? { text: value.replace(/\*\s*(?:const\s*)?$/, '').trim(), place: call.place } : null;
|
|
743
|
+
}
|
|
744
|
+
argumentsFor(slot, args) {
|
|
745
|
+
const parameter = slot.template.parameters[slot.index];
|
|
746
|
+
if (parameter.pack)
|
|
747
|
+
return args.slice(slot.index);
|
|
748
|
+
const given = args[slot.index];
|
|
749
|
+
if (given)
|
|
750
|
+
return [given];
|
|
751
|
+
if (parameter.fallback === null || slot.template.kind === 'function')
|
|
752
|
+
return [];
|
|
753
|
+
const decl = slot.template.node;
|
|
754
|
+
return [{ text: parameter.fallback, place: this.placeOfCaller(decl, decl.startLine) }];
|
|
755
|
+
}
|
|
756
|
+
bindings(spec, primary, args) {
|
|
757
|
+
const bound = new Map();
|
|
758
|
+
for (let i = 0; i < spec.pattern.length; i++) {
|
|
759
|
+
const item = spec.pattern[i];
|
|
760
|
+
if (item.parameter) {
|
|
761
|
+
const given = item.pack ? args.slice(i) : args[i] !== undefined ? [args[i]] : [];
|
|
762
|
+
bound.set(item.parameter, [...(bound.get(item.parameter) ?? []), ...given]);
|
|
763
|
+
continue;
|
|
764
|
+
}
|
|
765
|
+
if (item.condition)
|
|
766
|
+
continue;
|
|
767
|
+
const given = args[i] ?? (primary[i]?.fallback ? argumentKey(primary[i].fallback) : null);
|
|
768
|
+
if (given === null)
|
|
769
|
+
return null;
|
|
770
|
+
if (!item.shape) {
|
|
771
|
+
if (given !== item.text && !given.endsWith(`::${item.text}`) && !item.text.endsWith(`::${given}`))
|
|
772
|
+
return null;
|
|
773
|
+
continue;
|
|
774
|
+
}
|
|
775
|
+
const m = item.shape.exec(given);
|
|
776
|
+
if (!m)
|
|
777
|
+
return null;
|
|
778
|
+
item.words.forEach((w, k) => bound.set(w, [m[k + 1]]));
|
|
779
|
+
}
|
|
780
|
+
return bound;
|
|
781
|
+
}
|
|
782
|
+
async argumentsOf(slot) {
|
|
783
|
+
const { template, index } = slot;
|
|
784
|
+
if (template.kind === 'function') {
|
|
785
|
+
return this.callsOf(template)?.flatMap((call) => {
|
|
786
|
+
const written = this.argumentsFor(slot, call.args ?? []);
|
|
787
|
+
const deduced = written.length === 0 ? this.deduced(template, index, call) : null;
|
|
788
|
+
return deduced ? [deduced] : written;
|
|
789
|
+
}) ?? null;
|
|
790
|
+
}
|
|
791
|
+
if ((this.filesNaming.get(template.name)?.length ?? 0) > exports.CPP_TEMPLATE_SITE_CAP)
|
|
792
|
+
return null;
|
|
793
|
+
const { instantiations, specializations } = await this.writtenAs(template);
|
|
794
|
+
const primary = specializations.length === 0 ? template.parameters : this.primaryParameters(template);
|
|
795
|
+
const own = template.pattern?.map(argumentKey).join() ?? null;
|
|
796
|
+
const out = [];
|
|
797
|
+
for (const site of instantiations) {
|
|
798
|
+
const given = specializations.length > 0 ? site.args.map((a) => argumentKey(a.text)) : [];
|
|
799
|
+
const taken = specializations.flatMap((spec) => {
|
|
800
|
+
const bound = this.bindings(spec, primary, given);
|
|
801
|
+
return bound ? [{ spec, bound }] : [];
|
|
802
|
+
});
|
|
803
|
+
if (own === null) {
|
|
804
|
+
if (taken.length === 0)
|
|
805
|
+
out.push(...this.argumentsFor(slot, site.args));
|
|
806
|
+
continue;
|
|
807
|
+
}
|
|
808
|
+
if (taken.length !== 1 || taken[0].spec.written !== own)
|
|
809
|
+
continue;
|
|
810
|
+
const name = template.parameters[index]?.name;
|
|
811
|
+
const place = site.args[0]?.place;
|
|
812
|
+
if (name && place)
|
|
813
|
+
for (const text of taken[0].bound.get(name) ?? [])
|
|
814
|
+
out.push({ text, place });
|
|
815
|
+
}
|
|
816
|
+
return out;
|
|
817
|
+
}
|
|
818
|
+
primaryParameters(template) {
|
|
819
|
+
if (!template.pattern)
|
|
820
|
+
return template.parameters;
|
|
821
|
+
for (const decl of this.classesNamed(template.node.qualifiedName)) {
|
|
822
|
+
const heads = (0, cpp_type_aliases_1.cppTemplateHeads)(decl, this.ctx);
|
|
823
|
+
const head = heads[heads.length - 1];
|
|
824
|
+
if (head && !this.templateOfClass(decl, head)?.pattern)
|
|
825
|
+
return head;
|
|
826
|
+
}
|
|
827
|
+
return [];
|
|
828
|
+
}
|
|
829
|
+
async classesOf(start) {
|
|
830
|
+
const classes = new Map();
|
|
831
|
+
const seen = new Set([slotKey(start)]);
|
|
832
|
+
let frontier = [start];
|
|
833
|
+
for (let hop = 0; hop <= MAX_TEMPLATE_HOPS && frontier.length > 0; hop++) {
|
|
834
|
+
const next = [];
|
|
835
|
+
for (const slot of frontier) {
|
|
836
|
+
const args = await this.argumentsOf(slot);
|
|
837
|
+
if (!args)
|
|
838
|
+
return null;
|
|
839
|
+
for (const arg of args) {
|
|
840
|
+
const text = arg.text.replace(/\s*\.\.\.$/, '').trim();
|
|
841
|
+
const name = text.replace(/\b(?:const|volatile|typename)\b/g, ' ').trim();
|
|
842
|
+
const outer = IDENTIFIER.test(name) ? this.slotNamed(name, arg.place.templates) : null;
|
|
843
|
+
if (outer) {
|
|
844
|
+
if (!seen.has(slotKey(outer)))
|
|
845
|
+
next.push(outer);
|
|
846
|
+
seen.add(slotKey(outer));
|
|
847
|
+
continue;
|
|
848
|
+
}
|
|
849
|
+
const node = this.classWritten(text, arg.place);
|
|
850
|
+
if (node && !classes.has(node.id))
|
|
851
|
+
classes.set(node.id, { node, at: arg });
|
|
852
|
+
if (classes.size > exports.CPP_TEMPLATE_ARGUMENT_CAP)
|
|
853
|
+
return classes;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
frontier = next;
|
|
857
|
+
}
|
|
858
|
+
return classes;
|
|
859
|
+
}
|
|
860
|
+
classWritten(text, place) {
|
|
861
|
+
const plain = (0, cpp_type_aliases_1.stripCppTemplateArguments)(text);
|
|
862
|
+
if (/[&*()[\]]/.test(plain) || (0, cpp_type_aliases_1.isCppPointerType)(text) || /\bdecltype\b/.test(plain))
|
|
863
|
+
return null;
|
|
864
|
+
const segments = (0, cpp_type_aliases_1.cppTypeSegments)(text);
|
|
865
|
+
if (!segments)
|
|
866
|
+
return null;
|
|
867
|
+
if (place.around && FUNCTION_KINDS.has(place.around.kind)) {
|
|
868
|
+
const fn = place.around;
|
|
869
|
+
if (segments.length === 1) {
|
|
870
|
+
const local = this.declarationsIn(place.file).filter((n) => CLASS_KINDS.has(n.kind) && n.name === segments[0] &&
|
|
871
|
+
n.startLine >= fn.startLine && (n.endLine ?? n.startLine) <= (fn.endLine ?? fn.startLine) && n.startLine <= place.line);
|
|
872
|
+
if (local.length > 0)
|
|
873
|
+
return local[local.length - 1];
|
|
874
|
+
}
|
|
875
|
+
if ((0, cpp_type_aliases_1.cppDeclaresLocalAlias)(text, place.ref, this.ctx)) {
|
|
876
|
+
const aliased = (0, cpp_type_aliases_1.resolveCppAliasedType)(text, place.ref, this.ctx);
|
|
877
|
+
const named = aliased && !aliased.pointer ? (0, cpp_type_aliases_1.cppAliasedClass)(aliased, this.ctx, place.ref) : undefined;
|
|
878
|
+
return named ? this.classesNamed(named).find((n) => this.sees(place.file, n)) ?? null : null;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
const found = (0, cpp_supertypes_1.cppClassWritten)(text, this.site(place), place.ref, this.ctx);
|
|
882
|
+
return found?.exact && CLASS_KINDS.has(found.node.kind) && this.sees(place.file, found.node) ? found.node : null;
|
|
883
|
+
}
|
|
884
|
+
target(cls, through, ref) {
|
|
885
|
+
const { types, member, arity } = through;
|
|
886
|
+
const spelled = types.join('::');
|
|
887
|
+
const visible = (n) => this.sees(cls.filePath, n);
|
|
888
|
+
if (member === null && arity === null) {
|
|
889
|
+
if (types.length === 0)
|
|
890
|
+
return cls;
|
|
891
|
+
const named = (0, cpp_type_aliases_1.cppTypeNamed)(spelled, [cls.qualifiedName], ref, this.ctx, visible);
|
|
892
|
+
if (!named)
|
|
893
|
+
return null;
|
|
894
|
+
if ('alias' in named)
|
|
895
|
+
return named.alias;
|
|
896
|
+
if ('enums' in named)
|
|
897
|
+
return named.enums[0] ?? null;
|
|
898
|
+
return this.classNode(named.cls, cls);
|
|
899
|
+
}
|
|
900
|
+
let owner = cls;
|
|
901
|
+
if (types.length > 0) {
|
|
902
|
+
const named = (0, cpp_type_aliases_1.cppClassNamed)(spelled, [cls.qualifiedName], ref, this.ctx, visible);
|
|
903
|
+
owner = named && 'cls' in named ? this.classNode(named.cls, cls) : null;
|
|
904
|
+
}
|
|
905
|
+
if (!owner)
|
|
906
|
+
return null;
|
|
907
|
+
if (arity !== null) {
|
|
908
|
+
const made = (0, cpp_constructor_1.matchCppConstructor)({ ...ref, referenceName: `::${owner.qualifiedName}::${owner.name}/${arity}` }, this.ctx);
|
|
909
|
+
return made ? this.ctx.getNodeById?.(made.targetNodeId) ?? null : null;
|
|
910
|
+
}
|
|
911
|
+
return (0, name_matcher_1.cppMethodOf)(owner, member, ref, this.ctx);
|
|
912
|
+
}
|
|
913
|
+
classNode(qualified, near) {
|
|
914
|
+
const classes = this.classesNamed(qualified);
|
|
915
|
+
return classes.find((n) => n.filePath === near.filePath) ?? classes.find((n) => this.sees(near.filePath, n)) ?? null;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
const position = (a, b) => (a.filePath < b.filePath ? -1 : a.filePath > b.filePath ? 1 : 0) || a.line - b.line || a.column - b.column ||
|
|
919
|
+
(a.referenceName < b.referenceName ? -1 : a.referenceName > b.referenceName ? 1 : 0) ||
|
|
920
|
+
(a.referenceKind < b.referenceKind ? -1 : a.referenceKind > b.referenceKind ? 1 : 0);
|
|
921
|
+
const EDGE_KIND = { calls: 'calls', instantiates: 'instantiates', function_ref: 'references' };
|
|
922
|
+
async function cppTemplateArgumentEdges(queries, ctx, onYield) {
|
|
923
|
+
const reader = new TemplateInstantiations(queries, ctx, onYield);
|
|
924
|
+
const declared = await reader.read();
|
|
925
|
+
if (declared.size === 0)
|
|
926
|
+
return [];
|
|
927
|
+
const refs = [];
|
|
928
|
+
for (const ref of queries.iterateFailedCppTypeReferences([...declared.keys()])) {
|
|
929
|
+
const head = /^[A-Za-z_]\w*/.exec(ref.referenceName)?.[0];
|
|
930
|
+
if (head && (ref.referenceName.includes('.') || declared.get(ref.filePath).has(head)))
|
|
931
|
+
refs.push(ref);
|
|
932
|
+
}
|
|
933
|
+
refs.sort(position);
|
|
934
|
+
const groups = new Map();
|
|
935
|
+
let scanned = 0;
|
|
936
|
+
for (const ref of refs) {
|
|
937
|
+
if ((++scanned & 255) === 0)
|
|
938
|
+
await onYield();
|
|
939
|
+
const caller = ctx.getNodeById?.(ref.fromNodeId);
|
|
940
|
+
if (!caller)
|
|
941
|
+
continue;
|
|
942
|
+
const through = reader.through(ref, caller, declared.get(ref.filePath));
|
|
943
|
+
if (!through)
|
|
944
|
+
continue;
|
|
945
|
+
const key = slotKey(through.slot);
|
|
946
|
+
const group = groups.get(key);
|
|
947
|
+
if (group)
|
|
948
|
+
group.refs.push({ ref, through });
|
|
949
|
+
else
|
|
950
|
+
groups.set(key, { slot: through.slot, refs: [{ ref, through }] });
|
|
951
|
+
}
|
|
952
|
+
const edges = [];
|
|
953
|
+
for (const group of groups.values()) {
|
|
954
|
+
await onYield();
|
|
955
|
+
const classes = await reader.classesOf(group.slot);
|
|
956
|
+
if (!classes || classes.size > exports.CPP_TEMPLATE_ARGUMENT_CAP)
|
|
957
|
+
continue;
|
|
958
|
+
for (const { ref, through } of group.refs) {
|
|
959
|
+
for (const { node, at } of classes.values()) {
|
|
960
|
+
const target = reader.target(node, through, ref);
|
|
961
|
+
if (!target || target.id === ref.fromNodeId)
|
|
962
|
+
continue;
|
|
963
|
+
edges.push({
|
|
964
|
+
source: ref.fromNodeId,
|
|
965
|
+
target: target.id,
|
|
966
|
+
kind: EDGE_KIND[ref.referenceKind],
|
|
967
|
+
line: ref.line,
|
|
968
|
+
column: ref.column,
|
|
969
|
+
provenance: 'heuristic',
|
|
970
|
+
metadata: {
|
|
971
|
+
synthesizedBy: 'cpp-template-argument',
|
|
972
|
+
via: through.parameter,
|
|
973
|
+
argument: node.name,
|
|
974
|
+
registeredAt: `${at.place.file}:${at.place.line}`,
|
|
975
|
+
...(ref.referenceKind === 'function_ref' ? { fnRef: true } : {}),
|
|
976
|
+
},
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
return edges;
|
|
982
|
+
}
|
|
983
|
+
//# sourceMappingURL=cpp-template-instantiations.js.map
|