@scriptc/compiler 0.2.4 → 0.2.5
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/ambient/scriptc-node-fallback.d.ts +915 -215
- package/ambient/scriptc-overrides.d.ts +5 -1
- package/ambient/scriptc.d.ts +22 -2
- package/dist/backend/build-cache.d.ts +4 -0
- package/dist/backend/build-cache.js +16 -2
- package/dist/backend/build-cache.js.map +1 -1
- package/dist/backend/cycle-analysis.js +17 -5
- package/dist/backend/cycle-analysis.js.map +1 -1
- package/dist/backend/cycle-analysis.test.js +50 -11
- package/dist/backend/cycle-analysis.test.js.map +1 -1
- package/dist/backend/debug-symbols.js.map +1 -1
- package/dist/backend/executable-features.js +2 -1
- package/dist/backend/executable-features.js.map +1 -1
- package/dist/backend/external-c.d.ts +13 -6
- package/dist/backend/external-c.js +15 -3
- package/dist/backend/external-c.js.map +1 -1
- package/dist/backend/ffi-callbacks.js +6 -9
- package/dist/backend/ffi-callbacks.js.map +1 -1
- package/dist/backend/library-identity-markers.js.map +1 -1
- package/dist/backend/library-pack.d.ts +1 -1
- package/dist/backend/library-pack.js +81 -24
- package/dist/backend/library-pack.js.map +1 -1
- package/dist/backend/link-plan-core.js +9 -2
- package/dist/backend/link-plan-core.js.map +1 -1
- package/dist/backend/link-plan.d.ts +1 -1
- package/dist/backend/link-plan.js +4 -5
- package/dist/backend/link-plan.js.map +1 -1
- package/dist/backend/linker.d.ts +1 -1
- package/dist/backend/linker.js +42 -23
- package/dist/backend/linker.js.map +1 -1
- package/dist/backend/literals.js +5 -4
- package/dist/backend/literals.js.map +1 -1
- package/dist/backend/literals.test.js +30 -5
- package/dist/backend/literals.test.js.map +1 -1
- package/dist/backend/llvm/blocks.test.js +5 -2
- package/dist/backend/llvm/blocks.test.js.map +1 -1
- package/dist/backend/llvm/borrowed-inputs.js.map +1 -1
- package/dist/backend/llvm/borrowed-receivers.js +43 -19
- package/dist/backend/llvm/borrowed-receivers.js.map +1 -1
- package/dist/backend/llvm/byte-numbers.js +6 -1
- package/dist/backend/llvm/byte-numbers.js.map +1 -1
- package/dist/backend/llvm/bytes-bounds.js +73 -22
- package/dist/backend/llvm/bytes-bounds.js.map +1 -1
- package/dist/backend/llvm/call-lifetimes.d.ts +3 -0
- package/dist/backend/llvm/call-lifetimes.js +60 -17
- package/dist/backend/llvm/call-lifetimes.js.map +1 -1
- package/dist/backend/llvm/call-lifetimes.test.js +159 -28
- package/dist/backend/llvm/call-lifetimes.test.js.map +1 -1
- package/dist/backend/llvm/checked-value-lifetimes.d.ts +4 -0
- package/dist/backend/llvm/checked-value-lifetimes.js +14 -4
- package/dist/backend/llvm/checked-value-lifetimes.js.map +1 -1
- package/dist/backend/llvm/classes.js +16 -12
- package/dist/backend/llvm/classes.js.map +1 -1
- package/dist/backend/llvm/common.js +4 -1
- package/dist/backend/llvm/common.js.map +1 -1
- package/dist/backend/llvm/counted-loops.js +10 -3
- package/dist/backend/llvm/counted-loops.js.map +1 -1
- package/dist/backend/llvm/debug-info.js +33 -13
- package/dist/backend/llvm/debug-info.js.map +1 -1
- package/dist/backend/llvm/debug-info.test.js +28 -6
- package/dist/backend/llvm/debug-info.test.js.map +1 -1
- package/dist/backend/llvm/dyn.js +68 -22
- package/dist/backend/llvm/dyn.js.map +1 -1
- package/dist/backend/llvm/emitter.d.ts +9 -3
- package/dist/backend/llvm/emitter.js +238 -105
- package/dist/backend/llvm/emitter.js.map +1 -1
- package/dist/backend/llvm/emitter.test.js +233 -42
- package/dist/backend/llvm/emitter.test.js.map +1 -1
- package/dist/backend/llvm/expr-async.js +25 -6
- package/dist/backend/llvm/expr-async.js.map +1 -1
- package/dist/backend/llvm/expr-bytes.js +13 -4
- package/dist/backend/llvm/expr-bytes.js.map +1 -1
- package/dist/backend/llvm/expr-callbacks.js +10 -4
- package/dist/backend/llvm/expr-callbacks.js.map +1 -1
- package/dist/backend/llvm/expr-calls.js +20 -9
- package/dist/backend/llvm/expr-calls.js.map +1 -1
- package/dist/backend/llvm/expr-containers.d.ts +2 -0
- package/dist/backend/llvm/expr-containers.js +92 -33
- package/dist/backend/llvm/expr-containers.js.map +1 -1
- package/dist/backend/llvm/expr-control.js +1 -3
- package/dist/backend/llvm/expr-control.js.map +1 -1
- package/dist/backend/llvm/expr-dispatch.js +3 -1
- package/dist/backend/llvm/expr-dispatch.js.map +1 -1
- package/dist/backend/llvm/expr-dynamic.js +19 -4
- package/dist/backend/llvm/expr-dynamic.js.map +1 -1
- package/dist/backend/llvm/expr-island.js +26 -6
- package/dist/backend/llvm/expr-island.js.map +1 -1
- package/dist/backend/llvm/expr-primitives.js +88 -19
- package/dist/backend/llvm/expr-primitives.js.map +1 -1
- package/dist/backend/llvm/expr-primitives.test.js +43 -1
- package/dist/backend/llvm/expr-primitives.test.js.map +1 -1
- package/dist/backend/llvm/expr-records.js +10 -9
- package/dist/backend/llvm/expr-records.js.map +1 -1
- package/dist/backend/llvm/expr-stream-bridges.js +44 -26
- package/dist/backend/llvm/expr-stream-bridges.js.map +1 -1
- package/dist/backend/llvm/expr-stream-bridges.test.js +51 -14
- package/dist/backend/llvm/expr-stream-bridges.test.js.map +1 -1
- package/dist/backend/llvm/expr-stream-callbacks.js +34 -14
- package/dist/backend/llvm/expr-stream-callbacks.js.map +1 -1
- package/dist/backend/llvm/integer-values.js +15 -4
- package/dist/backend/llvm/integer-values.js.map +1 -1
- package/dist/backend/llvm/integer-views.js +23 -7
- package/dist/backend/llvm/integer-views.js.map +1 -1
- package/dist/backend/llvm/integer-views.test.js +42 -7
- package/dist/backend/llvm/integer-views.test.js.map +1 -1
- package/dist/backend/llvm/lib-abi.js +13 -4
- package/dist/backend/llvm/lib-abi.js.map +1 -1
- package/dist/backend/llvm/lib-connect.js +7 -1
- package/dist/backend/llvm/lib-connect.js.map +1 -1
- package/dist/backend/llvm/lib-datagram.js +35 -10
- package/dist/backend/llvm/lib-datagram.js.map +1 -1
- package/dist/backend/llvm/lib-dispatch.js +35 -16
- package/dist/backend/llvm/lib-dispatch.js.map +1 -1
- package/dist/backend/llvm/lib-filesystem.js +33 -18
- package/dist/backend/llvm/lib-filesystem.js.map +1 -1
- package/dist/backend/llvm/lib-http2.js +60 -15
- package/dist/backend/llvm/lib-http2.js.map +1 -1
- package/dist/backend/llvm/lib-lookup.js +12 -5
- package/dist/backend/llvm/lib-lookup.js.map +1 -1
- package/dist/backend/llvm/lib-network.js +97 -31
- package/dist/backend/llvm/lib-network.js.map +1 -1
- package/dist/backend/llvm/lib-process.js +57 -14
- package/dist/backend/llvm/lib-process.js.map +1 -1
- package/dist/backend/llvm/lib-shared.js +107 -31
- package/dist/backend/llvm/lib-shared.js.map +1 -1
- package/dist/backend/llvm/lib-stream.js +33 -14
- package/dist/backend/llvm/lib-stream.js.map +1 -1
- package/dist/backend/llvm/lib-test.js +21 -7
- package/dist/backend/llvm/lib-test.js.map +1 -1
- package/dist/backend/llvm/lib-tls.js +69 -20
- package/dist/backend/llvm/lib-tls.js.map +1 -1
- package/dist/backend/llvm/local-array-reads.d.ts +1 -0
- package/dist/backend/llvm/local-array-reads.js +96 -30
- package/dist/backend/llvm/local-array-reads.js.map +1 -1
- package/dist/backend/llvm/local-array-reads.test.js +368 -60
- package/dist/backend/llvm/local-array-reads.test.js.map +1 -1
- package/dist/backend/llvm/local-union-storage.d.ts +25 -0
- package/dist/backend/llvm/local-union-storage.js +109 -0
- package/dist/backend/llvm/local-union-storage.js.map +1 -0
- package/dist/backend/llvm/local-union-storage.test.d.ts +1 -0
- package/dist/backend/llvm/local-union-storage.test.js +210 -0
- package/dist/backend/llvm/local-union-storage.test.js.map +1 -0
- package/dist/backend/llvm/map-read-lifetimes.d.ts +6 -2
- package/dist/backend/llvm/map-read-lifetimes.js +44 -14
- package/dist/backend/llvm/map-read-lifetimes.js.map +1 -1
- package/dist/backend/llvm/map-read-lifetimes.test.js +89 -17
- package/dist/backend/llvm/map-read-lifetimes.test.js.map +1 -1
- package/dist/backend/llvm/reference-effects.d.ts +3 -2
- package/dist/backend/llvm/reference-effects.js +67 -36
- package/dist/backend/llvm/reference-effects.js.map +1 -1
- package/dist/backend/llvm/reference-effects.test.js +92 -9
- package/dist/backend/llvm/reference-effects.test.js.map +1 -1
- package/dist/backend/llvm/shapes.js +60 -17
- package/dist/backend/llvm/shapes.js.map +1 -1
- package/dist/backend/llvm/shapes.test.js +3 -1
- package/dist/backend/llvm/shapes.test.js.map +1 -1
- package/dist/backend/llvm/split.js +4 -4
- package/dist/backend/llvm/split.js.map +1 -1
- package/dist/backend/llvm/split.test.js +14 -6
- package/dist/backend/llvm/split.test.js.map +1 -1
- package/dist/backend/llvm/stack-unions.js +14 -5
- package/dist/backend/llvm/stack-unions.js.map +1 -1
- package/dist/backend/llvm/stack-unions.test.js +151 -32
- package/dist/backend/llvm/stack-unions.test.js.map +1 -1
- package/dist/backend/llvm/string-construction.js.map +1 -1
- package/dist/backend/llvm/string-construction.test.js +32 -7
- package/dist/backend/llvm/string-construction.test.js.map +1 -1
- package/dist/backend/llvm/string-lifetimes.js +14 -8
- package/dist/backend/llvm/string-lifetimes.js.map +1 -1
- package/dist/backend/llvm/string-lifetimes.test.js +112 -26
- package/dist/backend/llvm/string-lifetimes.test.js.map +1 -1
- package/dist/backend/llvm/switch-dispatch.d.ts +9 -0
- package/dist/backend/llvm/switch-dispatch.js +114 -0
- package/dist/backend/llvm/switch-dispatch.js.map +1 -0
- package/dist/backend/llvm/switch-dispatch.test.d.ts +1 -0
- package/dist/backend/llvm/switch-dispatch.test.js +83 -0
- package/dist/backend/llvm/switch-dispatch.test.js.map +1 -0
- package/dist/backend/llvm/unsupported.js.map +1 -1
- package/dist/backend/llvm/walkers.js +6 -3
- package/dist/backend/llvm/walkers.js.map +1 -1
- package/dist/backend/mangle.js +9 -3
- package/dist/backend/mangle.js.map +1 -1
- package/dist/backend/may-throw.js +18 -8
- package/dist/backend/may-throw.js.map +1 -1
- package/dist/backend/may-throw.test.js +118 -22
- package/dist/backend/may-throw.test.js.map +1 -1
- package/dist/backend/native/artifact-stamps.d.ts +39 -0
- package/dist/backend/native/artifact-stamps.js +371 -0
- package/dist/backend/native/artifact-stamps.js.map +1 -0
- package/dist/backend/native/cache-warm.d.ts +24 -0
- package/dist/backend/native/cache-warm.js +80 -0
- package/dist/backend/native/cache-warm.js.map +1 -0
- package/dist/backend/native/compiler-fingerprint.d.ts +19 -0
- package/dist/backend/native/compiler-fingerprint.js +357 -0
- package/dist/backend/native/compiler-fingerprint.js.map +1 -0
- package/dist/backend/native/contracts.d.ts +314 -0
- package/dist/backend/native/contracts.js +2 -0
- package/dist/backend/native/contracts.js.map +1 -0
- package/dist/backend/native/dependency-files.d.ts +5 -0
- package/dist/backend/native/dependency-files.js +83 -0
- package/dist/backend/native/dependency-files.js.map +1 -0
- package/dist/backend/native/driver.d.ts +50 -0
- package/dist/backend/native/driver.js +294 -0
- package/dist/backend/native/driver.js.map +1 -0
- package/dist/backend/native/executable.d.ts +18 -0
- package/dist/backend/native/executable.js +1267 -0
- package/dist/backend/native/executable.js.map +1 -0
- package/dist/backend/native/library.d.ts +2 -0
- package/dist/backend/native/library.js +614 -0
- package/dist/backend/native/library.js.map +1 -0
- package/dist/backend/native/linker-fingerprint.d.ts +8 -0
- package/dist/backend/native/linker-fingerprint.js +174 -0
- package/dist/backend/native/linker-fingerprint.js.map +1 -0
- package/dist/backend/native/object-merge.d.ts +2 -0
- package/dist/backend/native/object-merge.js +154 -0
- package/dist/backend/native/object-merge.js.map +1 -0
- package/dist/backend/native/process.d.ts +17 -0
- package/dist/backend/native/process.js +42 -0
- package/dist/backend/native/process.js.map +1 -0
- package/dist/backend/native/program-shards.d.ts +21 -0
- package/dist/backend/native/program-shards.js +99 -0
- package/dist/backend/native/program-shards.js.map +1 -0
- package/dist/backend/native/runtime-inputs.d.ts +12 -0
- package/dist/backend/native/runtime-inputs.js +163 -0
- package/dist/backend/native/runtime-inputs.js.map +1 -0
- package/dist/backend/native/runtime-inputs.test.d.ts +1 -0
- package/dist/backend/native/runtime-inputs.test.js +64 -0
- package/dist/backend/native/runtime-inputs.test.js.map +1 -0
- package/dist/backend/native/runtime-objects.d.ts +16 -0
- package/dist/backend/native/runtime-objects.js +122 -0
- package/dist/backend/native/runtime-objects.js.map +1 -0
- package/dist/backend/native/session.d.ts +12 -0
- package/dist/backend/native/session.js +31 -0
- package/dist/backend/native/session.js.map +1 -0
- package/dist/backend/native/tool-identity.d.ts +37 -0
- package/dist/backend/native/tool-identity.js +310 -0
- package/dist/backend/native/tool-identity.js.map +1 -0
- package/dist/backend/native/trace-paths.d.ts +12 -0
- package/dist/backend/native/trace-paths.js +73 -0
- package/dist/backend/native/trace-paths.js.map +1 -0
- package/dist/backend/native/vendor.d.ts +1 -0
- package/dist/backend/native/vendor.js +12 -0
- package/dist/backend/native/vendor.js.map +1 -0
- package/dist/backend/native-codegen-core.js +2 -1
- package/dist/backend/native-codegen-core.js.map +1 -1
- package/dist/backend/native-codegen.d.ts +1 -1
- package/dist/backend/native-codegen.js +24 -13
- package/dist/backend/native-codegen.js.map +1 -1
- package/dist/backend/native-codegen.test.js +12 -9
- package/dist/backend/native-codegen.test.js.map +1 -1
- package/dist/backend/native-link-info-core.js +9 -5
- package/dist/backend/native-link-info-core.js.map +1 -1
- package/dist/backend/native-link-info.js +14 -5
- package/dist/backend/native-link-info.js.map +1 -1
- package/dist/backend/native-link-info.test.js +58 -13
- package/dist/backend/native-link-info.test.js.map +1 -1
- package/dist/backend/native-toolchain.d.ts +17 -450
- package/dist/backend/native-toolchain.js +17 -3971
- package/dist/backend/native-toolchain.js.map +1 -1
- package/dist/backend/native-toolchain.test.js +103 -72
- package/dist/backend/native-toolchain.test.js.map +1 -1
- package/dist/backend/native-tools.js +27 -8
- package/dist/backend/native-tools.js.map +1 -1
- package/dist/backend/object-localize.js +17 -14
- package/dist/backend/object-localize.js.map +1 -1
- package/dist/backend/object-localize.test.js +59 -12
- package/dist/backend/object-localize.test.js.map +1 -1
- package/dist/backend/runtime-pack-core.js +96 -49
- package/dist/backend/runtime-pack-core.js.map +1 -1
- package/dist/backend/runtime-pack-native.js +5 -3
- package/dist/backend/runtime-pack-native.js.map +1 -1
- package/dist/backend/runtime-pack-targets.test.js +87 -15
- package/dist/backend/runtime-pack-targets.test.js.map +1 -1
- package/dist/backend/runtime-pack.d.ts +1 -1
- package/dist/backend/runtime-pack.js +11 -12
- package/dist/backend/runtime-pack.js.map +1 -1
- package/dist/backend/runtime-pack.test.js +40 -24
- package/dist/backend/runtime-pack.test.js.map +1 -1
- package/dist/backend/source-locations.js.map +1 -1
- package/dist/backend/source-locations.test.js +7 -2
- package/dist/backend/source-locations.test.js.map +1 -1
- package/dist/backend/target-diagnostics.js +44 -14
- package/dist/backend/target-diagnostics.js.map +1 -1
- package/dist/backend/target-diagnostics.test.js +93 -20
- package/dist/backend/target-diagnostics.test.js.map +1 -1
- package/dist/backend/targets.js +230 -86
- package/dist/backend/targets.js.map +1 -1
- package/dist/backend/targets.test.js +32 -18
- package/dist/backend/targets.test.js.map +1 -1
- package/dist/backend/toolchain-environment.js +5 -1
- package/dist/backend/toolchain-environment.js.map +1 -1
- package/dist/backend/vendor-archives.d.ts +2 -2
- package/dist/backend/vendor-archives.js +84 -35
- package/dist/backend/vendor-archives.js.map +1 -1
- package/dist/backend/vendor-inputs.js +13 -1
- package/dist/backend/vendor-inputs.js.map +1 -1
- package/dist/backend/warm-cache.d.ts +1 -1
- package/dist/backend/warm-cache.js +33 -9
- package/dist/backend/warm-cache.js.map +1 -1
- package/dist/cli/command.js +39 -9
- package/dist/cli/command.js.map +1 -1
- package/dist/cli/output-options.js +14 -4
- package/dist/cli/output-options.js.map +1 -1
- package/dist/cli/paths.js.map +1 -1
- package/dist/cli/wasi-runner.js.map +1 -1
- package/dist/compat/fetch-profile.js +36 -35
- package/dist/compat/fetch-profile.js.map +1 -1
- package/dist/coverage/report.js +16 -17
- package/dist/coverage/report.js.map +1 -1
- package/dist/coverage/surface-manifest.js +112 -26
- package/dist/coverage/surface-manifest.js.map +1 -1
- package/dist/diagnostics/diagnostic.js +55 -16
- package/dist/diagnostics/diagnostic.js.map +1 -1
- package/dist/executable/executable-cache.d.ts +1 -1
- package/dist/executable/executable-cache.js +78 -48
- package/dist/executable/executable-cache.js.map +1 -1
- package/dist/executable/executable-cache.test.js +75 -26
- package/dist/executable/executable-cache.test.js.map +1 -1
- package/dist/executable/prepare.js +2 -2
- package/dist/executable/prepare.js.map +1 -1
- package/dist/ffi/ffi-manifest.js +78 -20
- package/dist/ffi/ffi-manifest.js.map +1 -1
- package/dist/ffi/ffi-manifest.test.js +96 -16
- package/dist/ffi/ffi-manifest.test.js.map +1 -1
- package/dist/format-integer.js.map +1 -1
- package/dist/frontend/analysis.js +12 -2
- package/dist/frontend/analysis.js.map +1 -1
- package/dist/frontend/arguments-usage.js.map +1 -1
- package/dist/frontend/binding-source.js +9 -3
- package/dist/frontend/binding-source.js.map +1 -1
- package/dist/frontend/builtin-modules.js +46 -2
- package/dist/frontend/builtin-modules.js.map +1 -1
- package/dist/frontend/cjs-resolve.js +40 -17
- package/dist/frontend/cjs-resolve.js.map +1 -1
- package/dist/frontend/cjs-syntax.js +31 -10
- package/dist/frontend/cjs-syntax.js.map +1 -1
- package/dist/frontend/comptime-node.test.js +10 -11
- package/dist/frontend/comptime-node.test.js.map +1 -1
- package/dist/frontend/dts-paths.js +7 -3
- package/dist/frontend/dts-paths.js.map +1 -1
- package/dist/frontend/fork-target.js +17 -12
- package/dist/frontend/fork-target.js.map +1 -1
- package/dist/frontend/function-completion.js +11 -6
- package/dist/frontend/function-completion.js.map +1 -1
- package/dist/frontend/helper-tokens.js +53 -6
- package/dist/frontend/helper-tokens.js.map +1 -1
- package/dist/frontend/helper-tokens.test.js +18 -2
- package/dist/frontend/helper-tokens.test.js.map +1 -1
- package/dist/frontend/inferred-js-diagnostics.js +32 -12
- package/dist/frontend/inferred-js-diagnostics.js.map +1 -1
- package/dist/frontend/inferred-js-diagnostics.test.js +11 -15
- package/dist/frontend/inferred-js-diagnostics.test.js.map +1 -1
- package/dist/frontend/input-tracker.js +11 -11
- package/dist/frontend/input-tracker.js.map +1 -1
- package/dist/frontend/input-tracker.test.js +4 -1
- package/dist/frontend/input-tracker.test.js.map +1 -1
- package/dist/frontend/lib-contract.js +38 -9
- package/dist/frontend/lib-contract.js.map +1 -1
- package/dist/frontend/literal-values.js.map +1 -1
- package/dist/frontend/literal-values.test.js +28 -8
- package/dist/frontend/literal-values.test.js.map +1 -1
- package/dist/frontend/lowering/abstract-equality.js +53 -10
- package/dist/frontend/lowering/abstract-equality.js.map +1 -1
- package/dist/frontend/lowering/array-indexed-mutation.d.ts +1 -1
- package/dist/frontend/lowering/array-indexed-mutation.js +108 -106
- package/dist/frontend/lowering/array-indexed-mutation.js.map +1 -1
- package/dist/frontend/lowering/array-values.js +37 -14
- package/dist/frontend/lowering/array-values.js.map +1 -1
- package/dist/frontend/lowering/binding-analysis.d.ts +50 -0
- package/dist/frontend/lowering/binding-analysis.js +376 -0
- package/dist/frontend/lowering/binding-analysis.js.map +1 -0
- package/dist/frontend/lowering/builtin-calls.d.ts +9 -0
- package/dist/frontend/lowering/builtin-calls.js +60 -0
- package/dist/frontend/lowering/builtin-calls.js.map +1 -0
- package/dist/frontend/lowering/builtins/arguments.d.ts +43 -0
- package/dist/frontend/lowering/builtins/arguments.js +247 -0
- package/dist/frontend/lowering/builtins/arguments.js.map +1 -0
- package/dist/frontend/lowering/builtins/async-context.d.ts +52 -0
- package/dist/frontend/lowering/builtins/async-context.js +436 -0
- package/dist/frontend/lowering/builtins/async-context.js.map +1 -0
- package/dist/frontend/lowering/builtins/atomics.d.ts +15 -0
- package/dist/frontend/lowering/builtins/atomics.js +46 -0
- package/dist/frontend/lowering/builtins/atomics.js.map +1 -0
- package/dist/frontend/lowering/builtins/callable-aliases.d.ts +13 -0
- package/dist/frontend/lowering/builtins/callable-aliases.js +87 -0
- package/dist/frontend/lowering/builtins/callable-aliases.js.map +1 -0
- package/dist/frontend/lowering/builtins/child-process-async.d.ts +18 -0
- package/dist/frontend/lowering/builtins/child-process-async.js +245 -0
- package/dist/frontend/lowering/builtins/child-process-async.js.map +1 -0
- package/dist/frontend/lowering/builtins/child-process-methods.d.ts +21 -0
- package/dist/frontend/lowering/builtins/child-process-methods.js +362 -0
- package/dist/frontend/lowering/builtins/child-process-methods.js.map +1 -0
- package/dist/frontend/lowering/builtins/child-process-sync.d.ts +4 -0
- package/dist/frontend/lowering/builtins/child-process-sync.js +639 -0
- package/dist/frontend/lowering/builtins/child-process-sync.js.map +1 -0
- package/dist/frontend/lowering/builtins/child-process.d.ts +55 -0
- package/dist/frontend/lowering/builtins/child-process.js +669 -0
- package/dist/frontend/lowering/builtins/child-process.js.map +1 -0
- package/dist/frontend/lowering/builtins/compression.d.ts +7 -0
- package/dist/frontend/lowering/builtins/compression.js +115 -0
- package/dist/frontend/lowering/builtins/compression.js.map +1 -0
- package/dist/frontend/lowering/builtins/console.d.ts +10 -0
- package/dist/frontend/lowering/builtins/console.js +38 -0
- package/dist/frontend/lowering/builtins/console.js.map +1 -0
- package/dist/frontend/lowering/builtins/constants.d.ts +24 -0
- package/dist/frontend/lowering/builtins/constants.js +141 -0
- package/dist/frontend/lowering/builtins/constants.js.map +1 -0
- package/dist/frontend/lowering/builtins/crypto.d.ts +22 -0
- package/dist/frontend/lowering/builtins/crypto.js +517 -0
- package/dist/frontend/lowering/builtins/crypto.js.map +1 -0
- package/dist/frontend/lowering/builtins/dates.d.ts +7 -0
- package/dist/frontend/lowering/builtins/dates.js +101 -0
- package/dist/frontend/lowering/builtins/dates.js.map +1 -0
- package/dist/frontend/lowering/builtins/environment.d.ts +34 -0
- package/dist/frontend/lowering/builtins/environment.js +95 -0
- package/dist/frontend/lowering/builtins/environment.js.map +1 -0
- package/dist/frontend/lowering/builtins/errors.d.ts +14 -0
- package/dist/frontend/lowering/builtins/errors.js +83 -0
- package/dist/frontend/lowering/builtins/errors.js.map +1 -0
- package/dist/frontend/lowering/builtins/filesystem-calls.d.ts +32 -0
- package/dist/frontend/lowering/builtins/filesystem-calls.js +678 -0
- package/dist/frontend/lowering/builtins/filesystem-calls.js.map +1 -0
- package/dist/frontend/lowering/builtins/filesystem.d.ts +108 -0
- package/dist/frontend/lowering/builtins/filesystem.js +1061 -0
- package/dist/frontend/lowering/builtins/filesystem.js.map +1 -0
- package/dist/frontend/lowering/builtins/ipc.d.ts +8 -0
- package/dist/frontend/lowering/builtins/ipc.js +76 -0
- package/dist/frontend/lowering/builtins/ipc.js.map +1 -0
- package/dist/frontend/lowering/builtins/json.d.ts +12 -0
- package/dist/frontend/lowering/builtins/json.js +387 -0
- package/dist/frontend/lowering/builtins/json.js.map +1 -0
- package/dist/frontend/lowering/builtins/module-bindings.d.ts +85 -0
- package/dist/frontend/lowering/builtins/module-bindings.js +346 -0
- package/dist/frontend/lowering/builtins/module-bindings.js.map +1 -0
- package/dist/frontend/lowering/builtins/module-calls.d.ts +8 -0
- package/dist/frontend/lowering/builtins/module-calls.js +303 -0
- package/dist/frontend/lowering/builtins/module-calls.js.map +1 -0
- package/dist/frontend/lowering/builtins/module-resolution.d.ts +38 -0
- package/dist/frontend/lowering/builtins/module-resolution.js +344 -0
- package/dist/frontend/lowering/builtins/module-resolution.js.map +1 -0
- package/dist/frontend/lowering/builtins/numbers.d.ts +15 -0
- package/dist/frontend/lowering/builtins/numbers.js +124 -0
- package/dist/frontend/lowering/builtins/numbers.js.map +1 -0
- package/dist/frontend/lowering/builtins/operating-system.d.ts +13 -0
- package/dist/frontend/lowering/builtins/operating-system.js +148 -0
- package/dist/frontend/lowering/builtins/operating-system.js.map +1 -0
- package/dist/frontend/lowering/builtins/performance.d.ts +13 -0
- package/dist/frontend/lowering/builtins/performance.js +100 -0
- package/dist/frontend/lowering/builtins/performance.js.map +1 -0
- package/dist/frontend/lowering/builtins/process.d.ts +50 -0
- package/dist/frontend/lowering/builtins/process.js +1138 -0
- package/dist/frontend/lowering/builtins/process.js.map +1 -0
- package/dist/frontend/lowering/builtins/promises.d.ts +14 -0
- package/dist/frontend/lowering/builtins/promises.js +356 -0
- package/dist/frontend/lowering/builtins/promises.js.map +1 -0
- package/dist/frontend/lowering/builtins/properties.d.ts +11 -0
- package/dist/frontend/lowering/builtins/properties.js +186 -0
- package/dist/frontend/lowering/builtins/properties.js.map +1 -0
- package/dist/frontend/lowering/builtins/querystring.d.ts +19 -0
- package/dist/frontend/lowering/builtins/querystring.js +150 -0
- package/dist/frontend/lowering/builtins/querystring.js.map +1 -0
- package/dist/frontend/lowering/builtins/readline.d.ts +13 -0
- package/dist/frontend/lowering/builtins/readline.js +138 -0
- package/dist/frontend/lowering/builtins/readline.js.map +1 -0
- package/dist/frontend/lowering/builtins/receiver-types.d.ts +5 -0
- package/dist/frontend/lowering/builtins/receiver-types.js +15 -0
- package/dist/frontend/lowering/builtins/receiver-types.js.map +1 -0
- package/dist/frontend/lowering/builtins/reflection.d.ts +13 -0
- package/dist/frontend/lowering/builtins/reflection.js +95 -0
- package/dist/frontend/lowering/builtins/reflection.js.map +1 -0
- package/dist/frontend/lowering/builtins/strings.d.ts +14 -0
- package/dist/frontend/lowering/builtins/strings.js +121 -0
- package/dist/frontend/lowering/builtins/strings.js.map +1 -0
- package/dist/frontend/lowering/builtins/text-codecs.d.ts +29 -0
- package/dist/frontend/lowering/builtins/text-codecs.js +590 -0
- package/dist/frontend/lowering/builtins/text-codecs.js.map +1 -0
- package/dist/frontend/lowering/builtins/timers.d.ts +22 -0
- package/dist/frontend/lowering/builtins/timers.js +180 -0
- package/dist/frontend/lowering/builtins/timers.js.map +1 -0
- package/dist/frontend/lowering/builtins/url.d.ts +37 -0
- package/dist/frontend/lowering/builtins/url.js +596 -0
- package/dist/frontend/lowering/builtins/url.js.map +1 -0
- package/dist/frontend/lowering/builtins/util-types.d.ts +7 -0
- package/dist/frontend/lowering/builtins/util-types.js +31 -0
- package/dist/frontend/lowering/builtins/util-types.js.map +1 -0
- package/dist/frontend/lowering/call-arguments.d.ts +72 -0
- package/dist/frontend/lowering/call-arguments.js +618 -0
- package/dist/frontend/lowering/call-arguments.js.map +1 -0
- package/dist/frontend/lowering/call-signatures.d.ts +115 -0
- package/dist/frontend/lowering/call-signatures.js +719 -0
- package/dist/frontend/lowering/call-signatures.js.map +1 -0
- package/dist/frontend/lowering/callback-arg.js.map +1 -1
- package/dist/frontend/lowering/checked-iterable-spread.js +53 -10
- package/dist/frontend/lowering/checked-iterable-spread.js.map +1 -1
- package/dist/frontend/lowering/checked-promise-all.js +41 -9
- package/dist/frontend/lowering/checked-promise-all.js.map +1 -1
- package/dist/frontend/lowering/class-callbacks.d.ts +1 -1
- package/dist/frontend/lowering/class-callbacks.js +130 -27
- package/dist/frontend/lowering/class-callbacks.js.map +1 -1
- package/dist/frontend/lowering/class-construction.d.ts +1 -1
- package/dist/frontend/lowering/class-construction.js +247 -50
- package/dist/frontend/lowering/class-construction.js.map +1 -1
- package/dist/frontend/lowering/class-descriptors.js +109 -29
- package/dist/frontend/lowering/class-descriptors.js.map +1 -1
- package/dist/frontend/lowering/class-dynamic-dispatch.d.ts +6 -1
- package/dist/frontend/lowering/class-dynamic-dispatch.js +2471 -465
- package/dist/frontend/lowering/class-dynamic-dispatch.js.map +1 -1
- package/dist/frontend/lowering/class-dynamic-dispatch.test.js +284 -44
- package/dist/frontend/lowering/class-dynamic-dispatch.test.js.map +1 -1
- package/dist/frontend/lowering/class-instance-constructor.js +17 -5
- package/dist/frontend/lowering/class-instance-constructor.js.map +1 -1
- package/dist/frontend/lowering/class-method-values.js +199 -51
- package/dist/frontend/lowering/class-method-values.js.map +1 -1
- package/dist/frontend/lowering/class-prototypes.js +345 -86
- package/dist/frontend/lowering/class-prototypes.js.map +1 -1
- package/dist/frontend/lowering/class-runtime-statics.d.ts +1 -1
- package/dist/frontend/lowering/class-runtime-statics.js +80 -17
- package/dist/frontend/lowering/class-runtime-statics.js.map +1 -1
- package/dist/frontend/lowering/class-static-data.js +76 -16
- package/dist/frontend/lowering/class-static-data.js.map +1 -1
- package/dist/frontend/lowering/coercions/builders.d.ts +13 -0
- package/dist/frontend/lowering/coercions/builders.js +77 -0
- package/dist/frontend/lowering/coercions/builders.js.map +1 -0
- package/dist/frontend/lowering/coercions/function-adapters.d.ts +58 -0
- package/dist/frontend/lowering/coercions/function-adapters.js +430 -0
- package/dist/frontend/lowering/coercions/function-adapters.js.map +1 -0
- package/dist/frontend/lowering/coercions/island.d.ts +37 -0
- package/dist/frontend/lowering/coercions/island.js +350 -0
- package/dist/frontend/lowering/coercions/island.js.map +1 -0
- package/dist/frontend/lowering/coercions/state.d.ts +14 -0
- package/dist/frontend/lowering/coercions/state.js +16 -0
- package/dist/frontend/lowering/coercions/state.js.map +1 -0
- package/dist/frontend/lowering/coercions/structural-plans.d.ts +40 -0
- package/dist/frontend/lowering/coercions/structural-plans.js +447 -0
- package/dist/frontend/lowering/coercions/structural-plans.js.map +1 -0
- package/dist/frontend/lowering/coercions/structural.d.ts +63 -0
- package/dist/frontend/lowering/coercions/structural.js +616 -0
- package/dist/frontend/lowering/coercions/structural.js.map +1 -0
- package/dist/frontend/lowering/coercions/unions.d.ts +65 -0
- package/dist/frontend/lowering/coercions/unions.js +318 -0
- package/dist/frontend/lowering/coercions/unions.js.map +1 -0
- package/dist/frontend/lowering/collection-ingestion.js +355 -72
- package/dist/frontend/lowering/collection-ingestion.js.map +1 -1
- package/dist/frontend/lowering/containers/array-callbacks.d.ts +92 -0
- package/dist/frontend/lowering/containers/array-callbacks.js +1646 -0
- package/dist/frontend/lowering/containers/array-callbacks.js.map +1 -0
- package/dist/frontend/lowering/containers/array-construction.d.ts +42 -0
- package/dist/frontend/lowering/containers/array-construction.js +1044 -0
- package/dist/frontend/lowering/containers/array-construction.js.map +1 -0
- package/dist/frontend/lowering/containers/array-iteration.d.ts +16 -0
- package/dist/frontend/lowering/containers/array-iteration.js +95 -0
- package/dist/frontend/lowering/containers/array-iteration.js.map +1 -0
- package/dist/frontend/lowering/containers/array-methods.d.ts +27 -0
- package/dist/frontend/lowering/containers/array-methods.js +1854 -0
- package/dist/frontend/lowering/containers/array-methods.js.map +1 -0
- package/dist/frontend/lowering/containers/bytes.d.ts +17 -17
- package/dist/frontend/lowering/containers/bytes.js +419 -105
- package/dist/frontend/lowering/containers/bytes.js.map +1 -1
- package/dist/frontend/lowering/containers/callback-arguments.d.ts +26 -0
- package/dist/frontend/lowering/containers/callback-arguments.js +179 -0
- package/dist/frontend/lowering/containers/callback-arguments.js.map +1 -0
- package/dist/frontend/lowering/containers/collection-grouping.d.ts +19 -0
- package/dist/frontend/lowering/containers/collection-grouping.js +297 -0
- package/dist/frontend/lowering/containers/collection-grouping.js.map +1 -0
- package/dist/frontend/lowering/containers/collection-methods.d.ts +57 -0
- package/dist/frontend/lowering/containers/collection-methods.js +1314 -0
- package/dist/frontend/lowering/containers/collection-methods.js.map +1 -0
- package/dist/frontend/lowering/containers/dynamic-receivers.d.ts +18 -0
- package/dist/frontend/lowering/containers/dynamic-receivers.js +114 -0
- package/dist/frontend/lowering/containers/dynamic-receivers.js.map +1 -0
- package/dist/frontend/lowering/containers/for-of.d.ts +60 -0
- package/dist/frontend/lowering/containers/for-of.js +643 -0
- package/dist/frontend/lowering/containers/for-of.js.map +1 -0
- package/dist/frontend/lowering/containers/indexed-objects.d.ts +132 -0
- package/dist/frontend/lowering/containers/indexed-objects.js +1743 -0
- package/dist/frontend/lowering/containers/indexed-objects.js.map +1 -0
- package/dist/frontend/lowering/containers/iterator-helpers.d.ts +20 -0
- package/dist/frontend/lowering/containers/iterator-helpers.js +809 -0
- package/dist/frontend/lowering/containers/iterator-helpers.js.map +1 -0
- package/dist/frontend/lowering/containers/string-and-regexp.js +580 -158
- package/dist/frontend/lowering/containers/string-and-regexp.js.map +1 -1
- package/dist/frontend/lowering/containers/string-replacement.js +213 -63
- package/dist/frontend/lowering/containers/string-replacement.js.map +1 -1
- package/dist/frontend/lowering/crypto-tables.js +263 -64
- package/dist/frontend/lowering/crypto-tables.js.map +1 -1
- package/dist/frontend/lowering/deferred-module-initializers.js +172 -68
- package/dist/frontend/lowering/deferred-module-initializers.js.map +1 -1
- package/dist/frontend/lowering/deferred-module-initializers.test.js +41 -8
- package/dist/frontend/lowering/deferred-module-initializers.test.js.map +1 -1
- package/dist/frontend/lowering/error-methods.js +339 -65
- package/dist/frontend/lowering/error-methods.js.map +1 -1
- package/dist/frontend/lowering/expressions/evaluation-safety.js +3 -2
- package/dist/frontend/lowering/expressions/evaluation-safety.js.map +1 -1
- package/dist/frontend/lowering/expressions/global-symbols.js +2 -1
- package/dist/frontend/lowering/expressions/global-symbols.js.map +1 -1
- package/dist/frontend/lowering/expressions/native-proxy.js +11 -5
- package/dist/frontend/lowering/expressions/native-proxy.js.map +1 -1
- package/dist/frontend/lowering/expressions/nullish-assignment.js +67 -13
- package/dist/frontend/lowering/expressions/nullish-assignment.js.map +1 -1
- package/dist/frontend/lowering/expressions/object-literals.js +589 -162
- package/dist/frontend/lowering/expressions/object-literals.js.map +1 -1
- package/dist/frontend/lowering/expressions/optional-chains.d.ts +1 -1
- package/dist/frontend/lowering/expressions/optional-chains.js +68 -17
- package/dist/frontend/lowering/expressions/optional-chains.js.map +1 -1
- package/dist/frontend/lowering/expressions/union-field-write.js +45 -18
- package/dist/frontend/lowering/expressions/union-field-write.js.map +1 -1
- package/dist/frontend/lowering/function-context.js +5 -1
- package/dist/frontend/lowering/function-context.js.map +1 -1
- package/dist/frontend/lowering/function-returns.d.ts +67 -0
- package/dist/frontend/lowering/function-returns.js +392 -0
- package/dist/frontend/lowering/function-returns.js.map +1 -0
- package/dist/frontend/lowering/generator-delegation.d.ts +1 -1
- package/dist/frontend/lowering/generator-delegation.js +171 -39
- package/dist/frontend/lowering/generator-delegation.js.map +1 -1
- package/dist/frontend/lowering/generator-dynamic-dispatch.d.ts +1 -1
- package/dist/frontend/lowering/generator-dynamic-dispatch.js +176 -36
- package/dist/frontend/lowering/generator-dynamic-dispatch.js.map +1 -1
- package/dist/frontend/lowering/generic-functions.d.ts +274 -0
- package/dist/frontend/lowering/generic-functions.js +1727 -0
- package/dist/frontend/lowering/generic-functions.js.map +1 -0
- package/dist/frontend/lowering/import-meta.d.ts +1 -1
- package/dist/frontend/lowering/import-meta.js +37 -14
- package/dist/frontend/lowering/import-meta.js.map +1 -1
- package/dist/frontend/lowering/indexed-comparison.js +6 -2
- package/dist/frontend/lowering/indexed-comparison.js.map +1 -1
- package/dist/frontend/lowering/iterator-consumption.d.ts +9 -0
- package/dist/frontend/lowering/iterator-consumption.js +91 -0
- package/dist/frontend/lowering/iterator-consumption.js.map +1 -0
- package/dist/frontend/lowering/lib-boundary.js +40 -17
- package/dist/frontend/lowering/lib-boundary.js.map +1 -1
- package/dist/frontend/lowering/lib-boundary.test.js +49 -11
- package/dist/frontend/lowering/lib-boundary.test.js.map +1 -1
- package/dist/frontend/lowering/lower-array-sort.d.ts +0 -19
- package/dist/frontend/lowering/lower-array-sort.js +331 -566
- package/dist/frontend/lowering/lower-array-sort.js.map +1 -1
- package/dist/frontend/lowering/lower-assert.js +248 -43
- package/dist/frontend/lowering/lower-assert.js.map +1 -1
- package/dist/frontend/lowering/lower-async-iteration.js +71 -16
- package/dist/frontend/lowering/lower-async-iteration.js.map +1 -1
- package/dist/frontend/lowering/lower-builtin-values.js +420 -71
- package/dist/frontend/lowering/lower-builtin-values.js.map +1 -1
- package/dist/frontend/lowering/lower-calls.d.ts +39 -558
- package/dist/frontend/lowering/lower-calls.js +2593 -5667
- package/dist/frontend/lowering/lower-calls.js.map +1 -1
- package/dist/frontend/lowering/lower-classes.d.ts +243 -242
- package/dist/frontend/lowering/lower-classes.js +1701 -724
- package/dist/frontend/lowering/lower-classes.js.map +1 -1
- package/dist/frontend/lowering/lower-comptime.d.ts +35 -35
- package/dist/frontend/lowering/lower-comptime.js +39 -37
- package/dist/frontend/lowering/lower-comptime.js.map +1 -1
- package/dist/frontend/lowering/lower-dgram.js +59 -31
- package/dist/frontend/lowering/lower-dgram.js.map +1 -1
- package/dist/frontend/lowering/lower-enums.js +5 -2
- package/dist/frontend/lowering/lower-enums.js.map +1 -1
- package/dist/frontend/lowering/lower-event-emitter.js +322 -85
- package/dist/frontend/lowering/lower-event-emitter.js.map +1 -1
- package/dist/frontend/lowering/lower-expando.js +19 -7
- package/dist/frontend/lowering/lower-expando.js.map +1 -1
- package/dist/frontend/lowering/lower-exprs.d.ts +194 -194
- package/dist/frontend/lowering/lower-exprs.js +3446 -1154
- package/dist/frontend/lowering/lower-exprs.js.map +1 -1
- package/dist/frontend/lowering/lower-functions.d.ts +23 -0
- package/dist/frontend/lowering/lower-functions.js +449 -0
- package/dist/frontend/lowering/lower-functions.js.map +1 -0
- package/dist/frontend/lowering/lower-generators.js +121 -32
- package/dist/frontend/lowering/lower-generators.js.map +1 -1
- package/dist/frontend/lowering/lower-global-value.js +15 -4
- package/dist/frontend/lowering/lower-global-value.js.map +1 -1
- package/dist/frontend/lowering/lower-inspect.js +479 -89
- package/dist/frontend/lowering/lower-inspect.js.map +1 -1
- package/dist/frontend/lowering/lower-island.d.ts +79 -79
- package/dist/frontend/lowering/lower-island.js +365 -273
- package/dist/frontend/lowering/lower-island.js.map +1 -1
- package/dist/frontend/lowering/lower-island.test.js +7 -2
- package/dist/frontend/lowering/lower-island.test.js.map +1 -1
- package/dist/frontend/lowering/lower-mixins.js +17 -8
- package/dist/frontend/lowering/lower-mixins.js.map +1 -1
- package/dist/frontend/lowering/lower-modules.d.ts +94 -94
- package/dist/frontend/lowering/lower-modules.js +612 -321
- package/dist/frontend/lowering/lower-modules.js.map +1 -1
- package/dist/frontend/lowering/lower-modules.test.js +91 -20
- package/dist/frontend/lowering/lower-modules.test.js.map +1 -1
- package/dist/frontend/lowering/lower-namespaces.js +25 -8
- package/dist/frontend/lowering/lower-namespaces.js.map +1 -1
- package/dist/frontend/lowering/lower-node-module.js +115 -34
- package/dist/frontend/lowering/lower-node-module.js.map +1 -1
- package/dist/frontend/lowering/lower-server.js +1210 -290
- package/dist/frontend/lowering/lower-server.js.map +1 -1
- package/dist/frontend/lowering/lower-stmts.d.ts +148 -148
- package/dist/frontend/lowering/lower-stmts.js +2312 -984
- package/dist/frontend/lowering/lower-stmts.js.map +1 -1
- package/dist/frontend/lowering/lower-stmts.test.js +13 -5
- package/dist/frontend/lowering/lower-stmts.test.js.map +1 -1
- package/dist/frontend/lowering/lower-stream.js +362 -90
- package/dist/frontend/lowering/lower-stream.js.map +1 -1
- package/dist/frontend/lowering/lower-system-errors.js +30 -8
- package/dist/frontend/lowering/lower-system-errors.js.map +1 -1
- package/dist/frontend/lowering/lower-test.js +40 -13
- package/dist/frontend/lowering/lower-test.js.map +1 -1
- package/dist/frontend/lowering/lower-timers.d.ts +31 -0
- package/dist/frontend/lowering/lower-timers.js +336 -0
- package/dist/frontend/lowering/lower-timers.js.map +1 -0
- package/dist/frontend/lowering/lower-url.d.ts +1 -1
- package/dist/frontend/lowering/lower-url.js +46 -13
- package/dist/frontend/lowering/lower-url.js.map +1 -1
- package/dist/frontend/lowering/lowerer.d.ts +21 -351
- package/dist/frontend/lowering/lowerer.js +1024 -2704
- package/dist/frontend/lowering/lowerer.js.map +1 -1
- package/dist/frontend/lowering/lowerer.test.js +85 -17
- package/dist/frontend/lowering/lowerer.test.js.map +1 -1
- package/dist/frontend/lowering/module-namespace-elements.js +43 -8
- package/dist/frontend/lowering/module-namespace-elements.js.map +1 -1
- package/dist/frontend/lowering/native-ffi.d.ts +21 -1
- package/dist/frontend/lowering/native-ffi.js +487 -18
- package/dist/frontend/lowering/native-ffi.js.map +1 -1
- package/dist/frontend/lowering/object-enumeration-receiver.js +55 -10
- package/dist/frontend/lowering/object-enumeration-receiver.js.map +1 -1
- package/dist/frontend/lowering/object-factory-new.d.ts +1 -1
- package/dist/frontend/lowering/object-factory-new.js +36 -11
- package/dist/frontend/lowering/object-factory-new.js.map +1 -1
- package/dist/frontend/lowering/optional-arguments.js +49 -20
- package/dist/frontend/lowering/optional-arguments.js.map +1 -1
- package/dist/frontend/lowering/pairs-snapshot.js +66 -14
- package/dist/frontend/lowering/pairs-snapshot.js.map +1 -1
- package/dist/frontend/lowering/runtime-optional-locals.js +3 -1
- package/dist/frontend/lowering/runtime-optional-locals.js.map +1 -1
- package/dist/frontend/lowering/runtime-optional-locals.test.js.map +1 -1
- package/dist/frontend/lowering/sanitize-class-types.js +4 -1
- package/dist/frontend/lowering/sanitize-class-types.js.map +1 -1
- package/dist/frontend/lowering/sanitize-class-types.test.js +86 -18
- package/dist/frontend/lowering/sanitize-class-types.test.js.map +1 -1
- package/dist/frontend/lowering/static-this.js +13 -6
- package/dist/frontend/lowering/static-this.js.map +1 -1
- package/dist/frontend/lowering/string-index.js +32 -10
- package/dist/frontend/lowering/string-index.js.map +1 -1
- package/dist/frontend/lowering/surfaces.d.ts +42 -42
- package/dist/frontend/lowering/surfaces.js +1094 -249
- package/dist/frontend/lowering/surfaces.js.map +1 -1
- package/dist/frontend/lowering/symbol-fields.js +40 -15
- package/dist/frontend/lowering/symbol-fields.js.map +1 -1
- package/dist/frontend/lowering/symbol-methods.js.map +1 -1
- package/dist/frontend/lowering/text-decoder-encoding.js +236 -24
- package/dist/frontend/lowering/text-decoder-encoding.js.map +1 -1
- package/dist/frontend/lowering/text-decoder-encoding.test.js +84 -12
- package/dist/frontend/lowering/text-decoder-encoding.test.js.map +1 -1
- package/dist/frontend/lowering/union-narrow.js +59 -16
- package/dist/frontend/lowering/union-narrow.js.map +1 -1
- package/dist/frontend/lowering/union-narrow.test.js +24 -7
- package/dist/frontend/lowering/union-narrow.test.js.map +1 -1
- package/dist/frontend/lowering/union-retag.js +155 -40
- package/dist/frontend/lowering/union-retag.js.map +1 -1
- package/dist/frontend/lowering/union-retag.test.js +131 -33
- package/dist/frontend/lowering/union-retag.test.js.map +1 -1
- package/dist/frontend/lowering/unregistered-class-types.js.map +1 -1
- package/dist/frontend/lowering/unregistered-class-types.test.js +34 -8
- package/dist/frontend/lowering/unregistered-class-types.test.js.map +1 -1
- package/dist/frontend/module-syntax.js +21 -8
- package/dist/frontend/module-syntax.js.map +1 -1
- package/dist/frontend/module-syntax.test.js +37 -13
- package/dist/frontend/module-syntax.test.js.map +1 -1
- package/dist/frontend/npm-fetch-analysis.js +13 -4
- package/dist/frontend/npm-fetch-analysis.js.map +1 -1
- package/dist/frontend/npm-fetch-analysis.test.js +33 -10
- package/dist/frontend/npm-fetch-analysis.test.js.map +1 -1
- package/dist/frontend/npm-fetch-node.js.map +1 -1
- package/dist/frontend/npm-fetch-syntax.js +4 -9
- package/dist/frontend/npm-fetch-syntax.js.map +1 -1
- package/dist/frontend/npm-node.js +3 -1
- package/dist/frontend/npm-node.js.map +1 -1
- package/dist/frontend/npm-static-bundled-cjs.js +88 -29
- package/dist/frontend/npm-static-bundled-cjs.js.map +1 -1
- package/dist/frontend/npm-static-bundled-cjs.test.js +29 -10
- package/dist/frontend/npm-static-bundled-cjs.test.js.map +1 -1
- package/dist/frontend/npm-static-declaration-syntax.js +148 -56
- package/dist/frontend/npm-static-declaration-syntax.js.map +1 -1
- package/dist/frontend/npm-static-declarations.d.ts +1 -1
- package/dist/frontend/npm-static-declarations.js.map +1 -1
- package/dist/frontend/npm-static-declarations.test.js +33 -7
- package/dist/frontend/npm-static-declarations.test.js.map +1 -1
- package/dist/frontend/npm-static-prune.js +26 -12
- package/dist/frontend/npm-static-prune.js.map +1 -1
- package/dist/frontend/npm-static-prune.test.js +17 -3
- package/dist/frontend/npm-static-prune.test.js.map +1 -1
- package/dist/frontend/npm-static-rewrite-host.js +2 -3
- package/dist/frontend/npm-static-rewrite-host.js.map +1 -1
- package/dist/frontend/npm-static-rewrite-syntax.js +64 -21
- package/dist/frontend/npm-static-rewrite-syntax.js.map +1 -1
- package/dist/frontend/npm-static-rewrite.js.map +1 -1
- package/dist/frontend/npm-static-subtyping.js +9 -4
- package/dist/frontend/npm-static-subtyping.js.map +1 -1
- package/dist/frontend/npm-static-subtyping.test.js +30 -6
- package/dist/frontend/npm-static-subtyping.test.js.map +1 -1
- package/dist/frontend/npm-static.js +15 -4
- package/dist/frontend/npm-static.js.map +1 -1
- package/dist/frontend/npm.js +122 -36
- package/dist/frontend/npm.js.map +1 -1
- package/dist/frontend/npm.test.js +30 -10
- package/dist/frontend/npm.test.js.map +1 -1
- package/dist/frontend/pipeline-native.js.map +1 -1
- package/dist/frontend/pipeline.js +25 -8
- package/dist/frontend/pipeline.js.map +1 -1
- package/dist/frontend/pipeline.test.js +21 -7
- package/dist/frontend/pipeline.test.js.map +1 -1
- package/dist/frontend/program-node.js +5 -3
- package/dist/frontend/program-node.js.map +1 -1
- package/dist/frontend/program.d.ts +2 -2
- package/dist/frontend/program.js +234 -101
- package/dist/frontend/program.js.map +1 -1
- package/dist/frontend/program.test.js +27 -27
- package/dist/frontend/program.test.js.map +1 -1
- package/dist/frontend/provenance-core.js +8 -4
- package/dist/frontend/provenance-core.js.map +1 -1
- package/dist/frontend/provenance-registry.js +1 -4
- package/dist/frontend/provenance-registry.js.map +1 -1
- package/dist/frontend/resolve.js +32 -20
- package/dist/frontend/resolve.js.map +1 -1
- package/dist/frontend/resolve.test.js +1 -1
- package/dist/frontend/resolve.test.js.map +1 -1
- package/dist/frontend/runtime-resolve.js +13 -4
- package/dist/frontend/runtime-resolve.js.map +1 -1
- package/dist/frontend/runtime-resolve.test.js +25 -9
- package/dist/frontend/runtime-resolve.test.js.map +1 -1
- package/dist/frontend/services-node.js +6 -2
- package/dist/frontend/services-node.js.map +1 -1
- package/dist/frontend/services-node.test.js +18 -6
- package/dist/frontend/services-node.test.js.map +1 -1
- package/dist/frontend/services.js +8 -4
- package/dist/frontend/services.js.map +1 -1
- package/dist/frontend/services.test.js +6 -2
- package/dist/frontend/services.test.js.map +1 -1
- package/dist/frontend/ts7/api.js +12 -4
- package/dist/frontend/ts7/api.js.map +1 -1
- package/dist/frontend/ts7/ast-bytes.js +10 -3
- package/dist/frontend/ts7/ast-bytes.js.map +1 -1
- package/dist/frontend/ts7/ast-bytes.test.js +23 -4
- package/dist/frontend/ts7/ast-bytes.test.js.map +1 -1
- package/dist/frontend/ts7/ast-guards.test.js +14 -5
- package/dist/frontend/ts7/ast-guards.test.js.map +1 -1
- package/dist/frontend/ts7/ast-node.d.ts +6 -1
- package/dist/frontend/ts7/ast-node.js +484 -164
- package/dist/frontend/ts7/ast-node.js.map +1 -1
- package/dist/frontend/ts7/ast-node.test.js +109 -36
- package/dist/frontend/ts7/ast-node.test.js.map +1 -1
- package/dist/frontend/ts7/ast-text.js +13 -3
- package/dist/frontend/ts7/ast-text.js.map +1 -1
- package/dist/frontend/ts7/ast-text.test.js.map +1 -1
- package/dist/frontend/ts7/ast-types.js.map +1 -1
- package/dist/frontend/ts7/ast-wire.d.ts +1 -1
- package/dist/frontend/ts7/ast-wire.js +55 -20
- package/dist/frontend/ts7/ast-wire.js.map +1 -1
- package/dist/frontend/ts7/ast-wire.test.js +53 -8
- package/dist/frontend/ts7/ast-wire.test.js.map +1 -1
- package/dist/frontend/ts7/ast.js +47 -28
- package/dist/frontend/ts7/ast.js.map +1 -1
- package/dist/frontend/ts7/census-check.js +1 -1
- package/dist/frontend/ts7/census-check.js.map +1 -1
- package/dist/frontend/ts7/checker-cache.js.map +1 -1
- package/dist/frontend/ts7/checker.js +5 -3
- package/dist/frontend/ts7/checker.js.map +1 -1
- package/dist/frontend/ts7/checker.test.js +54 -17
- package/dist/frontend/ts7/checker.test.js.map +1 -1
- package/dist/frontend/ts7/enums.test.js +9 -4
- package/dist/frontend/ts7/enums.test.js.map +1 -1
- package/dist/frontend/ts7/native-api.js.map +1 -1
- package/dist/frontend/ts7/native-host.js.map +1 -1
- package/dist/frontend/ts7/native-process.js +9 -3
- package/dist/frontend/ts7/native-process.js.map +1 -1
- package/dist/frontend/ts7/program-adapter.js +1 -1
- package/dist/frontend/ts7/program-adapter.js.map +1 -1
- package/dist/frontend/ts7/program-host.js +7 -4
- package/dist/frontend/ts7/program-host.js.map +1 -1
- package/dist/frontend/ts7/program-host.test.js +43 -11
- package/dist/frontend/ts7/program-host.test.js.map +1 -1
- package/dist/frontend/ts7/rpc-api.js +3 -1
- package/dist/frontend/ts7/rpc-api.js.map +1 -1
- package/dist/frontend/ts7/rpc-client.js +15 -5
- package/dist/frontend/ts7/rpc-client.js.map +1 -1
- package/dist/frontend/ts7/rpc-client.test.js +26 -8
- package/dist/frontend/ts7/rpc-client.test.js.map +1 -1
- package/dist/frontend/ts7/rpc-filesystem.js.map +1 -1
- package/dist/frontend/ts7/rpc-filesystem.test.js +43 -10
- package/dist/frontend/ts7/rpc-filesystem.test.js.map +1 -1
- package/dist/frontend/ts7/rpc-process.js +16 -6
- package/dist/frontend/ts7/rpc-process.js.map +1 -1
- package/dist/frontend/ts7/rpc-process.test.js.map +1 -1
- package/dist/frontend/ts7/rpc-wire.d.ts +1 -0
- package/dist/frontend/ts7/rpc-wire.js +41 -14
- package/dist/frontend/ts7/rpc-wire.js.map +1 -1
- package/dist/frontend/ts7/rpc-wire.test.js +36 -6
- package/dist/frontend/ts7/rpc-wire.test.js.map +1 -1
- package/dist/frontend/ts7/semantic-checker.js +209 -68
- package/dist/frontend/ts7/semantic-checker.js.map +1 -1
- package/dist/frontend/ts7/semantic-checker.test.js +29 -14
- package/dist/frontend/ts7/semantic-checker.test.js.map +1 -1
- package/dist/frontend/ts7/semantic-json.js +7 -1
- package/dist/frontend/ts7/semantic-json.js.map +1 -1
- package/dist/frontend/ts7/semantic-json.test.js +17 -3
- package/dist/frontend/ts7/semantic-json.test.js.map +1 -1
- package/dist/frontend/ts7/semantic-model.js +147 -51
- package/dist/frontend/ts7/semantic-model.js.map +1 -1
- package/dist/frontend/ts7/semantic-model.test.js +72 -19
- package/dist/frontend/ts7/semantic-model.test.js.map +1 -1
- package/dist/frontend/ts7/semantic-types.d.ts +2 -2
- package/dist/frontend/ts7/session-cache.js +10 -3
- package/dist/frontend/ts7/session-cache.js.map +1 -1
- package/dist/frontend/ts7/session-cache.test.js +13 -4
- package/dist/frontend/ts7/session-cache.test.js.map +1 -1
- package/dist/frontend/ts7/session-path.js +25 -10
- package/dist/frontend/ts7/session-path.js.map +1 -1
- package/dist/frontend/ts7/session-path.test.js +47 -4
- package/dist/frontend/ts7/session-path.test.js.map +1 -1
- package/dist/frontend/ts7/session-timing.js +22 -3
- package/dist/frontend/ts7/session-timing.js.map +1 -1
- package/dist/frontend/ts7/session-timing.test.js +12 -3
- package/dist/frontend/ts7/session-timing.test.js.map +1 -1
- package/dist/frontend/ts7/session.d.ts +1 -0
- package/dist/frontend/ts7/session.js +109 -35
- package/dist/frontend/ts7/session.js.map +1 -1
- package/dist/frontend/ts7/session.test.js +69 -15
- package/dist/frontend/ts7/session.test.js.map +1 -1
- package/dist/frontend/ts7/source-parser.js +17 -6
- package/dist/frontend/ts7/source-parser.js.map +1 -1
- package/dist/frontend/ts7/source-parser.test.js +32 -9
- package/dist/frontend/ts7/source-parser.test.js.map +1 -1
- package/dist/frontend/tsc-codes.js +56 -11
- package/dist/frontend/tsc-codes.js.map +1 -1
- package/dist/frontend/tsc-codes.test.d.ts +1 -0
- package/dist/frontend/tsc-codes.test.js +16 -0
- package/dist/frontend/tsc-codes.test.js.map +1 -0
- package/dist/frontend/type-mapper.js +545 -204
- package/dist/frontend/type-mapper.js.map +1 -1
- package/dist/frontend/type-mapper.test.js +108 -33
- package/dist/frontend/type-mapper.test.js.map +1 -1
- package/dist/frontend/union-discriminants.js +8 -2
- package/dist/frontend/union-discriminants.js.map +1 -1
- package/dist/frontend/union-discriminants.test.js +77 -20
- package/dist/frontend/union-discriminants.test.js.map +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +150 -81
- package/dist/index.js.map +1 -1
- package/dist/ir/analysis.js +95 -38
- package/dist/ir/analysis.js.map +1 -1
- package/dist/ir/analysis.test.js +91 -15
- package/dist/ir/analysis.test.js.map +1 -1
- package/dist/ir/api.d.ts +4 -0
- package/dist/ir/api.js +6 -0
- package/dist/ir/api.js.map +1 -0
- package/dist/ir/build.d.ts +7 -0
- package/dist/ir/build.js +27 -1
- package/dist/ir/build.js.map +1 -1
- package/dist/ir/builtin-effects.d.ts +9 -0
- package/dist/ir/builtin-effects.js +631 -0
- package/dist/ir/builtin-effects.js.map +1 -0
- package/dist/ir/builtin-signatures.d.ts +15 -0
- package/dist/ir/builtin-signatures.js +3396 -0
- package/dist/ir/builtin-signatures.js.map +1 -0
- package/dist/ir/byte-numbers.js +67 -16
- package/dist/ir/byte-numbers.js.map +1 -1
- package/dist/ir/byte-numbers.test.js +17 -4
- package/dist/ir/byte-numbers.test.js.map +1 -1
- package/dist/ir/constant-tables.js +13 -5
- package/dist/ir/constant-tables.js.map +1 -1
- package/dist/ir/constant-tables.test.js +47 -7
- package/dist/ir/constant-tables.test.js.map +1 -1
- package/dist/ir/control-flow.js +2 -1
- package/dist/ir/control-flow.js.map +1 -1
- package/dist/ir/control-flow.test.js +35 -11
- package/dist/ir/control-flow.test.js.map +1 -1
- package/dist/ir/initializer-bindings.d.ts +9 -0
- package/dist/ir/initializer-bindings.js +115 -0
- package/dist/ir/initializer-bindings.js.map +1 -0
- package/dist/ir/initializer-bindings.test.d.ts +1 -0
- package/dist/ir/initializer-bindings.test.js +118 -0
- package/dist/ir/initializer-bindings.test.js.map +1 -0
- package/dist/ir/integer-loop-facts.d.ts +12 -0
- package/dist/ir/integer-loop-facts.js +137 -0
- package/dist/ir/integer-loop-facts.js.map +1 -0
- package/dist/ir/integer-loops.js +85 -30
- package/dist/ir/integer-loops.js.map +1 -1
- package/dist/ir/integer-loops.test.js +76 -13
- package/dist/ir/integer-loops.test.js.map +1 -1
- package/dist/ir/integer-ranges.js +93 -21
- package/dist/ir/integer-ranges.js.map +1 -1
- package/dist/ir/integer-ranges.test.js +199 -21
- package/dist/ir/integer-ranges.test.js.map +1 -1
- package/dist/ir/intrinsic-signatures.d.ts +20 -0
- package/dist/ir/intrinsic-signatures.js +57 -0
- package/dist/ir/intrinsic-signatures.js.map +1 -0
- package/dist/ir/ir.d.ts +6 -2150
- package/dist/ir/ir.js +160 -1396
- package/dist/ir/ir.js.map +1 -1
- package/dist/ir/ir.test.js +98 -77
- package/dist/ir/ir.test.js.map +1 -1
- package/dist/ir/runtime-features.d.ts +221 -0
- package/dist/ir/runtime-features.js +551 -0
- package/dist/ir/runtime-features.js.map +1 -0
- package/dist/ir/runtime-features.test.d.ts +1 -0
- package/dist/ir/runtime-features.test.js +98 -0
- package/dist/ir/runtime-features.test.js.map +1 -0
- package/dist/ir/scalar-records.js +130 -40
- package/dist/ir/scalar-records.js.map +1 -1
- package/dist/ir/scalar-records.test.js +146 -27
- package/dist/ir/scalar-records.test.js.map +1 -1
- package/dist/ir/serialize.js +4 -2
- package/dist/ir/serialize.js.map +1 -1
- package/dist/ir/serialize.test.js +44 -9
- package/dist/ir/serialize.test.js.map +1 -1
- package/dist/ir/traverse.js +156 -43
- package/dist/ir/traverse.js.map +1 -1
- package/dist/ir/traverse.test.js +99 -24
- package/dist/ir/traverse.test.js.map +1 -1
- package/dist/ir/validate.d.ts +1 -31
- package/dist/ir/validate.js +782 -1889
- package/dist/ir/validate.js.map +1 -1
- package/dist/ir/validate.test.js +610 -114
- package/dist/ir/validate.test.js.map +1 -1
- package/dist/library/cache-primitives.js +9 -10
- package/dist/library/cache-primitives.js.map +1 -1
- package/dist/library/cache-reset.test.js +2 -1
- package/dist/library/cache-reset.test.js.map +1 -1
- package/dist/library/compiler-self-identity.js +11 -5
- package/dist/library/compiler-self-identity.js.map +1 -1
- package/dist/library/compiler-self-identity.test.js +10 -3
- package/dist/library/compiler-self-identity.test.js.map +1 -1
- package/dist/library/fence-eval.js +24 -7
- package/dist/library/fence-eval.js.map +1 -1
- package/dist/library/fence-eval.test.js +31 -7
- package/dist/library/fence-eval.test.js.map +1 -1
- package/dist/library/int-infer.js +199 -59
- package/dist/library/int-infer.js.map +1 -1
- package/dist/library/int-infer.test.js +133 -57
- package/dist/library/int-infer.test.js.map +1 -1
- package/dist/library/ir-policy.d.ts +27 -0
- package/dist/library/ir-policy.js +232 -0
- package/dist/library/ir-policy.js.map +1 -0
- package/dist/library/library-cache.js +40 -17
- package/dist/library/library-cache.js.map +1 -1
- package/dist/library/library-cache.test.js +24 -13
- package/dist/library/library-cache.test.js.map +1 -1
- package/dist/library/library-profile.js +68 -13
- package/dist/library/library-profile.js.map +1 -1
- package/dist/library/prepare.js +48 -20
- package/dist/library/prepare.js.map +1 -1
- package/dist/library/semantic-source.js +16 -14
- package/dist/library/semantic-source.js.map +1 -1
- package/dist/library/semantic-source.test.js +9 -14
- package/dist/library/semantic-source.test.js.map +1 -1
- package/dist/library/sidecar-validate.js +53 -12
- package/dist/library/sidecar-validate.js.map +1 -1
- package/dist/library/sidecar.js +85 -24
- package/dist/library/sidecar.js.map +1 -1
- package/dist/library/trap-teaching.js +11 -2
- package/dist/library/trap-teaching.js.map +1 -1
- package/dist/native/cache.js +10 -4
- package/dist/native/cache.js.map +1 -1
- package/dist/native/cli.js +34 -9
- package/dist/native/cli.js.map +1 -1
- package/dist/native/compiler.js +167 -43
- package/dist/native/compiler.js.map +1 -1
- package/dist/native/compiler.test.js +129 -32
- package/dist/native/compiler.test.js.map +1 -1
- package/dist/native/comptime.js +23 -7
- package/dist/native/comptime.js.map +1 -1
- package/dist/native/comptime.test.js +26 -6
- package/dist/native/comptime.test.js.map +1 -1
- package/dist/native/executable-cache.js +77 -27
- package/dist/native/executable-cache.js.map +1 -1
- package/dist/native/executable-cache.test.js +41 -6
- package/dist/native/executable-cache.test.js.map +1 -1
- package/dist/native/file-identity.js +9 -2
- package/dist/native/file-identity.js.map +1 -1
- package/dist/native/file-identity.test.js.map +1 -1
- package/dist/native/library.js +50 -12
- package/dist/native/library.js.map +1 -1
- package/dist/native/prepare.js +119 -34
- package/dist/native/prepare.js.map +1 -1
- package/dist/native/prepare.test.js +22 -6
- package/dist/native/prepare.test.js.map +1 -1
- package/dist/native/runtime-typescript.js +24 -11
- package/dist/native/runtime-typescript.js.map +1 -1
- package/dist/native/runtime-typescript.test.js.map +1 -1
- package/dist/native/sanitizer.js +71 -18
- package/dist/native/sanitizer.js.map +1 -1
- package/dist/native/sanitizer.test.js +77 -20
- package/dist/native/sanitizer.test.js.map +1 -1
- package/dist/native/task.js.map +1 -1
- package/dist/native/task.test.js +7 -2
- package/dist/native/task.test.js.map +1 -1
- package/dist/native/toolchain.js +68 -26
- package/dist/native/toolchain.js.map +1 -1
- package/dist/native/toolchain.test.js +59 -20
- package/dist/native/toolchain.test.js.map +1 -1
- package/dist/startup-cache.d.ts +1 -1
- package/dist/startup-cache.js +1 -1
- package/dist/startup-cache.js.map +1 -1
- package/dist/timing.js.map +1 -1
- package/package.json +20 -20
- package/surface-manifest.json +1 -1
- package/dist/frontend/lowering/lower-builtins.d.ts +0 -601
- package/dist/frontend/lowering/lower-builtins.js +0 -8986
- package/dist/frontend/lowering/lower-builtins.js.map +0 -1
- package/dist/frontend/lowering/lower-containers.d.ts +0 -382
- package/dist/frontend/lowering/lower-containers.js +0 -7344
- package/dist/frontend/lowering/lower-containers.js.map +0 -1
|
@@ -1,357 +1,6 @@
|
|
|
1
1
|
import * as ts from "../ts7/adapter.js";
|
|
2
|
-
import { bodyReadsArguments } from "../arguments-usage.js";
|
|
3
2
|
import type { Lowerer } from "./lowerer.js";
|
|
4
|
-
import { type IrExpr, type
|
|
5
|
-
import type { ScrDiagnostic } from "../../diagnostics/diagnostic.js";
|
|
6
|
-
import { type ClassInfo } from "./lower-classes.js";
|
|
7
|
-
export { bodyReadsArguments };
|
|
8
|
-
/** How a parameter participates in CALL-SITE COMPLETION (the frontend
|
|
9
|
-
* completes every call to the one full signature, so the IR and backends
|
|
10
|
-
* stay count-exact — see docs/ir.md). `required` params must be passed;
|
|
11
|
-
* `omittable` params (declared `x?: T` or `x: T = e`) may be omitted by a
|
|
12
|
-
* trailing-suffix call, and the frontend appends the interned undefined arm;
|
|
13
|
-
* `rest` (always last) receives the surplus arguments packed into one array
|
|
14
|
-
* literal at each call site. `arguments` is a hidden slot containing every
|
|
15
|
-
* actual argument, including those bound to named parameters. */
|
|
16
|
-
export type ParamMode = "required" | "omittable" | "rest" | "dynRest" | "islandRest" | "arguments";
|
|
17
|
-
/** One parameter of a signature, as call sites and callee prologues see it.
|
|
18
|
-
* `type` is the ABI type — what the emitted LLVM parameter carries: the
|
|
19
|
-
* checker's `T | undefined` union for `x?: T`, a synthesized `T | undefined`
|
|
20
|
-
* union for `x: T = e`, `T[]` for `...xs: T[]`, the plain declared type
|
|
21
|
-
* otherwise. `bodyType` is present exactly for DEFAULTED program params:
|
|
22
|
-
* the plain T the body sees after the prologue applies the default (see
|
|
23
|
-
* declareParams). `callDefault` is the compile-time default value for a
|
|
24
|
-
* table-backed builtin's omittable slot. */
|
|
25
|
-
export interface ParamShape {
|
|
26
|
-
type: IrType;
|
|
27
|
-
mode: ParamMode;
|
|
28
|
-
bodyType?: IrType;
|
|
29
|
-
callDefault?: IrExpr;
|
|
30
|
-
}
|
|
31
|
-
export interface FnSig {
|
|
32
|
-
name: string;
|
|
33
|
-
params: ParamShape[];
|
|
34
|
-
/** Call-site result type — Promise<inner> for async functions, the
|
|
35
|
-
* generator type for generator functions. */
|
|
36
|
-
returnType: IrType;
|
|
37
|
-
/** Async: the IrFunction's returnType is the promise's INNER type, or
|
|
38
|
-
* the generator's TReturn when generator is also present. */
|
|
39
|
-
isAsync?: boolean;
|
|
40
|
-
/** Generator: the IrFunction's returnType is the TReturn channel; the
|
|
41
|
-
* yield/next channels ride here (IrFunction.generator's exact shape). */
|
|
42
|
-
generator?: {
|
|
43
|
-
yieldT: IrType;
|
|
44
|
-
nextT: IrType;
|
|
45
|
-
resultType: IrType & {
|
|
46
|
-
kind: "record";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/** The one func-type projection of completed parameter shapes. Typed rest
|
|
51
|
-
* parameters keep their packed array as the trailing native ABI slot and
|
|
52
|
-
* mark the value variadic so indirect call sites run completeArgs before
|
|
53
|
-
* callValue. Dynamic rest remains the historical hidden ScrDyn slot, while
|
|
54
|
-
* island rest spells its engine-array slot directly. */
|
|
55
|
-
export declare function funcTypeFromParamShapes(shapes: readonly ParamShape[], ret: IrType): IrType & {
|
|
56
|
-
kind: "func";
|
|
57
|
-
};
|
|
58
|
-
/** Registers `const alias = overloadedDeclaration` as a compile-time
|
|
59
|
-
* callable projection. The source function's one implementation ABI is
|
|
60
|
-
* already collected in fnSigsBySymbol; each direct call still uses the
|
|
61
|
-
* TS7-resolved overload result bridge. The alias owns no storage, and a
|
|
62
|
-
* value read materializes the source function's interned closure, so JS
|
|
63
|
-
* identity (`alias === source`) is preserved. */
|
|
64
|
-
export declare function registerOverloadedCallableAlias(lowerer: Lowerer, decl: ts.VariableDeclaration): boolean;
|
|
65
|
-
export declare function generatorMeta(lowerer: Lowerer, type: IrType & {
|
|
66
|
-
kind: "generator";
|
|
67
|
-
}): NonNullable<IrFunction["generator"]>;
|
|
68
|
-
/** Instantiation cap per generic function: same-key recursion (`len<T>`
|
|
69
|
-
* calling itself) converges, but POLYMORPHIC recursion (`f<T>` calling
|
|
70
|
-
* `f<T[]>`) would request new instances forever — the cap turns that into a
|
|
71
|
-
* diagnostic instead of a hang. */
|
|
72
|
-
export declare const MAX_GENERIC_INSTANCES = 100;
|
|
73
|
-
/** A generic function-like declaration, collected instead of an FnSig —
|
|
74
|
-
* top-level generic function declarations, class GENERIC METHODS (own type
|
|
75
|
-
* parameters, instance and static), and object-literal generic methods.
|
|
76
|
-
* The body is NOT lowered at collection: each call site's checker-resolved
|
|
77
|
-
* signature (type arguments substituted) becomes an instantiation key, and
|
|
78
|
-
* the body is lowered once per distinct key (monomorphization). */
|
|
79
|
-
export interface GenericFnInfo {
|
|
80
|
-
decl: ts.FunctionDeclaration | ts.MethodDeclaration | ts.FunctionExpression | ts.ArrowFunction;
|
|
81
|
-
/** Unqualified source name, for diagnostics. */
|
|
82
|
-
baseName: string;
|
|
83
|
-
/** Program-wide qualified name; instance `n` is named `<qualified>%<n>`
|
|
84
|
-
* ('%' cannot appear in a TS identifier, so instance names can never
|
|
85
|
-
* collide with user functions). */
|
|
86
|
-
qualifiedName: string;
|
|
87
|
-
/** Declaration-order type parameter symbols. */
|
|
88
|
-
typeParams: ts.Symbol[];
|
|
89
|
-
/** Lazily computed (keyofConstrainedTypeParams): the type parameters
|
|
90
|
-
* declared `K extends keyof …`. Their bound LITERAL keys are semantic —
|
|
91
|
-
* the body's `o[k]` reads the named field — so instances key on the
|
|
92
|
-
* literal (no cross-literal sharing) and keep the checker types
|
|
93
|
-
* (tsBindings) the body resolves through. */
|
|
94
|
-
keyofTps?: Set<ts.Symbol>;
|
|
95
|
-
/** Instantiation key (comma-joined typeKeys of the mapped param types +
|
|
96
|
-
* `=>` + return typeKey) → instance. Key identity IS signature identity:
|
|
97
|
-
* two call sites whose inferred types map to the same IR types share one
|
|
98
|
-
* native function. */
|
|
99
|
-
instances: Map<string, GenericInstance>;
|
|
100
|
-
/** CLASS-member generic methods: the declaring ClassInfo and flavor.
|
|
101
|
-
* Instance methods take `this` (object:<declarer>) as param 0 and lower
|
|
102
|
-
* under the declarer's instantiation bindings (generic-class receivers)
|
|
103
|
-
* MERGED with the method instantiation's own; statics lower as plain
|
|
104
|
-
* module functions with an exact receiver or the this/super fence. Absent for
|
|
105
|
-
* top-level functions and object-literal methods. */
|
|
106
|
-
member?: {
|
|
107
|
-
cls: ClassInfo;
|
|
108
|
-
kind: "method" | "static";
|
|
109
|
-
};
|
|
110
|
-
/** Direct static calls specialize lexical this for the proven receiver. */
|
|
111
|
-
staticReceiver?: ClassInfo;
|
|
112
|
-
receiverSpecializations?: Map<string, GenericFnInfo>;
|
|
113
|
-
/** Object-literal generic methods (`{ m<T>(x: T) {...} }` and generic
|
|
114
|
-
* arrow/function-expression properties): lowered as plain module
|
|
115
|
-
* functions — `this` inside is fenced (rejectThisInObjectMethod) and the
|
|
116
|
-
* defining literal must sit at module scope (no enclosing frame to
|
|
117
|
-
* capture). */
|
|
118
|
-
objectLiteral?: true;
|
|
119
|
-
/** IMPLICIT-ANY monomorphization (npm-static JS): parallel to
|
|
120
|
-
* decl.parameters — the param's own symbol when the slot is a BINDABLE
|
|
121
|
-
* implicit-any parameter (untyped, identifier-named, never written in
|
|
122
|
-
* the body), null for typed or unbindable slots. Present ⇔ this info
|
|
123
|
-
* monomorphizes over its implicit-any params instead of declared type
|
|
124
|
-
* parameters (typeParams stays empty): each call site's WIDENED argument
|
|
125
|
-
* checker types key an instantiation, exactly the generic machinery —
|
|
126
|
-
* the untyped params ARE the type parameters (see implicitCallInstance). */
|
|
127
|
-
implicitParams?: (ts.Symbol | null)[];
|
|
128
|
-
}
|
|
129
|
-
export interface GenericInstance {
|
|
130
|
-
name: string;
|
|
131
|
-
/** 0 for the first instance of a base function — the only one whose
|
|
132
|
-
* statements count toward coverage stats (re-instantiations re-visit the
|
|
133
|
-
* same source lines). */
|
|
134
|
-
ordinal: number;
|
|
135
|
-
params: ParamShape[];
|
|
136
|
-
returnType: IrType;
|
|
137
|
-
/** Type-parameter symbol → concrete IR type, consulted by mapType (via
|
|
138
|
-
* typeParamResolver) while the instance body lowers. */
|
|
139
|
-
bindings: Map<ts.Symbol, IrType>;
|
|
140
|
-
/** Call-keyed instances: type-parameter symbol → the bound CHECKER type
|
|
141
|
-
* (pre-widening), consulted while the body lowers where the IrType
|
|
142
|
-
* binding has already lost what the body needs — `T[K]` and `o[k]` reads
|
|
143
|
-
* whose K is bound to one literal key (typeParamTsBindings). */
|
|
144
|
-
tsBindings?: Map<ts.Symbol, ts.Type>;
|
|
145
|
-
/** Rendered type arguments ("<number, string>") for diagnostics. */
|
|
146
|
-
typeArgsText: string;
|
|
147
|
-
/** Implicit instances only: param symbol → the call site's (widened)
|
|
148
|
-
* checker type, consulted by the Lowerer's typeOf while this instance's
|
|
149
|
-
* body lowers (the implicit twin of `bindings`). */
|
|
150
|
-
implicitArgTypes?: Map<ts.Symbol, ts.Type>;
|
|
151
|
-
/** Implicit instances only: eager-lowering lifecycle. "lowering" while
|
|
152
|
-
* the body builds (a re-demand is same-key recursion: the caller uses
|
|
153
|
-
* the PINNED fallback returnType and returnPinned locks it); "done" once
|
|
154
|
-
* returnType holds the inferred (or pinned) truth. */
|
|
155
|
-
implicitState?: "lowering" | "done" | "failed";
|
|
156
|
-
/** Same-key recursion observed the fallback return type mid-lowering, so
|
|
157
|
-
* the ABI is locked to it — the return post-pass coerces every return
|
|
158
|
-
* value to the pinned type instead of adopting the inferred one. */
|
|
159
|
-
returnPinned?: boolean;
|
|
160
|
-
/** Implicit instances only: the declared return did not map (the
|
|
161
|
-
* any-params poisoned it) — the body lowers in return-INFERENCE mode
|
|
162
|
-
* (returnType holds the DYN recursion pin until the post-pass settles). */
|
|
163
|
-
implicitInferReturn?: true;
|
|
164
|
-
}
|
|
165
|
-
/** One parameter's ParamShape — the shared signature-shaped collection
|
|
166
|
-
* point for function declarations, methods, constructors, and lambdas
|
|
167
|
-
* (generic declarations defer to their call sites, where the resolved
|
|
168
|
-
* types exist; see lowerGenericCall).
|
|
169
|
-
*
|
|
170
|
-
* - `x?: T`: the checker already types the param `T | undefined` under
|
|
171
|
-
* strictNullChecks, so the ABI type IS that union and the body narrows
|
|
172
|
-
* with `!== undefined` like any union local.
|
|
173
|
-
* - `x: T = e`: the ABI type is a synthesized `T | undefined` union (the
|
|
174
|
-
* caller may omit the arg or pass undefined — both trigger the default,
|
|
175
|
-
* JS-exact); the body sees plain T through the two-local prologue
|
|
176
|
-
* (declareParams). A single-arm T narrows in the prologue; a UNION T
|
|
177
|
-
* re-tags through the interned retag helper (the undefined arm is the
|
|
178
|
-
* one stranded case, unreachable from the else-branch by construction).
|
|
179
|
-
* - `...xs: T[]`: the ABI type is the array; call sites pack the surplus.
|
|
180
|
-
*/
|
|
181
|
-
export declare function paramShape(lowerer: Lowerer, param: ts.ParameterDeclaration): ParamShape;
|
|
182
|
-
/** ParamShapes for a whole parameter list. */
|
|
183
|
-
/** A `this` PARAMETER declaration (`function f(this: void, x: {}) ...`)
|
|
184
|
-
* — type-world only: tsc types the receiver with it, callers never pass
|
|
185
|
-
* it, and signature.getParameters() excludes it. The syntactic walks
|
|
186
|
-
* (paramShapes, declareParams) skip it with this predicate so ABI slots
|
|
187
|
-
* and call completion stay aligned with what JS actually passes. */
|
|
188
|
-
export declare function isThisParameter(param: ts.ParameterDeclaration): boolean;
|
|
189
|
-
export declare function paramShapes(lowerer: Lowerer, params: readonly ts.ParameterDeclaration[], signature?: ts.Signature, blameOf?: (param: ts.ParameterDeclaration, index: number) => ts.Node): ParamShape[];
|
|
190
|
-
/** The fences on a defaulted parameter's body type: it becomes the value
|
|
191
|
-
* arm of the synthesized `T | undefined` ABI union, so it must be a valid
|
|
192
|
-
* single arm. Functions, Maps and Sets are valid: the ABI union's test is
|
|
193
|
-
* the prologue's own undefined-tag check (never a user narrowing, which
|
|
194
|
-
* is what keeps containers out of unions with data siblings), so `runner: Runner =
|
|
195
|
-
* defaultRunner` and `skip: Set<string> = new Set()` arm like any ref
|
|
196
|
-
* kind — the nullable-callback union shape, built by the compiler. */
|
|
197
|
-
export declare function checkDefaultParamBodyType(lowerer: Lowerer, param: ts.ParameterDeclaration, bodyType: IrType): void;
|
|
198
|
-
export declare function completeArgs(lowerer: Lowerer, argNodes: readonly ts.Expression[], shapes: readonly ParamShape[], loc: SrcLoc, blame: ts.Node,
|
|
199
|
-
/** Pre-lowered values virtually PREPENDED to the argument list — the
|
|
200
|
-
* tagged-template strings object, which has no ts.Expression to lower
|
|
201
|
-
* (lowerTaggedTemplate builds it). Each rides the same slot-directed
|
|
202
|
-
* coercion an ordinary argument gets (coerceInto against its shape,
|
|
203
|
-
* DYN conversion in a dyn rest, element coercion in a typed rest). */
|
|
204
|
-
leading?: readonly IrExpr[]): IrExpr[];
|
|
205
|
-
/** The undefined arm of an undefined-armed union `type`, wrapped (a
|
|
206
|
-
* unitLit under a unionWrap) — the value every "absent" slot holds: an
|
|
207
|
-
* omitted optional argument, an omitted optional record field. Null when
|
|
208
|
-
* `type` has no undefined arm to wrap into. */
|
|
209
|
-
export declare function wrappedUndefined(lowerer: Lowerer, type: IrType, loc: SrcLoc): IrExpr | null;
|
|
210
|
-
/** The synthesized argument for an omitted omittable param: the interned
|
|
211
|
-
* undefined arm of the param's `T | undefined` ABI union, or the checked-dynamic tree
|
|
212
|
-
* undefined for a checked-dynamic param (`bar?: any`). */
|
|
213
|
-
/** The "absent argument" value for a param SLOT type, or null when the
|
|
214
|
-
* slot cannot hold one: the interned undefined arm for undefined-armed
|
|
215
|
-
* unions, the dyn undefined for checked-dynamic slots, the engine's own
|
|
216
|
-
* undefined for island slots. Shared by every call-completion loop
|
|
217
|
-
* (direct calls and calls through func-typed values). */
|
|
218
|
-
export declare function omittedArgFor(lowerer: Lowerer, type: IrType, loc: SrcLoc): IrExpr | null;
|
|
219
|
-
export declare function undefinedArgFor(lowerer: Lowerer, type: IrType, loc: SrcLoc, blame: ts.Node): IrExpr;
|
|
220
|
-
/** DECISION (docs/ir.md): function VALUES carry one completed native ABI.
|
|
221
|
-
* Optional/default parameters appear as literal `T | undefined` slots;
|
|
222
|
-
* typed rest parameters appear as one trailing typed-array slot plus the
|
|
223
|
-
* typed-rest marker that makes indirect call sites pack source arguments.
|
|
224
|
-
* A value is admitted only where its target type projects to that same
|
|
225
|
-
* completed signature. */
|
|
226
|
-
export declare function requireExactArityValue(lowerer: Lowerer, blame: ts.Node, contextual: ts.Expression | null, shapes: readonly ParamShape[], funcType: IrType): void;
|
|
227
|
-
/** The BODY-facing return type of a (possibly async) function: an async
|
|
228
|
-
* body's `return v` fulfills its promise with v, so the body returns the
|
|
229
|
-
* promise's INNER type while call sites keep Promise<T>. The declared
|
|
230
|
-
* type of an async function is always a promise (collectSignature /
|
|
231
|
-
* lowerLambda reject anything else before calling this). */
|
|
232
|
-
export declare function bodyReturnType(lowerer: Lowerer, isAsync: boolean, declared: IrType): IrType;
|
|
233
|
-
/** A union-returning body may complete WITHOUT returning — JS yields
|
|
234
|
-
* undefined then (`(): string | undefined => { if (c) return "x"; }`), so
|
|
235
|
-
* an undefined-armed union return gets a trailing `return <undefined
|
|
236
|
-
* arm>` appended unless the body's last statement already returns or
|
|
237
|
-
* throws (deeper always-returning control flow keeps the appended return
|
|
238
|
-
* as dead code — harmless).
|
|
239
|
-
*
|
|
240
|
-
* Every OTHER non-void body gets a trailing UNREACHABLE trap instead:
|
|
241
|
-
* tsc's reachability can prove completions the validator's conservative
|
|
242
|
-
* alwaysReturns cannot (an exhaustive `switch (typeof x)` with a return
|
|
243
|
-
* in every case — signature 16), and those bodies end without a terminal
|
|
244
|
-
* statement of their own. The trap satisfies the must-return rule as the
|
|
245
|
-
* dead code it is; it can only fire if the checker's proof was violated,
|
|
246
|
-
* which would be a lowering bug — hence the please-report wording. */
|
|
247
|
-
export declare function appendImplicitUndefinedReturn(lowerer: Lowerer, body: IrStmt[], bodyReturn: IrType, loc: SrcLoc): void;
|
|
248
|
-
/** A declaration's checker-derived IR return type. The unmappable-type
|
|
249
|
-
* diagnostic points at `blame` (the name for top-level declarations, the
|
|
250
|
-
* whole node for lambda-likes — preserving each caller's historical loc). */
|
|
251
|
-
export declare function hasExplicitJsDocReturn(decl: ts.SignatureDeclaration): boolean;
|
|
252
|
-
export declare function declaredReturnType(lowerer: Lowerer, decl: ts.SignatureDeclaration, blame: ts.Node): IrType;
|
|
253
|
-
export declare function collectSignature(lowerer: Lowerer, decl: ts.FunctionDeclaration): void;
|
|
254
|
-
export declare function collectSignatureInner(lowerer: Lowerer, decl: ts.FunctionDeclaration): void;
|
|
255
|
-
/** Registers a top-level generic function. Only the SYNTAX is checked
|
|
256
|
-
* here — parameter/return types mention the type parameters and cannot
|
|
257
|
-
* map yet; the body is lowered per instantiation, on demand (an unused
|
|
258
|
-
* generic function costs nothing, like a C++ template). Called inside
|
|
259
|
-
* collectSignature's poison catch. */
|
|
260
|
-
export declare function collectGenericSignature(lowerer: Lowerer, decl: ts.FunctionDeclaration): void;
|
|
261
|
-
export declare function genericFnOf(lowerer: Lowerer, ident: ts.Identifier): GenericFnInfo | null;
|
|
262
|
-
/** Call of a generic top-level function. The checker already inferred (or
|
|
263
|
-
* was told, via explicit type arguments) the concrete signature —
|
|
264
|
-
* getResolvedSignature returns it with type arguments substituted. The
|
|
265
|
-
* mapped param+return IR types form the INSTANTIATION KEY; the first call
|
|
266
|
-
* with a new key queues the body for monomorphic lowering as
|
|
267
|
-
* `<qualifiedName>%<n>`, and every call lowers to a direct `call` of that
|
|
268
|
-
* instance. */
|
|
269
|
-
export declare function lowerGenericCall(lowerer: Lowerer, expr: ts.CallExpression, info: GenericFnInfo): IrExpr;
|
|
270
|
-
/** The instance a CALL of a generic function-like names: resolved
|
|
271
|
-
* signature → mapped param shapes/return → interned instance. Shared by
|
|
272
|
-
* top-level generic calls, class generic-method calls (the caller
|
|
273
|
-
* prepends the receiver), and object-literal generic-method calls. */
|
|
274
|
-
export declare function genericCallInstance(lowerer: Lowerer, expr: ts.CallExpression, info: GenericFnInfo): GenericInstance;
|
|
275
|
-
/** Type-parameter symbol → concrete IR type for one instantiation.
|
|
276
|
-
* Explicit type arguments bind directly; the rest come from structurally
|
|
277
|
-
* matching each DECLARED param/return type (which mentions the type
|
|
278
|
-
* parameters) against the checker's INSTANTIATED one — the latter is the
|
|
279
|
-
* former with the substitution applied, so the shapes are parallel by
|
|
280
|
-
* construction. A type parameter left unbound only matters if the body
|
|
281
|
-
* mentions it, where mapType fails and badType names the shape
|
|
282
|
-
* (carrying the instantiation context). */
|
|
283
|
-
export declare function inferTypeParamBindings(lowerer: Lowerer, expr: ts.CallExpression, info: GenericFnInfo, rsig: ts.Signature, tsBindings?: Map<ts.Symbol, ts.Type>): Map<ts.Symbol, IrType>;
|
|
284
|
-
/** Lowers ONE monomorphic instance of a generic function: the same body
|
|
285
|
-
* AST, re-lowered with the type parameters bound (threaded into every
|
|
286
|
-
* mapType call via typeParamResolver — the checker keeps reporting the
|
|
287
|
-
* unsubstituted `T`s inside the body). Coverage stats count a base
|
|
288
|
-
* function's statements once: only the FIRST instance contributes. */
|
|
289
|
-
export declare function lowerGenericInstance(lowerer: Lowerer, info: GenericFnInfo, inst: GenericInstance): IrFunction;
|
|
290
|
-
/** A generic function taken as a VALUE, monomorphized by flow. A function
|
|
291
|
-
* value needs ONE concrete signature; tsc pins one at exactly two
|
|
292
|
-
* reference shapes — an instantiation EXPRESSION (`identity<number>`,
|
|
293
|
-
* whose own checker type is the substituted signature) and a reference
|
|
294
|
-
* whose CONTEXTUAL type completes the signature (`const f: (x: number) =>
|
|
295
|
-
* number = identity`, `take(identity)`). The declared signature unifies
|
|
296
|
-
* against the pinned one to recover the bindings; the instance then
|
|
297
|
-
* registers in the SAME table call sites use (one compiled copy per
|
|
298
|
-
* signature however it is reached), and the value is the instance's
|
|
299
|
-
* zero-capture closure — `f === f` holds within an instantiation, the
|
|
300
|
-
* declared-function identity rule. References with no pinning context
|
|
301
|
-
* (the slot keeps `<T>(x: T) => T`) fence by name. */
|
|
302
|
-
export declare function lowerGenericFnValue(lowerer: Lowerer, ref: ts.Expression, info: GenericFnInfo): IrExpr;
|
|
303
|
-
/** The npm-static gate: implicit-any monomorphization applies to functions
|
|
304
|
-
* DECLARED in an opted-in package's JS files (user JS keeps today's
|
|
305
|
-
* checked-dynamic story until the corpus is re-baselined). */
|
|
306
|
-
export declare function implicitMonoFile(sf: ts.SourceFile): boolean;
|
|
307
|
-
/** The implicit-type-parameter slots of a JS function-like: parallel to
|
|
308
|
-
* decl.parameters, the param SYMBOL where the slot is a bindable
|
|
309
|
-
* implicit param (identifier-named, broad inferred/JSDoc type, not
|
|
310
|
-
* rest/optional/defaulted, never written), null elsewhere. Package JS
|
|
311
|
-
* methods may also specialize class parameters: JSDoc names a nominal
|
|
312
|
-
* class even when the body accepts other objects with the same members.
|
|
313
|
-
* Null overall when nothing qualifies — the declaration keeps its ABI. */
|
|
314
|
-
export declare function implicitAnyParamSymbolsOf(lowerer: Lowerer, decl: ts.FunctionDeclaration | ts.MethodDeclaration | ts.FunctionExpression | ts.ArrowFunction, classParams?: boolean): (ts.Symbol | null)[] | null;
|
|
315
|
-
/** True when a `this.method(...)` call targets an implicit npm-static
|
|
316
|
-
* method whose result is settled from its lowered body rather than the
|
|
317
|
-
* checker declaration. Uninitialized-local inference uses this to avoid
|
|
318
|
-
* freezing an evolving `any` slot to stale JSDoc. */
|
|
319
|
-
export declare function implicitMethodCallInfersReturn(lowerer: Lowerer, call: ts.CallExpression): boolean;
|
|
320
|
-
/** The instance a CALL of an implicit-any function-like names: each
|
|
321
|
-
* bindable implicit param takes the call's WIDENED argument checker type
|
|
322
|
-
* when it maps statically (DYN otherwise — today's slot), typed params
|
|
323
|
-
* keep their declared shapes, and the param-type tuple is the
|
|
324
|
-
* instantiation key. New keys lower EAGERLY (return inference — see the
|
|
325
|
-
* section comment); a same-key re-demand mid-lowering pins the fallback
|
|
326
|
-
* return type. */
|
|
327
|
-
export declare function implicitCallInstance(lowerer: Lowerer, call: ts.CallExpression, info: GenericFnInfo): GenericInstance;
|
|
328
|
-
/** The all-dyn DEFAULT instance — today's compiled body exactly: what a
|
|
329
|
-
* VALUE reference of an implicit-any function names (indirect calls
|
|
330
|
-
* carry no per-site types to bind). */
|
|
331
|
-
export declare function implicitDefaultInstance(lowerer: Lowerer, blame: ts.Node, info: GenericFnInfo): GenericInstance;
|
|
332
|
-
/** The implicit-any twin of bindingGenericFnNodeOf, for LOCAL and module
|
|
333
|
-
* bindings alike (`const knownBy = (cmd) => [cmd.name()].concat(...)`
|
|
334
|
-
* inside a method body — commander's _registerCommand shape): the
|
|
335
|
-
* initializer function-like when the WHOLE declaration qualifies for
|
|
336
|
-
* implicit monomorphization, else null — non-qualifying shapes keep
|
|
337
|
-
* today's closure story silently (never a fence: the flag must not make
|
|
338
|
-
* working code worse). Qualification: an npm-static JS file, a const (or
|
|
339
|
-
* never-reassigned, never-redeclared) identifier binding, an
|
|
340
|
-
* arrow/function-expression initializer with bindable implicit-any
|
|
341
|
-
* params, and a body with NO captures — no `this`/`super`, and no
|
|
342
|
-
* reference to a function-scoped declaration outside itself (compiled
|
|
343
|
-
* instances are module functions; module-scope references are fine).
|
|
344
|
-
* Cached per declaration on lowerer.implicitLocalFns. */
|
|
345
|
-
export declare function implicitLocalFnNodeOf(lowerer: Lowerer, decl: ts.VariableDeclaration): ts.FunctionExpression | ts.ArrowFunction | null;
|
|
346
|
-
/** Registers (or returns) the GenericFnInfo of a qualifying implicit-any
|
|
347
|
-
* function-value binding — implicitLocalFnNodeOf's companion, the
|
|
348
|
-
* bindingGenericFnInfoOf shape: the info enters genericFnsBySymbol under
|
|
349
|
-
* the binding's symbol (and a named function expression's inner name),
|
|
350
|
-
* so calls and value references resolve through genericFnOf; the
|
|
351
|
-
* declaration statement emits nothing and the binding has no runtime
|
|
352
|
-
* value. The declaration's source position joins the qualified name —
|
|
353
|
-
* two same-named locals in one file stay distinct. */
|
|
354
|
-
export declare function implicitLocalFnInfoOf(lowerer: Lowerer, decl: ts.VariableDeclaration, fnNode: ts.FunctionExpression | ts.ArrowFunction): GenericFnInfo;
|
|
3
|
+
import { type IrExpr, type IrType, type SrcLoc } from "../../ir/ir.js";
|
|
355
4
|
/** An island call result the .d.ts DECLARES as a primitive exits eagerly
|
|
356
5
|
* to that static type — the member-read rule's call sibling (see the
|
|
357
6
|
* getProp lowering in lower-exprs.ts): primitives copy by value, every
|
|
@@ -359,106 +8,45 @@ export declare function implicitLocalFnInfoOf(lowerer: Lowerer, decl: ts.Variabl
|
|
|
359
8
|
* catchable TypeError. Chain-handled forms stay jsval (the optChain's
|
|
360
9
|
* unit path is the engine's undefined). */
|
|
361
10
|
export declare function islandPrimitiveExit(lowerer: Lowerer, call: ts.CallExpression, result: IrExpr): IrExpr;
|
|
362
|
-
/** The trailing-argument timer forms — `setTimeout(cb, ms, ...args)`,
|
|
363
|
-
* `setInterval(cb, ms, ...args)`, `setImmediate(cb, ...args)` — invoke
|
|
364
|
-
* the callback WITH those arguments (Node passes them through). The
|
|
365
|
-
* callback and every argument box into dyn and an interned per-arity
|
|
366
|
-
* thunk delivers the dynCall at fire time: JS's exact call semantics
|
|
367
|
-
* (per-argument checks against the callee's declared signature, extras
|
|
368
|
-
* ignored, a non-function callee throwing the catchable TypeError).
|
|
369
|
-
* Non-boxable callbacks fence. */
|
|
370
|
-
export declare function timerStyleCallback(lowerer: Lowerer, callArgs: readonly ts.Expression[], what: string, loc: SrcLoc): IrExpr;
|
|
371
|
-
/** One timer call by MEMBER NAME — the shared lowering behind the ambient
|
|
372
|
-
* globals, the node:timers named/destructured imports, and the namespace
|
|
373
|
-
* form (`timers.setTimeout(...)`). Null when the member isn't a lowered
|
|
374
|
-
* timer function (the caller's fence machinery takes over). */
|
|
375
|
-
export declare function lowerTimersMemberCall(lowerer: Lowerer, expr: ts.CallExpression, member: string, loc: SrcLoc): IrExpr | null;
|
|
376
|
-
export interface FfiValidationResult {
|
|
377
|
-
diagnostics: ScrDiagnostic[];
|
|
378
|
-
symbolsByName: ReadonlyMap<string, ReadonlySet<ts.Symbol>>;
|
|
379
|
-
}
|
|
380
|
-
/** Resolve and validate every configured outbound binding before emit.
|
|
381
|
-
* Candidate declarations are signature-only functions bearing the manifest
|
|
382
|
-
* name anywhere in the program. Multiple scoped declarations are all native
|
|
383
|
-
* bindings under the existing name-based call surface, so every candidate
|
|
384
|
-
* must fit the one manifest ABI. Library callbacks additionally exclude
|
|
385
|
-
* standard-library and package declaration files while retaining project
|
|
386
|
-
* declaration files as authored callback surface. */
|
|
387
|
-
export declare function validateFfiImports(lowerer: Lowerer): FfiValidationResult;
|
|
388
|
-
/** A manifest-bound call of a signature-only ambient declaration. This
|
|
389
|
-
* recognition deliberately runs before ambientUndefVarRootOf: without the
|
|
390
|
-
* manifest the exact same source keeps Node's ReferenceError semantics;
|
|
391
|
-
* with it, only the resolved declaration binding (never a shadowing
|
|
392
|
-
* function with a body) becomes a direct native call. */
|
|
393
|
-
export declare function lowerFfiCall(lowerer: Lowerer, expr: ts.CallExpression): IrExpr | null;
|
|
394
11
|
export declare function lowerCall(lowerer: Lowerer, expr: ts.CallExpression): IrExpr;
|
|
395
12
|
export declare function lowerDynDispatchMethodCall(lowerer: Lowerer, call: ts.CallExpression, access: ts.PropertyAccessExpression, recv: IrExpr, arrayReceiver: boolean): IrExpr | null;
|
|
396
13
|
/** Tagged templates `tag\`a${x}b\`` — ES's call: tag(strings, ...values).
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
14
|
+
* The strings object is a per-SITE lazily initialized hidden array global,
|
|
15
|
+
* so the spec's identity contract holds — the same site evaluated twice
|
|
16
|
+
* hands the tag the SAME array; two sites never share. TemplateStringsArray
|
|
17
|
+
* maps to string[] (type-mapper.ts), so the array rides the ordinary
|
|
18
|
+
* slot-directed coercion into whatever the tag's first parameter wants
|
|
19
|
+
* — string[] exactly, an `any` slot through the dyn boundary, a rest
|
|
20
|
+
* pack's first element. Checked tags receive frozen cooked and raw
|
|
21
|
+
* arrays with the standard nonenumerable `.raw` descriptor. Typed direct
|
|
22
|
+
* tags retain the string-array representation.
|
|
23
|
+
*
|
|
24
|
+
* Tag forms: a top-level declared function (the direct-call fast path —
|
|
25
|
+
* overload sets reconcile through the resolved signature exactly like
|
|
26
|
+
* plain calls), an island value under --dynamic (engine method/function
|
|
27
|
+
* call with the engine's cooked/raw template object), and
|
|
28
|
+
* a checked-dynamic value (the dynCall boundary — a non-function tag
|
|
29
|
+
* throws Node's catchable TypeError). Everything else — generic tags,
|
|
30
|
+
* method tags, function-value bindings — fences by name. */
|
|
414
31
|
export declare function lowerTaggedTemplate(lowerer: Lowerer, expr: ts.TaggedTemplateExpression): IrExpr;
|
|
415
|
-
/** True when the identifier resolves (through import aliases) to a
|
|
416
|
-
* top-level function declaration of ANY program file (not merely a
|
|
417
|
-
* same-named local shadowing one). Functions declared directly in a
|
|
418
|
-
* FLATTENED namespace block count — splitFiles hoisted them into the
|
|
419
|
-
* same collection lists top-level declarations ride. */
|
|
420
|
-
export declare function isTopLevelFnSymbol(lowerer: Lowerer, ident: ts.Identifier): boolean;
|
|
421
|
-
/** Nested `function name(...) {...}`: declare the mutable function binding
|
|
422
|
-
* before lowering its body, then initialize it with the lifted closure.
|
|
423
|
-
* The early declaration is observable only when another nested closure
|
|
424
|
-
* captures the binding: its box must exist before either side of a mutual
|
|
425
|
-
* recursion cycle builds its closure. Forward source references use the
|
|
426
|
-
* same split declaration/assignment through predeclareForwardFnDecl.
|
|
427
|
-
* Self-references inside the body lower to `selfRef`, not a capture: a box
|
|
428
|
-
* holding its own closure would be an RC cycle. */
|
|
429
|
-
export declare function lowerNestedFunctionDecl(lowerer: Lowerer, stmt: ts.FunctionDeclaration): IrStmt;
|
|
430
|
-
/** Signature checks + param shapes + IR func type for any lambda-like
|
|
431
|
-
* node. The func type's params are the ABI types: optional/default params
|
|
432
|
-
* become `T | undefined`, and typed rest becomes one packed-array slot.
|
|
433
|
-
* requireExactArityValue decides whether that completed ABI may escape. */
|
|
434
|
-
export declare function lambdaSignature(lowerer: Lowerer, node: ts.ArrowFunction | ts.FunctionExpression | ts.FunctionDeclaration | ts.MethodDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration): {
|
|
435
|
-
shapes: ParamShape[];
|
|
436
|
-
funcType: IrType & {
|
|
437
|
-
kind: "func";
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
/** Lifts an arrow function / function expression / nested declaration /
|
|
441
|
-
* object-literal shorthand method to a module-level function and yields
|
|
442
|
-
* the `closure` expression creating it. */
|
|
443
|
-
export declare function lowerLambda(lowerer: Lowerer, node: ts.ArrowFunction | ts.FunctionExpression | ts.FunctionDeclaration | ts.MethodDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration): IrExpr;
|
|
444
32
|
export declare function lowerPromiseMethodCall(lowerer: Lowerer, call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
|
|
445
33
|
/** NARROWING `a.filter(...)` — the two callback forms whose result the
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
34
|
+
* checker types as a NARROWER array than the receiver:
|
|
35
|
+
*
|
|
36
|
+
* xs.filter((x) => x !== undefined) // TS-inferred type predicate
|
|
37
|
+
* xs.filter(Boolean) // BooleanConstructor overload
|
|
38
|
+
*
|
|
39
|
+
* Trust discipline: only tests the RUNTIME actually performs may re-tag.
|
|
40
|
+
* An INFERRED predicate (inline arrow/function expression with no return
|
|
41
|
+
* annotation — TS 5.5 only infers `x is T` when the body proves it) and
|
|
42
|
+
* `Boolean` (retained elements are truthy, hence never the undefined/
|
|
43
|
+
* null arm) both qualify; a HAND-WRITTEN `x is T` annotation is an
|
|
44
|
+
* unchecked assertion (a lying one would corrupt the extraction) and
|
|
45
|
+
* stays fenced. The narrowed element must be a SINGLE arm of the
|
|
46
|
+
* receiver's union — retained elements re-tag through unionNarrow in the
|
|
47
|
+
* synthesized loop; a multi-arm target would need the union-to-union
|
|
48
|
+
* re-tag that doesn't exist (fenced with the annotate-the-callback
|
|
49
|
+
* escape). Null hands non-narrowing filters to the generic HOF path. */
|
|
462
50
|
export declare function lowerFilterNarrowCall(lowerer: Lowerer, call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
|
|
463
51
|
/** The interned keys-array helper over a FIXED record shape: a call of a
|
|
464
52
|
* lifted helper whose body pushes each declared field name in first-seen
|
|
@@ -470,118 +58,11 @@ export declare function lowerFilterNarrowCall(lowerer: Lowerer, call: ts.CallExp
|
|
|
470
58
|
export declare function recordKeysArrayCall(lowerer: Lowerer, receiver: IrExpr, argIr: IrType & {
|
|
471
59
|
kind: "record";
|
|
472
60
|
}, shape: import("../../ir/ir.js").IrRecordShape, loc: SrcLoc): IrExpr;
|
|
473
|
-
export declare function lowerFunction(lowerer: Lowerer, decl: ts.FunctionDeclaration): IrFunction | null;
|
|
474
61
|
export declare function lowerRecordFieldCall(lowerer: Lowerer, call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
|
|
475
|
-
/** The function-like node behind an object-literal generic-method member:
|
|
476
|
-
* the MethodDeclaration itself (`{ m<T>(x: T) {...} }`) or a generic
|
|
477
|
-
* arrow/function-expression property's initializer (`{ m: <T>(x: T) =>
|
|
478
|
-
* ... }`). Null when the property's declaration isn't that shape. */
|
|
479
|
-
export declare function objLitGenericFnNodeOf(lowerer: Lowerer, propSym: ts.Symbol): {
|
|
480
|
-
fnNode: ts.MethodDeclaration | ts.FunctionExpression | ts.ArrowFunction;
|
|
481
|
-
literal: ts.ObjectLiteralExpression;
|
|
482
|
-
} | null;
|
|
483
|
-
/** The interned GenericFnInfo for one object-literal generic method, with
|
|
484
|
-
* the supportability fences applied ONCE per declaration: the defining
|
|
485
|
-
* literal must sit at module scope (the compiled instance is a plain
|
|
486
|
-
* module function — an enclosing frame would need captures), and
|
|
487
|
-
* async/generator forms keep the method fences. The name is source-
|
|
488
|
-
* position-derived (`%ol<start>.<name>`, qualified per file) —
|
|
489
|
-
* deterministic across the discovery and emit passes. */
|
|
490
|
-
export declare function objLitGenericFnInfoOf(lowerer: Lowerer, blame: ts.Node, name: string, found: {
|
|
491
|
-
fnNode: ts.MethodDeclaration | ts.FunctionExpression | ts.ArrowFunction;
|
|
492
|
-
literal: ts.ObjectLiteralExpression;
|
|
493
|
-
}): GenericFnInfo;
|
|
494
|
-
/** True when nothing in `sym`'s DECLARING FILE ever writes it after the
|
|
495
|
-
* initializer: assignments (plain and compound, destructuring targets
|
|
496
|
-
* included), ++/--, and for-of/for-in expression targets all count.
|
|
497
|
-
* Sound file-locally for module-scope bindings because ESM import
|
|
498
|
-
* bindings are read-only — no other file can write one. Cached per
|
|
499
|
-
* symbol (the scan walks the whole file once). */
|
|
500
|
-
export declare function bindingNeverReassigned(lowerer: Lowerer, sym: ts.Symbol, decl: ts.Node): boolean;
|
|
501
|
-
/** The nullish unit `e` provably evaluates to: a bare null/undefined
|
|
502
|
-
* literal (assertion-wrapped — `null as any`, `null!`), or a read of a
|
|
503
|
-
* registered NULLISH binding (nullishGenericBindingUnitOf). Null when
|
|
504
|
-
* the value could be anything else. */
|
|
505
|
-
export declare function nullishExprUnitOf(lowerer: Lowerer, e: ts.Expression): "null" | "undefined" | null;
|
|
506
|
-
/** nullishValueUnitOf gated on a declared type that CANNOT hold the
|
|
507
|
-
* value — the NO-STORAGE family: an unmappable type has no other story,
|
|
508
|
-
* and a RECORD-mapped one (`const i: I<A & B> = null as any` — an
|
|
509
|
-
* interface whose members are all generic signatures interns an empty
|
|
510
|
-
* shape) has a slot null can never inhabit, so storing would throw the
|
|
511
|
-
* representation error where Node stores null silently. Either way the
|
|
512
|
-
* declaration emits nothing and reads know the value. Null-tolerant
|
|
513
|
-
* mappings (unions with a null/undefined arm, dyn) keep their real
|
|
514
|
-
* storage and every ordinary lowering. */
|
|
515
|
-
export declare function nullishGenericBindingUnitOf(lowerer: Lowerer, sym: ts.Symbol | null): "null" | "undefined" | null;
|
|
516
|
-
/** True when `sym` — a binding whose type has NO static mapping — is DEAD:
|
|
517
|
-
* never read anywhere in the program, not exported through a specifier,
|
|
518
|
-
* declared with no initializer or a side-effect-free one, and written
|
|
519
|
-
* (if at all) only by plain assignments of side-effect-free values. Node
|
|
520
|
-
* materializes those values and drops them — zero observable effect —
|
|
521
|
-
* so the declaration and its writes lower to NOTHING instead of fencing
|
|
522
|
-
* on a type the program never consumes (`var xs2: typeof Array;`, the
|
|
523
|
-
* write-only `var f2: { <T, U>(x: T, y: U): T }`). TS program files
|
|
524
|
-
* only: JS bindings keep their checked-dynamic fallbacks. Positive
|
|
525
|
-
* answers register in lowerer.deadBindings (the assignment lowering skips
|
|
526
|
-
* writes by the same set). */
|
|
527
|
-
export declare function deadUnmappableBinding(lowerer: Lowerer, sym: ts.Symbol | null, decl: ts.VariableDeclaration): boolean;
|
|
528
|
-
/** The generic function-like INITIALIZER behind a binding declaration —
|
|
529
|
-
* `const f = <T>(x: T) => x` or `const f = function g<T>(x: T) {...}`
|
|
530
|
-
* (parens stripped). Null when the declaration isn't that shape; the
|
|
531
|
-
* SHAPE only — whether the binding qualifies (module scope, never
|
|
532
|
-
* reassigned) is bindingGenericFnInfoOf's business. */
|
|
533
|
-
export declare function bindingGenericFnNodeOf(decl: ts.VariableDeclaration): ts.FunctionExpression | ts.ArrowFunction | null;
|
|
534
|
-
/** The CONTEXTUAL twin of bindingGenericFnNodeOf: `const g: Mapper = (x)
|
|
535
|
-
* => x` where `type Mapper = <T>(x: T) => T` — the initializer declares
|
|
536
|
-
* no type parameters of its own, but the ANNOTATION's one call signature
|
|
537
|
-
* does, and the checker types the arrow's parameters by those (`x: T`).
|
|
538
|
-
* Such a binding monomorphizes exactly like `const g = <T>(x: T) => x`;
|
|
539
|
-
* bindingGenericFnInfoOf reads the type parameters off the annotation's
|
|
540
|
-
* signature. Null when the shape doesn't match (a concrete annotation, a
|
|
541
|
-
* generic arrow — the syntactic probe's case, an overloaded alias). */
|
|
542
|
-
export declare function bindingContextualGenericFnNodeOf(lowerer: Lowerer, decl: ts.VariableDeclaration): ts.FunctionExpression | ts.ArrowFunction | null;
|
|
543
|
-
/** The interned GenericFnInfo for one generic arrow/function-expression
|
|
544
|
-
* binding initializer, with the supportability fences applied ONCE per
|
|
545
|
-
* declaration: the binding must sit at module scope (the compiled
|
|
546
|
-
* instances are plain module functions — an enclosing frame would need
|
|
547
|
-
* captures) and must provably HOLD the initializer once initialized — a
|
|
548
|
-
* const, or a let/var nothing in its declaring file ever writes (ESM
|
|
549
|
-
* import bindings are read-only, so the file scan is the whole story;
|
|
550
|
-
* observing the UNINITIALIZED state needs a hoisted early call, the
|
|
551
|
-
* same temporal hole const TDZ leaves — the object-literal generic-
|
|
552
|
-
* method receiver stance). Successful registration enters the info
|
|
553
|
-
* in genericFnsBySymbol under the binding's symbol — and under a named
|
|
554
|
-
* function expression's own inner name (it binds itself inside the
|
|
555
|
-
* body, the class-expression rule) — so every genericFnOf consumer
|
|
556
|
-
* (calls, pinned values, instantiation expressions, namespace and CJS
|
|
557
|
-
* member paths) resolves it like a top-level generic declaration. */
|
|
558
|
-
export declare function bindingGenericFnInfoOf(lowerer: Lowerer, decl: ts.VariableDeclaration, fnNode: ts.FunctionExpression | ts.ArrowFunction): GenericFnInfo;
|
|
559
|
-
/** `const h = id` — a binding ALIASING a generic function (a top-level
|
|
560
|
-
* declaration, a registered generic binding, or another alias — resolved
|
|
561
|
-
* left to right in declaration order). The alias registers the SAME info
|
|
562
|
-
* under its own symbol, so calls (`h(3)`) and pinned values (`take(h)`)
|
|
563
|
-
* resolve exactly like the target's own name, and the binding itself has
|
|
564
|
-
* no runtime value (a generic function value cannot materialize). Claims
|
|
565
|
-
* only bindings whose OWN type still keeps type parameters — a
|
|
566
|
-
* concrete-annotated alias (`const h: (x: number) => number = id`) is a
|
|
567
|
-
* pinned VALUE, the existing lowerGenericFnValue story. Null when the
|
|
568
|
-
* shape doesn't match or the target isn't a registered generic; fences
|
|
569
|
-
* (reassignment, var redeclaration) report by name inside. */
|
|
570
|
-
export declare function bindingGenericFnAliasInfoOf(lowerer: Lowerer, decl: ts.VariableDeclaration): GenericFnInfo | null;
|
|
571
|
-
/** Static resolution stands in for the receiver's runtime value, so an
|
|
572
|
-
* object-literal generic-method receiver must provably HOLD the defining
|
|
573
|
-
* literal: a direct read of a binding whose initializer IS that literal
|
|
574
|
-
* and that nothing ever reassigns — a const, or a let with no write in
|
|
575
|
-
* its declaring file (ESM import bindings are read-only, so the file
|
|
576
|
-
* scan is the whole story). The read is pure — call and value sites skip
|
|
577
|
-
* evaluating it entirely. A reassignable binding could hold a
|
|
578
|
-
* structurally identical literal with a DIFFERENT body, which static
|
|
579
|
-
* resolution would silently miss. */
|
|
580
|
-
export declare function requireObjLitGenericReceiver(lowerer: Lowerer, blame: ts.Node, recvExpr: ts.Expression, literal: ts.ObjectLiteralExpression, name: string): void;
|
|
581
62
|
/** `obj.method(args)` — whole-program devirtualization decides the form:
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
63
|
+
* a method some strict subclass of the receiver's STATIC class overrides
|
|
64
|
+
* must dispatch on the dynamic class (`virtualCall`, through the vtable);
|
|
65
|
+
* everything else — standalone classes, non-overridden methods, leaf
|
|
66
|
+
* receivers — stays a direct `call` of the nearest declaration, exactly
|
|
67
|
+
* as before inheritance existed. */
|
|
587
68
|
export declare function lowerObjectMethodCall(lowerer: Lowerer, call: ts.CallExpression, access: ts.PropertyAccessExpression): IrExpr | null;
|