@flighthq/tool-compiler 0.5.1-edge.1687.b63c819
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/LICENSE.md +9 -0
- package/README.md +74 -0
- package/dist/packages/compiler-ambient/src/compilerAmbientSurface.d.ts +3 -0
- package/dist/packages/compiler-ambient/src/compilerAmbientSurface.d.ts.map +1 -0
- package/dist/packages/compiler-ambient/src/compilerAmbientSurface.js +564 -0
- package/dist/packages/compiler-ambient/src/compilerAmbientSurface.js.map +1 -0
- package/dist/packages/compiler-ambient/src/index.d.ts +2 -0
- package/dist/packages/compiler-ambient/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-ambient/src/index.js +2 -0
- package/dist/packages/compiler-ambient/src/index.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppAmbientMemberBinding.d.ts +3 -0
- package/dist/packages/compiler-backend-cpp/src/cppAmbientMemberBinding.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppAmbientMemberBinding.js +146 -0
- package/dist/packages/compiler-backend-cpp/src/cppAmbientMemberBinding.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppBindingTypeInference.d.ts +3 -0
- package/dist/packages/compiler-backend-cpp/src/cppBindingTypeInference.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppBindingTypeInference.js +197 -0
- package/dist/packages/compiler-backend-cpp/src/cppBindingTypeInference.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppCallableSignatureAbi.d.ts +8 -0
- package/dist/packages/compiler-backend-cpp/src/cppCallableSignatureAbi.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppCallableSignatureAbi.js +9 -0
- package/dist/packages/compiler-backend-cpp/src/cppCallableSignatureAbi.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppClosureCapturePlan.d.ts +3 -0
- package/dist/packages/compiler-backend-cpp/src/cppClosureCapturePlan.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppClosureCapturePlan.js +109 -0
- package/dist/packages/compiler-backend-cpp/src/cppClosureCapturePlan.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerBackend.d.ts +4 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerBackend.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerBackend.js +16568 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerBackend.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerIdentity.d.ts +7 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerIdentity.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerIdentity.js +176 -0
- package/dist/packages/compiler-backend-cpp/src/cppCompilerIdentity.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppReferenceRepresentationPlan.d.ts +7 -0
- package/dist/packages/compiler-backend-cpp/src/cppReferenceRepresentationPlan.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppReferenceRepresentationPlan.js +1514 -0
- package/dist/packages/compiler-backend-cpp/src/cppReferenceRepresentationPlan.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppRuntimeExternalSymbolBinding.d.ts +44 -0
- package/dist/packages/compiler-backend-cpp/src/cppRuntimeExternalSymbolBinding.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppRuntimeExternalSymbolBinding.js +1060 -0
- package/dist/packages/compiler-backend-cpp/src/cppRuntimeExternalSymbolBinding.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppTupleRepresentation.d.ts +3 -0
- package/dist/packages/compiler-backend-cpp/src/cppTupleRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppTupleRepresentation.js +13 -0
- package/dist/packages/compiler-backend-cpp/src/cppTupleRepresentation.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppUnionRepresentationPlan.d.ts +66 -0
- package/dist/packages/compiler-backend-cpp/src/cppUnionRepresentationPlan.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/cppUnionRepresentationPlan.js +196 -0
- package/dist/packages/compiler-backend-cpp/src/cppUnionRepresentationPlan.js.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/index.d.ts +6 -0
- package/dist/packages/compiler-backend-cpp/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-backend-cpp/src/index.js +6 -0
- package/dist/packages/compiler-backend-cpp/src/index.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeAmbientMemberBinding.d.ts +4 -0
- package/dist/packages/compiler-backend-hx/src/haxeAmbientMemberBinding.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeAmbientMemberBinding.js +160 -0
- package/dist/packages/compiler-backend-hx/src/haxeAmbientMemberBinding.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeAsyncIterationLowering.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeAsyncIterationLowering.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeAsyncIterationLowering.js +129 -0
- package/dist/packages/compiler-backend-hx/src/haxeAsyncIterationLowering.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerBackend.d.ts +5 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerBackend.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerBackend.js +5172 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerBackend.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerEmittedSourceSyntax.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerEmittedSourceSyntax.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerEmittedSourceSyntax.js +8 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerEmittedSourceSyntax.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerIdentity.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerIdentity.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerIdentity.js +51 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerIdentity.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerTargetCompilationSmoke.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerTargetCompilationSmoke.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerTargetCompilationSmoke.js +8 -0
- package/dist/packages/compiler-backend-hx/src/haxeCompilerTargetCompilationSmoke.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeExternEmission.d.ts +40 -0
- package/dist/packages/compiler-backend-hx/src/haxeExternEmission.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeExternEmission.js +968 -0
- package/dist/packages/compiler-backend-hx/src/haxeExternEmission.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeAbiManifest.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeAbiManifest.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeAbiManifest.js +53 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeAbiManifest.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalConstructorAbi.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalConstructorAbi.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalConstructorAbi.js +64 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalConstructorAbi.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalSymbolBinding.d.ts +8 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalSymbolBinding.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalSymbolBinding.js +803 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeExternalSymbolBinding.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeTaskCapability.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeTaskCapability.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeTaskCapability.js +66 -0
- package/dist/packages/compiler-backend-hx/src/haxeRuntimeTaskCapability.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskEmission.d.ts +3 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskEmission.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskEmission.js +361 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskEmission.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskLowering.d.ts +4 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskLowering.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskLowering.js +265 -0
- package/dist/packages/compiler-backend-hx/src/haxeTaskLowering.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeTypeEmission.d.ts +16 -0
- package/dist/packages/compiler-backend-hx/src/haxeTypeEmission.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/haxeTypeEmission.js +134 -0
- package/dist/packages/compiler-backend-hx/src/haxeTypeEmission.js.map +1 -0
- package/dist/packages/compiler-backend-hx/src/index.d.ts +13 -0
- package/dist/packages/compiler-backend-hx/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-backend-hx/src/index.js +13 -0
- package/dist/packages/compiler-backend-hx/src/index.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/index.d.ts +8 -0
- package/dist/packages/compiler-backend-rs/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/index.js +8 -0
- package/dist/packages/compiler-backend-rs/src/index.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustAmbientMemberBinding.d.ts +3 -0
- package/dist/packages/compiler-backend-rs/src/rustAmbientMemberBinding.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustAmbientMemberBinding.js +99 -0
- package/dist/packages/compiler-backend-rs/src/rustAmbientMemberBinding.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerBackend.d.ts +5 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerBackend.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerBackend.js +4555 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerBackend.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerEmittedSourceSyntax.d.ts +3 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerEmittedSourceSyntax.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerEmittedSourceSyntax.js +8 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerEmittedSourceSyntax.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerIdentity.d.ts +4 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerIdentity.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerIdentity.js +113 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerIdentity.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerTargetCompilationSmoke.d.ts +3 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerTargetCompilationSmoke.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerTargetCompilationSmoke.js +8 -0
- package/dist/packages/compiler-backend-rs/src/rustCompilerTargetCompilationSmoke.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustOwnershipEvidence.d.ts +5 -0
- package/dist/packages/compiler-backend-rs/src/rustOwnershipEvidence.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustOwnershipEvidence.js +345 -0
- package/dist/packages/compiler-backend-rs/src/rustOwnershipEvidence.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalConstructorAbi.d.ts +3 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalConstructorAbi.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalConstructorAbi.js +38 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalConstructorAbi.js.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalSymbolBinding.d.ts +6 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalSymbolBinding.d.ts.map +1 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalSymbolBinding.js +301 -0
- package/dist/packages/compiler-backend-rs/src/rustRuntimeExternalSymbolBinding.js.map +1 -0
- package/dist/packages/compiler-canonical-form/src/compilerPortablePath.d.ts +2 -0
- package/dist/packages/compiler-canonical-form/src/compilerPortablePath.d.ts.map +1 -0
- package/dist/packages/compiler-canonical-form/src/compilerPortablePath.js +4 -0
- package/dist/packages/compiler-canonical-form/src/compilerPortablePath.js.map +1 -0
- package/dist/packages/compiler-canonical-form/src/compilerStructuralValue.d.ts +2 -0
- package/dist/packages/compiler-canonical-form/src/compilerStructuralValue.d.ts.map +1 -0
- package/dist/packages/compiler-canonical-form/src/compilerStructuralValue.js +63 -0
- package/dist/packages/compiler-canonical-form/src/compilerStructuralValue.js.map +1 -0
- package/dist/packages/compiler-canonical-form/src/compilerTextOrder.d.ts +2 -0
- package/dist/packages/compiler-canonical-form/src/compilerTextOrder.d.ts.map +1 -0
- package/dist/packages/compiler-canonical-form/src/compilerTextOrder.js +4 -0
- package/dist/packages/compiler-canonical-form/src/compilerTextOrder.js.map +1 -0
- package/dist/packages/compiler-canonical-form/src/index.d.ts +4 -0
- package/dist/packages/compiler-canonical-form/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-canonical-form/src/index.js +4 -0
- package/dist/packages/compiler-canonical-form/src/index.js.map +1 -0
- package/dist/packages/compiler-check/src/compilerPackageCheck.d.ts +9 -0
- package/dist/packages/compiler-check/src/compilerPackageCheck.d.ts.map +1 -0
- package/dist/packages/compiler-check/src/compilerPackageCheck.js +417 -0
- package/dist/packages/compiler-check/src/compilerPackageCheck.js.map +1 -0
- package/dist/packages/compiler-check/src/index.d.ts +2 -0
- package/dist/packages/compiler-check/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-check/src/index.js +2 -0
- package/dist/packages/compiler-check/src/index.js.map +1 -0
- package/dist/packages/compiler-closure/src/compilerClosureEvidence.d.ts +3 -0
- package/dist/packages/compiler-closure/src/compilerClosureEvidence.d.ts.map +1 -0
- package/dist/packages/compiler-closure/src/compilerClosureEvidence.js +469 -0
- package/dist/packages/compiler-closure/src/compilerClosureEvidence.js.map +1 -0
- package/dist/packages/compiler-closure/src/index.d.ts +2 -0
- package/dist/packages/compiler-closure/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-closure/src/index.js +2 -0
- package/dist/packages/compiler-closure/src/index.js.map +1 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLine.d.ts +12 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLine.d.ts.map +1 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLine.js +549 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLine.js.map +1 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLineEntryPoint.d.ts +5 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLineEntryPoint.d.ts.map +1 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLineEntryPoint.js +134 -0
- package/dist/packages/compiler-command-line/src/compilerCommandLineEntryPoint.js.map +1 -0
- package/dist/packages/compiler-command-line/src/index.d.ts +3 -0
- package/dist/packages/compiler-command-line/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-command-line/src/index.js +3 -0
- package/dist/packages/compiler-command-line/src/index.js.map +1 -0
- package/dist/packages/compiler-completion/src/compilerAsyncTaskCompletion.d.ts +6 -0
- package/dist/packages/compiler-completion/src/compilerAsyncTaskCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/compilerAsyncTaskCompletion.js +89 -0
- package/dist/packages/compiler-completion/src/compilerAsyncTaskCompletion.js.map +1 -0
- package/dist/packages/compiler-completion/src/compilerCatchCompletion.d.ts +6 -0
- package/dist/packages/compiler-completion/src/compilerCatchCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/compilerCatchCompletion.js +77 -0
- package/dist/packages/compiler-completion/src/compilerCatchCompletion.js.map +1 -0
- package/dist/packages/compiler-completion/src/compilerCompletionSet.d.ts +6 -0
- package/dist/packages/compiler-completion/src/compilerCompletionSet.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/compilerCompletionSet.js +110 -0
- package/dist/packages/compiler-completion/src/compilerCompletionSet.js.map +1 -0
- package/dist/packages/compiler-completion/src/compilerFinallyCompletion.d.ts +3 -0
- package/dist/packages/compiler-completion/src/compilerFinallyCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/compilerFinallyCompletion.js +13 -0
- package/dist/packages/compiler-completion/src/compilerFinallyCompletion.js.map +1 -0
- package/dist/packages/compiler-completion/src/compilerStatementCompletion.d.ts +4 -0
- package/dist/packages/compiler-completion/src/compilerStatementCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/compilerStatementCompletion.js +181 -0
- package/dist/packages/compiler-completion/src/compilerStatementCompletion.js.map +1 -0
- package/dist/packages/compiler-completion/src/compilerStatementValueCompletion.d.ts +5 -0
- package/dist/packages/compiler-completion/src/compilerStatementValueCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/compilerStatementValueCompletion.js +41 -0
- package/dist/packages/compiler-completion/src/compilerStatementValueCompletion.js.map +1 -0
- package/dist/packages/compiler-completion/src/compilerValueCompletion.d.ts +8 -0
- package/dist/packages/compiler-completion/src/compilerValueCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/compilerValueCompletion.js +208 -0
- package/dist/packages/compiler-completion/src/compilerValueCompletion.js.map +1 -0
- package/dist/packages/compiler-completion/src/index.d.ts +8 -0
- package/dist/packages/compiler-completion/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-completion/src/index.js +8 -0
- package/dist/packages/compiler-completion/src/index.js.map +1 -0
- package/dist/packages/compiler-emission/src/compilerEmittedSourceSyntax.d.ts +4 -0
- package/dist/packages/compiler-emission/src/compilerEmittedSourceSyntax.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/compilerEmittedSourceSyntax.js +122 -0
- package/dist/packages/compiler-emission/src/compilerEmittedSourceSyntax.js.map +1 -0
- package/dist/packages/compiler-emission/src/compilerGeneratedFileProvenance.d.ts +3 -0
- package/dist/packages/compiler-emission/src/compilerGeneratedFileProvenance.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/compilerGeneratedFileProvenance.js +17 -0
- package/dist/packages/compiler-emission/src/compilerGeneratedFileProvenance.js.map +1 -0
- package/dist/packages/compiler-emission/src/compilerLiteralUnion.d.ts +3 -0
- package/dist/packages/compiler-emission/src/compilerLiteralUnion.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/compilerLiteralUnion.js +20 -0
- package/dist/packages/compiler-emission/src/compilerLiteralUnion.js.map +1 -0
- package/dist/packages/compiler-emission/src/compilerNullableFlowGuard.d.ts +4 -0
- package/dist/packages/compiler-emission/src/compilerNullableFlowGuard.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/compilerNullableFlowGuard.js +32 -0
- package/dist/packages/compiler-emission/src/compilerNullableFlowGuard.js.map +1 -0
- package/dist/packages/compiler-emission/src/compilerSourceEmission.d.ts +16 -0
- package/dist/packages/compiler-emission/src/compilerSourceEmission.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/compilerSourceEmission.js +176 -0
- package/dist/packages/compiler-emission/src/compilerSourceEmission.js.map +1 -0
- package/dist/packages/compiler-emission/src/compilerTargetCompilationSmoke.d.ts +4 -0
- package/dist/packages/compiler-emission/src/compilerTargetCompilationSmoke.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/compilerTargetCompilationSmoke.js +114 -0
- package/dist/packages/compiler-emission/src/compilerTargetCompilationSmoke.js.map +1 -0
- package/dist/packages/compiler-emission/src/compilerTargetNameAllocation.d.ts +5 -0
- package/dist/packages/compiler-emission/src/compilerTargetNameAllocation.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/compilerTargetNameAllocation.js +449 -0
- package/dist/packages/compiler-emission/src/compilerTargetNameAllocation.js.map +1 -0
- package/dist/packages/compiler-emission/src/index.d.ts +8 -0
- package/dist/packages/compiler-emission/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-emission/src/index.js +8 -0
- package/dist/packages/compiler-emission/src/index.js.map +1 -0
- package/dist/packages/compiler-inventory/src/compilerInventoryFailure.d.ts +4 -0
- package/dist/packages/compiler-inventory/src/compilerInventoryFailure.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/compilerInventoryFailure.js +42 -0
- package/dist/packages/compiler-inventory/src/compilerInventoryFailure.js.map +1 -0
- package/dist/packages/compiler-inventory/src/compilerModuleResolution.d.ts +4 -0
- package/dist/packages/compiler-inventory/src/compilerModuleResolution.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/compilerModuleResolution.js +74 -0
- package/dist/packages/compiler-inventory/src/compilerModuleResolution.js.map +1 -0
- package/dist/packages/compiler-inventory/src/fileSystemWorkspaceSource.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/fileSystemWorkspaceSource.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/fileSystemWorkspaceSource.js +20 -0
- package/dist/packages/compiler-inventory/src/fileSystemWorkspaceSource.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageEligibility.d.ts +5 -0
- package/dist/packages/compiler-inventory/src/flightPackageEligibility.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageEligibility.js +174 -0
- package/dist/packages/compiler-inventory/src/flightPackageEligibility.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageExclusion.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/flightPackageExclusion.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageExclusion.js +79 -0
- package/dist/packages/compiler-inventory/src/flightPackageExclusion.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportLane.d.ts +4 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportLane.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportLane.js +30 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportLane.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportManifest.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportManifest.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportManifest.js +90 -0
- package/dist/packages/compiler-inventory/src/flightPackageExportManifest.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageHostFacts.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/flightPackageHostFacts.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageHostFacts.js +33 -0
- package/dist/packages/compiler-inventory/src/flightPackageHostFacts.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageImport.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/flightPackageImport.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageImport.js +82 -0
- package/dist/packages/compiler-inventory/src/flightPackageImport.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageManifest.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/flightPackageManifest.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightPackageManifest.js +116 -0
- package/dist/packages/compiler-inventory/src/flightPackageManifest.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceCompilationInput.d.ts +4 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceCompilationInput.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceCompilationInput.js +315 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceCompilationInput.js.map +1 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceInventory.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceInventory.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceInventory.js +591 -0
- package/dist/packages/compiler-inventory/src/flightWorkspaceInventory.js.map +1 -0
- package/dist/packages/compiler-inventory/src/gitCheckoutRevision.d.ts +2 -0
- package/dist/packages/compiler-inventory/src/gitCheckoutRevision.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/gitCheckoutRevision.js +20 -0
- package/dist/packages/compiler-inventory/src/gitCheckoutRevision.js.map +1 -0
- package/dist/packages/compiler-inventory/src/index.d.ts +17 -0
- package/dist/packages/compiler-inventory/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/index.js +17 -0
- package/dist/packages/compiler-inventory/src/index.js.map +1 -0
- package/dist/packages/compiler-inventory/src/memoryWorkspaceSource.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/memoryWorkspaceSource.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/memoryWorkspaceSource.js +61 -0
- package/dist/packages/compiler-inventory/src/memoryWorkspaceSource.js.map +1 -0
- package/dist/packages/compiler-inventory/src/typeScriptHostEndpointInventory.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/typeScriptHostEndpointInventory.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/typeScriptHostEndpointInventory.js +138 -0
- package/dist/packages/compiler-inventory/src/typeScriptHostEndpointInventory.js.map +1 -0
- package/dist/packages/compiler-inventory/src/typeScriptProject.d.ts +3 -0
- package/dist/packages/compiler-inventory/src/typeScriptProject.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/typeScriptProject.js +28 -0
- package/dist/packages/compiler-inventory/src/typeScriptProject.js.map +1 -0
- package/dist/packages/compiler-inventory/src/typeScriptRuntimeBinding.d.ts +7 -0
- package/dist/packages/compiler-inventory/src/typeScriptRuntimeBinding.d.ts.map +1 -0
- package/dist/packages/compiler-inventory/src/typeScriptRuntimeBinding.js +67 -0
- package/dist/packages/compiler-inventory/src/typeScriptRuntimeBinding.js.map +1 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversal.d.ts +5 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversal.d.ts.map +1 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversal.js +469 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversal.js.map +1 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversalPath.d.ts +3 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversalPath.d.ts.map +1 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversalPath.js +14 -0
- package/dist/packages/compiler-ir-traversal/src/compilerIntermediateRepresentationTraversalPath.js.map +1 -0
- package/dist/packages/compiler-ir-traversal/src/index.d.ts +3 -0
- package/dist/packages/compiler-ir-traversal/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-ir-traversal/src/index.js +3 -0
- package/dist/packages/compiler-ir-traversal/src/index.js.map +1 -0
- package/dist/packages/compiler-ir-validation/src/compilerIrModuleStructure.d.ts +3 -0
- package/dist/packages/compiler-ir-validation/src/compilerIrModuleStructure.d.ts.map +1 -0
- package/dist/packages/compiler-ir-validation/src/compilerIrModuleStructure.js +1258 -0
- package/dist/packages/compiler-ir-validation/src/compilerIrModuleStructure.js.map +1 -0
- package/dist/packages/compiler-ir-validation/src/index.d.ts +2 -0
- package/dist/packages/compiler-ir-validation/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-ir-validation/src/index.js +2 -0
- package/dist/packages/compiler-ir-validation/src/index.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternLowering.js +717 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternPresence.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternPresence.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternPresence.js +162 -0
- package/dist/packages/compiler-lowering/src/compilerArrayBindingPatternPresence.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerAwaitConditionHoistingLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerAwaitConditionHoistingLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerAwaitConditionHoistingLowering.js +721 -0
- package/dist/packages/compiler-lowering/src/compilerAwaitConditionHoistingLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerBindingPatternLowering.d.ts +4 -0
- package/dist/packages/compiler-lowering/src/compilerBindingPatternLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerBindingPatternLowering.js +43 -0
- package/dist/packages/compiler-lowering/src/compilerBindingPatternLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerCStyleForLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerCStyleForLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerCStyleForLowering.js +591 -0
- package/dist/packages/compiler-lowering/src/compilerCStyleForLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerCatchAwaitHoistingLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerCatchAwaitHoistingLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerCatchAwaitHoistingLowering.js +244 -0
- package/dist/packages/compiler-lowering/src/compilerCatchAwaitHoistingLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerClassInitialization.d.ts +4 -0
- package/dist/packages/compiler-lowering/src/compilerClassInitialization.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerClassInitialization.js +102 -0
- package/dist/packages/compiler-lowering/src/compilerClassInitialization.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerExtraArgumentErasureLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerExtraArgumentErasureLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerExtraArgumentErasureLowering.js +156 -0
- package/dist/packages/compiler-lowering/src/compilerExtraArgumentErasureLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerFinallyAwaitHoistingLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerFinallyAwaitHoistingLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerFinallyAwaitHoistingLowering.js +255 -0
- package/dist/packages/compiler-lowering/src/compilerFinallyAwaitHoistingLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerInterfaceInheritanceLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerInterfaceInheritanceLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerInterfaceInheritanceLowering.js +1062 -0
- package/dist/packages/compiler-lowering/src/compilerInterfaceInheritanceLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerLoweringPass.d.ts +5 -0
- package/dist/packages/compiler-lowering/src/compilerLoweringPass.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerLoweringPass.js +133 -0
- package/dist/packages/compiler-lowering/src/compilerLoweringPass.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerObjectBindingPatternLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerObjectBindingPatternLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerObjectBindingPatternLowering.js +589 -0
- package/dist/packages/compiler-lowering/src/compilerObjectBindingPatternLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchClauseCompletion.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchClauseCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchClauseCompletion.js +71 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchClauseCompletion.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchFallthroughLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchFallthroughLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchFallthroughLowering.js +810 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchFallthroughLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchSuspensionLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchSuspensionLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchSuspensionLowering.js +226 -0
- package/dist/packages/compiler-lowering/src/compilerSwitchSuspensionLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingInitialization.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingInitialization.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingInitialization.js +724 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingInitialization.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingLowering.d.ts +3 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingLowering.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingLowering.js +797 -0
- package/dist/packages/compiler-lowering/src/compilerVariableHoistingLowering.js.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerVariableInitializationCompletion.d.ts +9 -0
- package/dist/packages/compiler-lowering/src/compilerVariableInitializationCompletion.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/compilerVariableInitializationCompletion.js +42 -0
- package/dist/packages/compiler-lowering/src/compilerVariableInitializationCompletion.js.map +1 -0
- package/dist/packages/compiler-lowering/src/index.d.ts +17 -0
- package/dist/packages/compiler-lowering/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-lowering/src/index.js +17 -0
- package/dist/packages/compiler-lowering/src/index.js.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleEvaluation.d.ts +4 -0
- package/dist/packages/compiler-module/src/compilerModuleEvaluation.d.ts.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleEvaluation.js +506 -0
- package/dist/packages/compiler-module/src/compilerModuleEvaluation.js.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeIdentity.d.ts +4 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeIdentity.d.ts.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeIdentity.js +182 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeIdentity.js.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeLowering.d.ts +4 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeLowering.d.ts.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeLowering.js +466 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeLowering.js.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeRequirement.d.ts +3 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeRequirement.d.ts.map +1 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeRequirement.js +28 -0
- package/dist/packages/compiler-module/src/compilerModuleFacadeRequirement.js.map +1 -0
- package/dist/packages/compiler-module/src/index.d.ts +5 -0
- package/dist/packages/compiler-module/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-module/src/index.js +5 -0
- package/dist/packages/compiler-module/src/index.js.map +1 -0
- package/dist/packages/compiler-orchestration/src/compilerOrchestration.d.ts +8 -0
- package/dist/packages/compiler-orchestration/src/compilerOrchestration.d.ts.map +1 -0
- package/dist/packages/compiler-orchestration/src/compilerOrchestration.js +161 -0
- package/dist/packages/compiler-orchestration/src/compilerOrchestration.js.map +1 -0
- package/dist/packages/compiler-orchestration/src/compilerPackageCompilation.d.ts +4 -0
- package/dist/packages/compiler-orchestration/src/compilerPackageCompilation.d.ts.map +1 -0
- package/dist/packages/compiler-orchestration/src/compilerPackageCompilation.js +745 -0
- package/dist/packages/compiler-orchestration/src/compilerPackageCompilation.js.map +1 -0
- package/dist/packages/compiler-orchestration/src/flightWorkspaceCompilation.d.ts +3 -0
- package/dist/packages/compiler-orchestration/src/flightWorkspaceCompilation.d.ts.map +1 -0
- package/dist/packages/compiler-orchestration/src/flightWorkspaceCompilation.js +14 -0
- package/dist/packages/compiler-orchestration/src/flightWorkspaceCompilation.js.map +1 -0
- package/dist/packages/compiler-orchestration/src/index.d.ts +4 -0
- package/dist/packages/compiler-orchestration/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-orchestration/src/index.js +4 -0
- package/dist/packages/compiler-orchestration/src/index.js.map +1 -0
- package/dist/packages/compiler-patch/src/compilerSemanticPatch.d.ts +6 -0
- package/dist/packages/compiler-patch/src/compilerSemanticPatch.d.ts.map +1 -0
- package/dist/packages/compiler-patch/src/compilerSemanticPatch.js +316 -0
- package/dist/packages/compiler-patch/src/compilerSemanticPatch.js.map +1 -0
- package/dist/packages/compiler-patch/src/index.d.ts +2 -0
- package/dist/packages/compiler-patch/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-patch/src/index.js +2 -0
- package/dist/packages/compiler-patch/src/index.js.map +1 -0
- package/dist/packages/compiler-provenance/src/index.d.ts +2 -0
- package/dist/packages/compiler-provenance/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-provenance/src/index.js +2 -0
- package/dist/packages/compiler-provenance/src/index.js.map +1 -0
- package/dist/packages/compiler-provenance/src/sourceFingerprint.d.ts +7 -0
- package/dist/packages/compiler-provenance/src/sourceFingerprint.d.ts.map +1 -0
- package/dist/packages/compiler-provenance/src/sourceFingerprint.js +58 -0
- package/dist/packages/compiler-provenance/src/sourceFingerprint.js.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorAbiCompleteness.d.ts +4 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorAbiCompleteness.d.ts.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorAbiCompleteness.js +110 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorAbiCompleteness.js.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorReachability.d.ts +3 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorReachability.d.ts.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorReachability.js +42 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalConstructorReachability.js.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolCompleteness.d.ts +4 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolCompleteness.d.ts.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolCompleteness.js +64 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolCompleteness.js.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolReachability.d.ts +3 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolReachability.d.ts.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolReachability.js +89 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeExternalSymbolReachability.js.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeTaskCapability.d.ts +6 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeTaskCapability.d.ts.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeTaskCapability.js +247 -0
- package/dist/packages/compiler-runtime-contract/src/compilerRuntimeTaskCapability.js.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/index.d.ts +6 -0
- package/dist/packages/compiler-runtime-contract/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-runtime-contract/src/index.js +6 -0
- package/dist/packages/compiler-runtime-contract/src/index.js.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerIrStaticFacts.d.ts +4 -0
- package/dist/packages/compiler-semantic/src/compilerIrStaticFacts.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerIrStaticFacts.js +396 -0
- package/dist/packages/compiler-semantic/src/compilerIrStaticFacts.js.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerIrTypeMemberEvidence.d.ts +4 -0
- package/dist/packages/compiler-semantic/src/compilerIrTypeMemberEvidence.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerIrTypeMemberEvidence.js +63 -0
- package/dist/packages/compiler-semantic/src/compilerIrTypeMemberEvidence.js.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerOperatorDomainEvidence.d.ts +4 -0
- package/dist/packages/compiler-semantic/src/compilerOperatorDomainEvidence.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerOperatorDomainEvidence.js +76 -0
- package/dist/packages/compiler-semantic/src/compilerOperatorDomainEvidence.js.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerStaticNumericArithmetic.d.ts +7 -0
- package/dist/packages/compiler-semantic/src/compilerStaticNumericArithmetic.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerStaticNumericArithmetic.js +107 -0
- package/dist/packages/compiler-semantic/src/compilerStaticNumericArithmetic.js.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptForInKeyEvidence.d.ts +4 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptForInKeyEvidence.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptForInKeyEvidence.js +159 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptForInKeyEvidence.js.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptInvocationSemantics.d.ts +4 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptInvocationSemantics.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptInvocationSemantics.js +31 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptInvocationSemantics.js.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptSyntacticTypeEvidence.d.ts +8 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptSyntacticTypeEvidence.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptSyntacticTypeEvidence.js +83 -0
- package/dist/packages/compiler-semantic/src/compilerTypeScriptSyntacticTypeEvidence.js.map +1 -0
- package/dist/packages/compiler-semantic/src/index.d.ts +4 -0
- package/dist/packages/compiler-semantic/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/index.js +4 -0
- package/dist/packages/compiler-semantic/src/index.js.map +1 -0
- package/dist/packages/compiler-semantic/src/typeScriptSemanticLowering.d.ts +6 -0
- package/dist/packages/compiler-semantic/src/typeScriptSemanticLowering.d.ts.map +1 -0
- package/dist/packages/compiler-semantic/src/typeScriptSemanticLowering.js +8158 -0
- package/dist/packages/compiler-semantic/src/typeScriptSemanticLowering.js.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCompatibility.d.ts +5 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCompatibility.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCompatibility.js +500 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCompatibility.js.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCopySemantics.d.ts +3 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCopySemantics.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCopySemantics.js +11 -0
- package/dist/packages/compiler-structural/src/compilerStructuralObjectCopySemantics.js.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeAssignability.d.ts +4 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeAssignability.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeAssignability.js +261 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeAssignability.js.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeIdentity.d.ts +4 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeIdentity.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeIdentity.js +168 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeIdentity.js.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeInventory.d.ts +3 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeInventory.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeInventory.js +50 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeShapeInventory.js.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeSubstitution.d.ts +5 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeSubstitution.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeSubstitution.js +224 -0
- package/dist/packages/compiler-structural/src/compilerStructuralTypeSubstitution.js.map +1 -0
- package/dist/packages/compiler-structural/src/compilerTypeValueIdentityAnalysis.d.ts +4 -0
- package/dist/packages/compiler-structural/src/compilerTypeValueIdentityAnalysis.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/compilerTypeValueIdentityAnalysis.js +592 -0
- package/dist/packages/compiler-structural/src/compilerTypeValueIdentityAnalysis.js.map +1 -0
- package/dist/packages/compiler-structural/src/index.d.ts +8 -0
- package/dist/packages/compiler-structural/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-structural/src/index.js +8 -0
- package/dist/packages/compiler-structural/src/index.js.map +1 -0
- package/dist/packages/compiler-task/src/compilerAsyncStateMachine.d.ts +3 -0
- package/dist/packages/compiler-task/src/compilerAsyncStateMachine.d.ts.map +1 -0
- package/dist/packages/compiler-task/src/compilerAsyncStateMachine.js +785 -0
- package/dist/packages/compiler-task/src/compilerAsyncStateMachine.js.map +1 -0
- package/dist/packages/compiler-task/src/compilerAsyncTaskInventory.d.ts +3 -0
- package/dist/packages/compiler-task/src/compilerAsyncTaskInventory.d.ts.map +1 -0
- package/dist/packages/compiler-task/src/compilerAsyncTaskInventory.js +182 -0
- package/dist/packages/compiler-task/src/compilerAsyncTaskInventory.js.map +1 -0
- package/dist/packages/compiler-task/src/compilerTaskOperationSemantics.d.ts +4 -0
- package/dist/packages/compiler-task/src/compilerTaskOperationSemantics.d.ts.map +1 -0
- package/dist/packages/compiler-task/src/compilerTaskOperationSemantics.js +101 -0
- package/dist/packages/compiler-task/src/compilerTaskOperationSemantics.js.map +1 -0
- package/dist/packages/compiler-task/src/index.d.ts +4 -0
- package/dist/packages/compiler-task/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-task/src/index.js +4 -0
- package/dist/packages/compiler-task/src/index.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerAccessSemanticIntermediateRepresentation.d.ts +79 -0
- package/dist/packages/compiler-types/src/compilerAccessSemanticIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerAccessSemanticIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerAccessSemanticIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerAmbientMemberBindingContract.d.ts +87 -0
- package/dist/packages/compiler-types/src/compilerAmbientMemberBindingContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerAmbientMemberBindingContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerAmbientMemberBindingContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerAsyncStateMachineContract.d.ts +126 -0
- package/dist/packages/compiler-types/src/compilerAsyncStateMachineContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerAsyncStateMachineContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerAsyncStateMachineContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskCompletionContract.d.ts +32 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskCompletionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskCompletionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskCompletionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskInventoryContract.d.ts +63 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskInventoryContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskInventoryContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerAsyncTaskInventoryContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerBackendContract.d.ts +183 -0
- package/dist/packages/compiler-types/src/compilerBackendContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerBackendContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerBackendContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerBindingIntermediateRepresentation.d.ts +46 -0
- package/dist/packages/compiler-types/src/compilerBindingIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerBindingIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerBindingIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerBindingPatternIntermediateRepresentation.d.ts +43 -0
- package/dist/packages/compiler-types/src/compilerBindingPatternIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerBindingPatternIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerBindingPatternIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerCatchCompletionContract.d.ts +23 -0
- package/dist/packages/compiler-types/src/compilerCatchCompletionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerCatchCompletionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerCatchCompletionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerClassInitializationContract.d.ts +30 -0
- package/dist/packages/compiler-types/src/compilerClassInitializationContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerClassInitializationContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerClassInitializationContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerClosureEvidenceContract.d.ts +60 -0
- package/dist/packages/compiler-types/src/compilerClosureEvidenceContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerClosureEvidenceContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerClosureEvidenceContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerCommandLineContract.d.ts +79 -0
- package/dist/packages/compiler-types/src/compilerCommandLineContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerCommandLineContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerCommandLineContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerCompletionContract.d.ts +25 -0
- package/dist/packages/compiler-types/src/compilerCompletionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerCompletionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerCompletionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerCppClosureCaptureContract.d.ts +21 -0
- package/dist/packages/compiler-types/src/compilerCppClosureCaptureContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerCppClosureCaptureContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerCppClosureCaptureContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerCppReferenceRepresentationContract.d.ts +74 -0
- package/dist/packages/compiler-types/src/compilerCppReferenceRepresentationContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerCppReferenceRepresentationContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerCppReferenceRepresentationContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerDeclarationIntermediateRepresentation.d.ts +113 -0
- package/dist/packages/compiler-types/src/compilerDeclarationIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerDeclarationIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerDeclarationIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerDependentCallablePackContract.d.ts +11 -0
- package/dist/packages/compiler-types/src/compilerDependentCallablePackContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerDependentCallablePackContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerDependentCallablePackContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerDiagnosticContract.d.ts +11 -0
- package/dist/packages/compiler-types/src/compilerDiagnosticContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerDiagnosticContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerDiagnosticContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerEmittedSourceSyntaxContract.d.ts +28 -0
- package/dist/packages/compiler-types/src/compilerEmittedSourceSyntaxContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerEmittedSourceSyntaxContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerEmittedSourceSyntaxContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerExecutableIntermediateRepresentation.d.ts +343 -0
- package/dist/packages/compiler-types/src/compilerExecutableIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerExecutableIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerExecutableIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerFlightWorkspaceContract.d.ts +26 -0
- package/dist/packages/compiler-types/src/compilerFlightWorkspaceContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerFlightWorkspaceContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerFlightWorkspaceContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskEmissionContract.d.ts +12 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskEmissionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskEmissionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskEmissionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskLoweringContract.d.ts +119 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskLoweringContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskLoweringContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerHaxeTaskLoweringContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerHostEndpointContract.d.ts +27 -0
- package/dist/packages/compiler-types/src/compilerHostEndpointContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerHostEndpointContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerHostEndpointContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerInvariantContract.d.ts +7 -0
- package/dist/packages/compiler-types/src/compilerInvariantContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerInvariantContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerInvariantContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerInventoryContract.d.ts +186 -0
- package/dist/packages/compiler-types/src/compilerInventoryContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerInventoryContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerInventoryContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerIrValidationContract.d.ts +13 -0
- package/dist/packages/compiler-types/src/compilerIrValidationContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerIrValidationContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerIrValidationContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerLoweringContract.d.ts +32 -0
- package/dist/packages/compiler-types/src/compilerLoweringContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerLoweringContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerLoweringContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleEvaluationContract.d.ts +84 -0
- package/dist/packages/compiler-types/src/compilerModuleEvaluationContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleEvaluationContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerModuleEvaluationContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleFacadeContract.d.ts +78 -0
- package/dist/packages/compiler-types/src/compilerModuleFacadeContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleFacadeContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerModuleFacadeContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleIntermediateRepresentation.d.ts +53 -0
- package/dist/packages/compiler-types/src/compilerModuleIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerModuleIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleResolutionContract.d.ts +20 -0
- package/dist/packages/compiler-types/src/compilerModuleResolutionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerModuleResolutionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerModuleResolutionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerOperatorIntermediateRepresentation.d.ts +5 -0
- package/dist/packages/compiler-types/src/compilerOperatorIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerOperatorIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerOperatorIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerOperatorSemanticIntermediateRepresentation.d.ts +34 -0
- package/dist/packages/compiler-types/src/compilerOperatorSemanticIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerOperatorSemanticIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerOperatorSemanticIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerOrchestrationContract.d.ts +43 -0
- package/dist/packages/compiler-types/src/compilerOrchestrationContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerOrchestrationContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerOrchestrationContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerPackageCheckContract.d.ts +96 -0
- package/dist/packages/compiler-types/src/compilerPackageCheckContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerPackageCheckContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerPackageCheckContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerPackageCompilationContract.d.ts +108 -0
- package/dist/packages/compiler-types/src/compilerPackageCompilationContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerPackageCompilationContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerPackageCompilationContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerRefusalClassificationContract.d.ts +3 -0
- package/dist/packages/compiler-types/src/compilerRefusalClassificationContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerRefusalClassificationContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerRefusalClassificationContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerRuntimeContract.d.ts +122 -0
- package/dist/packages/compiler-types/src/compilerRuntimeContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerRuntimeContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerRuntimeContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerRuntimeTaskCapabilityContract.d.ts +96 -0
- package/dist/packages/compiler-types/src/compilerRuntimeTaskCapabilityContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerRuntimeTaskCapabilityContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerRuntimeTaskCapabilityContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerRustOwnershipContract.d.ts +25 -0
- package/dist/packages/compiler-types/src/compilerRustOwnershipContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerRustOwnershipContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerRustOwnershipContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerSemanticPatchContract.d.ts +80 -0
- package/dist/packages/compiler-types/src/compilerSemanticPatchContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerSemanticPatchContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerSemanticPatchContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerSourceFingerprint.d.ts +2 -0
- package/dist/packages/compiler-types/src/compilerSourceFingerprint.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerSourceFingerprint.js +2 -0
- package/dist/packages/compiler-types/src/compilerSourceFingerprint.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerSourceIdentity.d.ts +21 -0
- package/dist/packages/compiler-types/src/compilerSourceIdentity.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerSourceIdentity.js +2 -0
- package/dist/packages/compiler-types/src/compilerSourceIdentity.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerStatementCompletionContract.d.ts +7 -0
- package/dist/packages/compiler-types/src/compilerStatementCompletionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerStatementCompletionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerStatementCompletionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerStaticFactContract.d.ts +71 -0
- package/dist/packages/compiler-types/src/compilerStaticFactContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerStaticFactContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerStaticFactContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralObjectCompatibilityContract.d.ts +18 -0
- package/dist/packages/compiler-types/src/compilerStructuralObjectCompatibilityContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralObjectCompatibilityContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerStructuralObjectCompatibilityContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeAssignabilityContract.d.ts +20 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeAssignabilityContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeAssignabilityContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeAssignabilityContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeShapeContract.d.ts +22 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeShapeContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeShapeContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeShapeContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeSubstitutionContract.d.ts +17 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeSubstitutionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeSubstitutionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerStructuralTypeSubstitutionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerTargetCompilationSmokeContract.d.ts +26 -0
- package/dist/packages/compiler-types/src/compilerTargetCompilationSmokeContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerTargetCompilationSmokeContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerTargetCompilationSmokeContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerTargetNamingContract.d.ts +27 -0
- package/dist/packages/compiler-types/src/compilerTargetNamingContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerTargetNamingContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerTargetNamingContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerTaskOperationSemanticsContract.d.ts +65 -0
- package/dist/packages/compiler-types/src/compilerTaskOperationSemanticsContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerTaskOperationSemanticsContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerTaskOperationSemanticsContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerTraversalObserverContract.d.ts +29 -0
- package/dist/packages/compiler-types/src/compilerTraversalObserverContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerTraversalObserverContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerTraversalObserverContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerTypeIntermediateRepresentation.d.ts +99 -0
- package/dist/packages/compiler-types/src/compilerTypeIntermediateRepresentation.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerTypeIntermediateRepresentation.js +2 -0
- package/dist/packages/compiler-types/src/compilerTypeIntermediateRepresentation.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerTypeScriptContract.d.ts +39 -0
- package/dist/packages/compiler-types/src/compilerTypeScriptContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerTypeScriptContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerTypeScriptContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerTypeValueIdentityContract.d.ts +14 -0
- package/dist/packages/compiler-types/src/compilerTypeValueIdentityContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerTypeValueIdentityContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerTypeValueIdentityContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerValueCompletionContract.d.ts +46 -0
- package/dist/packages/compiler-types/src/compilerValueCompletionContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerValueCompletionContract.js +2 -0
- package/dist/packages/compiler-types/src/compilerValueCompletionContract.js.map +1 -0
- package/dist/packages/compiler-types/src/compilerWorkspaceSourceContract.d.ts +11 -0
- package/dist/packages/compiler-types/src/compilerWorkspaceSourceContract.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/compilerWorkspaceSourceContract.js +12 -0
- package/dist/packages/compiler-types/src/compilerWorkspaceSourceContract.js.map +1 -0
- package/dist/packages/compiler-types/src/index.d.ts +60 -0
- package/dist/packages/compiler-types/src/index.d.ts.map +1 -0
- package/dist/packages/compiler-types/src/index.js +2 -0
- package/dist/packages/compiler-types/src/index.js.map +1 -0
- package/dist/packages/tool-compiler/src/index.d.ts +24 -0
- package/dist/packages/tool-compiler/src/index.d.ts.map +1 -0
- package/dist/packages/tool-compiler/src/index.js +23 -0
- package/dist/packages/tool-compiler/src/index.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,797 @@
|
|
|
1
|
+
import { normalizeCompilerStructuralValueCanonical } from '../../compiler-canonical-form/src/index.js';
|
|
2
|
+
import { createCompilerLoweringFailure } from './compilerLoweringPass.js';
|
|
3
|
+
import { validateIrFunctionVariableInitialization } from './compilerVariableHoistingInitialization.js';
|
|
4
|
+
export function createCompilerLoweringPassVariableHoisting() {
|
|
5
|
+
return {
|
|
6
|
+
idempotent: true,
|
|
7
|
+
lowerIrModule(module) {
|
|
8
|
+
return hasIrModuleVariableHoistingResidual(module) ? lowerIrModuleVariableHoisting(module) : module;
|
|
9
|
+
},
|
|
10
|
+
name: compilerLoweringPassNameVariableHoisting,
|
|
11
|
+
runsAfter: ['binding-pattern'],
|
|
12
|
+
verifyIrModule(module) {
|
|
13
|
+
return hasIrModuleVariableHoistingResidual(module)
|
|
14
|
+
? { kind: 'invalid', reason: 'function-scoped variable declaration remains outside its hoisted prefix' }
|
|
15
|
+
: { kind: 'valid' };
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function addIrVariableHoistingDeclaration(variable, analysis) {
|
|
20
|
+
if (!variable.mutable) {
|
|
21
|
+
throw createCompilerLoweringFailure('unsupported-ir', compilerLoweringPassNameVariableHoisting, analysis.sourceIdentity, `function-scoped variable ${variable.binding.name} must be mutable`);
|
|
22
|
+
}
|
|
23
|
+
const existing = analysis.hoisted.get(variable.binding.id);
|
|
24
|
+
if (existing) {
|
|
25
|
+
if (normalizeCompilerStructuralValueCanonical(existing.type) !==
|
|
26
|
+
normalizeCompilerStructuralValueCanonical(variable.type)) {
|
|
27
|
+
throw createCompilerLoweringFailure('unsupported-ir', compilerLoweringPassNameVariableHoisting, analysis.sourceIdentity, `function-scoped variable ${variable.binding.name} has inconsistent redeclaration types`);
|
|
28
|
+
}
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
analysis.hoisted.set(variable.binding.id, {
|
|
32
|
+
binding: variable.binding,
|
|
33
|
+
initialValue: hasIrTypeUndefinedVariableHoisting(variable.type) ? 'undefined' : 'uninitialized',
|
|
34
|
+
mutable: true,
|
|
35
|
+
...(variable.type ? { type: variable.type } : {}),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function hasIrTypeUndefinedVariableHoisting(type) {
|
|
39
|
+
return (type?.kind === 'undefined' ||
|
|
40
|
+
(type?.kind === 'primitive' && type.name === 'void') ||
|
|
41
|
+
(type?.kind === 'union' && type.types.some(hasIrTypeUndefinedVariableHoisting)));
|
|
42
|
+
}
|
|
43
|
+
function collapseIrStatementsVariableHoisting(statements) {
|
|
44
|
+
return statements.length === 1 ? statements[0] : { kind: 'block', statements };
|
|
45
|
+
}
|
|
46
|
+
function createIrVariableHoistingAssignment(variable, initializer) {
|
|
47
|
+
const domain = getIrTypeVariableHoistingDomain(variable.type);
|
|
48
|
+
return {
|
|
49
|
+
expression: {
|
|
50
|
+
kind: 'assignment',
|
|
51
|
+
left: { kind: 'identifier', reference: { binding: variable.binding, kind: 'binding' } },
|
|
52
|
+
operator: '=',
|
|
53
|
+
right: initializer,
|
|
54
|
+
semantics: {
|
|
55
|
+
left: { declared: domain, flow: domain },
|
|
56
|
+
result: domain,
|
|
57
|
+
right: { declared: domain, flow: domain },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
kind: 'expression',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function createIrVariableHoistingIterationCarrier(variable, analysis) {
|
|
64
|
+
const index = analysis.iterationCarrierCount;
|
|
65
|
+
analysis.iterationCarrierCount += 1;
|
|
66
|
+
const binding = {
|
|
67
|
+
...variable.binding,
|
|
68
|
+
id: `binding:${JSON.stringify([
|
|
69
|
+
variable.binding.packageName,
|
|
70
|
+
variable.binding.source,
|
|
71
|
+
variable.binding.id,
|
|
72
|
+
'variable-hoisting-iteration',
|
|
73
|
+
index,
|
|
74
|
+
])}`,
|
|
75
|
+
name: 'variableHoistingIterationValue',
|
|
76
|
+
scope: 'block',
|
|
77
|
+
};
|
|
78
|
+
return {
|
|
79
|
+
binding,
|
|
80
|
+
mutable: false,
|
|
81
|
+
...(variable.type ? { type: variable.type } : {}),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function getIrTypeVariableHoistingDomain(type) {
|
|
85
|
+
if (!type)
|
|
86
|
+
return 'unknown';
|
|
87
|
+
switch (type.kind) {
|
|
88
|
+
case 'array':
|
|
89
|
+
case 'function':
|
|
90
|
+
case 'object':
|
|
91
|
+
case 'tuple':
|
|
92
|
+
return 'object';
|
|
93
|
+
case 'literal':
|
|
94
|
+
return typeof type.value === 'boolean' ? 'boolean' : typeof type.value === 'number' ? 'number' : 'string';
|
|
95
|
+
case 'null':
|
|
96
|
+
return 'null';
|
|
97
|
+
case 'primitive':
|
|
98
|
+
return type.name === 'void' ? 'undefined' : type.name;
|
|
99
|
+
case 'undefined':
|
|
100
|
+
return 'undefined';
|
|
101
|
+
case 'union': {
|
|
102
|
+
const domains = new Set(type.types.map(getIrTypeVariableHoistingDomain));
|
|
103
|
+
return domains.size === 1 ? [...domains][0] : 'unknown';
|
|
104
|
+
}
|
|
105
|
+
case 'indexedAccess':
|
|
106
|
+
case 'conditionalFacet':
|
|
107
|
+
case 'intersection':
|
|
108
|
+
case 'keyof':
|
|
109
|
+
case 'named':
|
|
110
|
+
case 'never':
|
|
111
|
+
case 'typeOf':
|
|
112
|
+
case 'unknown':
|
|
113
|
+
return 'unknown';
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function hasIrExpressionVariableHoistingResidual(expression) {
|
|
117
|
+
if (expression.kind === 'function') {
|
|
118
|
+
return (expression.parameters.some((parameter) => parameter.initializer ? hasIrExpressionVariableHoistingResidual(parameter.initializer) : false) ||
|
|
119
|
+
hasIrFunctionBodyVariableHoistingResidual(expression.body) ||
|
|
120
|
+
(expression.expression ? hasIrExpressionVariableHoistingResidual(expression.expression) : false));
|
|
121
|
+
}
|
|
122
|
+
let residual = false;
|
|
123
|
+
visitIrExpressionChildrenVariableHoisting(expression, (child) => {
|
|
124
|
+
residual ||= hasIrExpressionVariableHoistingResidual(child);
|
|
125
|
+
});
|
|
126
|
+
return residual;
|
|
127
|
+
}
|
|
128
|
+
function hasIrFunctionBodyVariableHoistingResidual(body) {
|
|
129
|
+
const [prefix, ...rest] = body;
|
|
130
|
+
const validPrefix = prefix?.kind === 'variable' &&
|
|
131
|
+
prefix.declarations.length > 0 &&
|
|
132
|
+
prefix.declarations.every((variable) => !('pattern' in variable) &&
|
|
133
|
+
variable.binding.scope === 'function' &&
|
|
134
|
+
(variable.initialValue === 'uninitialized' || variable.initialValue === 'undefined') &&
|
|
135
|
+
variable.initializer === undefined);
|
|
136
|
+
const statements = validPrefix ? rest : body;
|
|
137
|
+
return statements.some(hasIrStatementVariableHoistingResidual);
|
|
138
|
+
}
|
|
139
|
+
function hasIrModuleVariableHoistingResidual(module) {
|
|
140
|
+
return (module.declarations.some(hasIrDeclarationVariableHoistingResidual) ||
|
|
141
|
+
module.exports.some((exported) => exported.kind === 'default' && hasIrExpressionVariableHoistingResidual(exported.expression)));
|
|
142
|
+
}
|
|
143
|
+
function hasIrDeclarationVariableHoistingResidual(declaration) {
|
|
144
|
+
switch (declaration.kind) {
|
|
145
|
+
case 'class':
|
|
146
|
+
return (declaration.fields.some((field) => field.initializer && hasIrExpressionVariableHoistingResidual(field.initializer)) ||
|
|
147
|
+
(declaration.classConstructor
|
|
148
|
+
? declaration.classConstructor.parameters.some(hasIrParameterVariableHoistingResidual) ||
|
|
149
|
+
hasIrFunctionBodyVariableHoistingResidual(declaration.classConstructor.body)
|
|
150
|
+
: false) ||
|
|
151
|
+
declaration.methods.some((method) => method.parameters.some(hasIrParameterVariableHoistingResidual) ||
|
|
152
|
+
hasIrFunctionBodyVariableHoistingResidual(method.body)));
|
|
153
|
+
case 'function':
|
|
154
|
+
return (declaration.parameters.some(hasIrParameterVariableHoistingResidual) ||
|
|
155
|
+
declaration.overloads.some((overload) => overload.parameters.some(hasIrParameterVariableHoistingResidual)) ||
|
|
156
|
+
hasIrFunctionBodyVariableHoistingResidual(declaration.body));
|
|
157
|
+
case 'variable':
|
|
158
|
+
return declaration.initializer ? hasIrExpressionVariableHoistingResidual(declaration.initializer) : false;
|
|
159
|
+
case 'enum':
|
|
160
|
+
case 'interface':
|
|
161
|
+
case 'typeAlias':
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function hasIrParameterVariableHoistingResidual(parameter) {
|
|
166
|
+
return parameter.initializer ? hasIrExpressionVariableHoistingResidual(parameter.initializer) : false;
|
|
167
|
+
}
|
|
168
|
+
function hasIrStatementVariableHoistingResidual(statement) {
|
|
169
|
+
switch (statement.kind) {
|
|
170
|
+
case 'block':
|
|
171
|
+
return statement.statements.some(hasIrStatementVariableHoistingResidual);
|
|
172
|
+
case 'do':
|
|
173
|
+
case 'while':
|
|
174
|
+
return (hasIrStatementVariableHoistingResidual(statement.body) ||
|
|
175
|
+
hasIrExpressionVariableHoistingResidual(statement.condition));
|
|
176
|
+
case 'expression':
|
|
177
|
+
case 'throw':
|
|
178
|
+
return hasIrExpressionVariableHoistingResidual(statement.expression);
|
|
179
|
+
case 'for':
|
|
180
|
+
return ((Array.isArray(statement.initializer)
|
|
181
|
+
? statement.initializer.some(hasIrVariableVariableHoistingResidual)
|
|
182
|
+
: statement.initializer
|
|
183
|
+
? hasIrExpressionVariableHoistingResidual(statement.initializer)
|
|
184
|
+
: false) ||
|
|
185
|
+
(statement.condition ? hasIrExpressionVariableHoistingResidual(statement.condition) : false) ||
|
|
186
|
+
(statement.increment ? hasIrExpressionVariableHoistingResidual(statement.increment) : false) ||
|
|
187
|
+
hasIrStatementVariableHoistingResidual(statement.body));
|
|
188
|
+
case 'forIn':
|
|
189
|
+
return (hasIrVariableVariableHoistingResidual(statement.variable) ||
|
|
190
|
+
hasIrExpressionVariableHoistingResidual(statement.object) ||
|
|
191
|
+
hasIrStatementVariableHoistingResidual(statement.body));
|
|
192
|
+
case 'forOf':
|
|
193
|
+
return (hasIrVariableVariableHoistingResidual(statement.variable) ||
|
|
194
|
+
hasIrExpressionVariableHoistingResidual(statement.iterable) ||
|
|
195
|
+
hasIrStatementVariableHoistingResidual(statement.body));
|
|
196
|
+
case 'if':
|
|
197
|
+
return (hasIrExpressionVariableHoistingResidual(statement.condition) ||
|
|
198
|
+
hasIrStatementVariableHoistingResidual(statement.consequent) ||
|
|
199
|
+
(statement.otherwise ? hasIrStatementVariableHoistingResidual(statement.otherwise) : false));
|
|
200
|
+
case 'return':
|
|
201
|
+
return statement.expression ? hasIrExpressionVariableHoistingResidual(statement.expression) : false;
|
|
202
|
+
case 'switch':
|
|
203
|
+
return (hasIrExpressionVariableHoistingResidual(statement.expression) ||
|
|
204
|
+
statement.cases.some((switchCase) => (switchCase.expression ? hasIrExpressionVariableHoistingResidual(switchCase.expression) : false) ||
|
|
205
|
+
switchCase.statements.some(hasIrStatementVariableHoistingResidual)));
|
|
206
|
+
case 'try':
|
|
207
|
+
return (hasIrStatementVariableHoistingResidual(statement.tryBody) ||
|
|
208
|
+
(statement.catchClause ? hasIrStatementVariableHoistingResidual(statement.catchClause.body) : false) ||
|
|
209
|
+
(statement.finallyBody ? hasIrStatementVariableHoistingResidual(statement.finallyBody) : false));
|
|
210
|
+
case 'variable':
|
|
211
|
+
return statement.declarations.some(hasIrVariableVariableHoistingResidual);
|
|
212
|
+
case 'break':
|
|
213
|
+
case 'continue':
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function hasIrVariableVariableHoistingResidual(variable) {
|
|
218
|
+
return (('pattern' in variable
|
|
219
|
+
? hasIrBindingPatternVariableHoistingResidual(variable.pattern)
|
|
220
|
+
: variable.binding.scope === 'function') ||
|
|
221
|
+
(variable.initializer ? hasIrExpressionVariableHoistingResidual(variable.initializer) : false));
|
|
222
|
+
}
|
|
223
|
+
function hasIrBindingPatternVariableHoistingResidual(pattern) {
|
|
224
|
+
if (pattern.kind === 'binding')
|
|
225
|
+
return pattern.binding.scope === 'function';
|
|
226
|
+
if (pattern.kind === 'object') {
|
|
227
|
+
return (pattern.properties.some((property) => (property.key.kind === 'computed' && hasIrExpressionVariableHoistingResidual(property.key.expression)) ||
|
|
228
|
+
hasIrBindingPatternVariableHoistingResidual(property.pattern) ||
|
|
229
|
+
(property.initializer ? hasIrExpressionVariableHoistingResidual(property.initializer) : false)) || (pattern.rest ? hasIrBindingPatternVariableHoistingResidual(pattern.rest) : false));
|
|
230
|
+
}
|
|
231
|
+
return (pattern.elements.some((element) => element !== undefined &&
|
|
232
|
+
(hasIrBindingPatternVariableHoistingResidual(element.pattern) ||
|
|
233
|
+
(element.initializer ? hasIrExpressionVariableHoistingResidual(element.initializer) : false))) || (pattern.rest ? hasIrBindingPatternVariableHoistingResidual(pattern.rest) : false));
|
|
234
|
+
}
|
|
235
|
+
function lowerIrBindingPatternVariableHoisting(pattern, analysis) {
|
|
236
|
+
if (pattern.kind === 'binding')
|
|
237
|
+
return pattern;
|
|
238
|
+
if (pattern.kind === 'object') {
|
|
239
|
+
return {
|
|
240
|
+
...pattern,
|
|
241
|
+
properties: pattern.properties.map((property) => ({
|
|
242
|
+
...property,
|
|
243
|
+
...(property.initializer
|
|
244
|
+
? { initializer: lowerIrExpressionVariableHoisting(property.initializer, analysis) }
|
|
245
|
+
: {}),
|
|
246
|
+
key: property.key.kind === 'computed'
|
|
247
|
+
? {
|
|
248
|
+
...property.key,
|
|
249
|
+
expression: lowerIrExpressionVariableHoisting(property.key.expression, analysis),
|
|
250
|
+
}
|
|
251
|
+
: property.key,
|
|
252
|
+
pattern: lowerIrBindingPatternVariableHoisting(property.pattern, analysis),
|
|
253
|
+
})),
|
|
254
|
+
...(pattern.rest ? { rest: lowerIrBindingPatternVariableHoisting(pattern.rest, analysis) } : {}),
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
return {
|
|
258
|
+
...pattern,
|
|
259
|
+
elements: pattern.elements.map((element) => element
|
|
260
|
+
? {
|
|
261
|
+
...element,
|
|
262
|
+
...(element.initializer
|
|
263
|
+
? { initializer: lowerIrExpressionVariableHoisting(element.initializer, analysis) }
|
|
264
|
+
: {}),
|
|
265
|
+
pattern: lowerIrBindingPatternVariableHoisting(element.pattern, analysis),
|
|
266
|
+
}
|
|
267
|
+
: undefined),
|
|
268
|
+
...(pattern.rest ? { rest: lowerIrBindingPatternVariableHoisting(pattern.rest, analysis) } : {}),
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
function lowerIrDeclarationVariableHoisting(declaration, sourceIdentity) {
|
|
272
|
+
switch (declaration.kind) {
|
|
273
|
+
case 'class':
|
|
274
|
+
return {
|
|
275
|
+
...declaration,
|
|
276
|
+
...(declaration.classConstructor
|
|
277
|
+
? {
|
|
278
|
+
classConstructor: {
|
|
279
|
+
...declaration.classConstructor,
|
|
280
|
+
body: lowerIrFunctionBodyVariableHoisting(declaration.classConstructor.body, sourceIdentity),
|
|
281
|
+
parameters: declaration.classConstructor.parameters.map((parameter) => lowerIrParameterVariableHoisting(parameter, sourceIdentity)),
|
|
282
|
+
},
|
|
283
|
+
}
|
|
284
|
+
: {}),
|
|
285
|
+
fields: declaration.fields.map((field) => field.parameterProperty
|
|
286
|
+
? field
|
|
287
|
+
: {
|
|
288
|
+
...field,
|
|
289
|
+
...(field.initializer
|
|
290
|
+
? {
|
|
291
|
+
initializer: lowerIrExpressionVariableHoisting(field.initializer, {
|
|
292
|
+
hoisted: new Map(),
|
|
293
|
+
iterationCarrierCount: 0,
|
|
294
|
+
sourceIdentity,
|
|
295
|
+
}),
|
|
296
|
+
}
|
|
297
|
+
: {}),
|
|
298
|
+
}),
|
|
299
|
+
methods: declaration.methods.map((method) => ({
|
|
300
|
+
...method,
|
|
301
|
+
body: lowerIrFunctionBodyVariableHoisting(method.body, sourceIdentity),
|
|
302
|
+
parameters: method.parameters.map((parameter) => lowerIrParameterVariableHoisting(parameter, sourceIdentity)),
|
|
303
|
+
})),
|
|
304
|
+
};
|
|
305
|
+
case 'function':
|
|
306
|
+
return {
|
|
307
|
+
...declaration,
|
|
308
|
+
body: lowerIrFunctionBodyVariableHoisting(declaration.body, sourceIdentity),
|
|
309
|
+
overloads: declaration.overloads.map((overload) => ({
|
|
310
|
+
...overload,
|
|
311
|
+
parameters: overload.parameters.map((parameter) => lowerIrParameterVariableHoisting(parameter, sourceIdentity)),
|
|
312
|
+
})),
|
|
313
|
+
parameters: declaration.parameters.map((parameter) => lowerIrParameterVariableHoisting(parameter, sourceIdentity)),
|
|
314
|
+
};
|
|
315
|
+
case 'variable':
|
|
316
|
+
return declaration.initializer
|
|
317
|
+
? {
|
|
318
|
+
...declaration,
|
|
319
|
+
initializer: lowerIrExpressionVariableHoisting(declaration.initializer, {
|
|
320
|
+
hoisted: new Map(),
|
|
321
|
+
iterationCarrierCount: 0,
|
|
322
|
+
sourceIdentity,
|
|
323
|
+
}),
|
|
324
|
+
}
|
|
325
|
+
: declaration;
|
|
326
|
+
case 'enum':
|
|
327
|
+
case 'interface':
|
|
328
|
+
case 'typeAlias':
|
|
329
|
+
return declaration;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
function lowerIrExpressionVariableHoisting(expression, analysis) {
|
|
333
|
+
switch (expression.kind) {
|
|
334
|
+
case 'array':
|
|
335
|
+
return {
|
|
336
|
+
...expression,
|
|
337
|
+
elements: expression.elements.map((element) => element ? lowerIrExpressionVariableHoisting(element, analysis) : undefined),
|
|
338
|
+
};
|
|
339
|
+
case 'assignment':
|
|
340
|
+
case 'binary':
|
|
341
|
+
return {
|
|
342
|
+
...expression,
|
|
343
|
+
left: lowerIrExpressionVariableHoisting(expression.left, analysis),
|
|
344
|
+
right: lowerIrExpressionVariableHoisting(expression.right, analysis),
|
|
345
|
+
};
|
|
346
|
+
case 'await':
|
|
347
|
+
case 'cast':
|
|
348
|
+
case 'spread':
|
|
349
|
+
return { ...expression, expression: lowerIrExpressionVariableHoisting(expression.expression, analysis) };
|
|
350
|
+
case 'call':
|
|
351
|
+
case 'new':
|
|
352
|
+
return {
|
|
353
|
+
...expression,
|
|
354
|
+
arguments: expression.arguments.map((argument) => lowerIrExpressionVariableHoisting(argument, analysis)),
|
|
355
|
+
callee: lowerIrExpressionVariableHoisting(expression.callee, analysis),
|
|
356
|
+
};
|
|
357
|
+
case 'conditional':
|
|
358
|
+
return {
|
|
359
|
+
...expression,
|
|
360
|
+
condition: lowerIrExpressionVariableHoisting(expression.condition, analysis),
|
|
361
|
+
whenFalse: lowerIrExpressionVariableHoisting(expression.whenFalse, analysis),
|
|
362
|
+
whenTrue: lowerIrExpressionVariableHoisting(expression.whenTrue, analysis),
|
|
363
|
+
};
|
|
364
|
+
case 'element':
|
|
365
|
+
return {
|
|
366
|
+
...expression,
|
|
367
|
+
index: lowerIrExpressionVariableHoisting(expression.index, analysis),
|
|
368
|
+
object: lowerIrExpressionVariableHoisting(expression.object, analysis),
|
|
369
|
+
};
|
|
370
|
+
case 'function':
|
|
371
|
+
return {
|
|
372
|
+
...expression,
|
|
373
|
+
body: lowerIrFunctionBodyVariableHoisting(expression.body, analysis.sourceIdentity),
|
|
374
|
+
...(expression.expression
|
|
375
|
+
? { expression: lowerIrExpressionVariableHoisting(expression.expression, analysis) }
|
|
376
|
+
: {}),
|
|
377
|
+
parameters: expression.parameters.map((parameter) => lowerIrParameterVariableHoisting(parameter, analysis.sourceIdentity)),
|
|
378
|
+
};
|
|
379
|
+
case 'object':
|
|
380
|
+
return {
|
|
381
|
+
...expression,
|
|
382
|
+
members: expression.members.map((member) => lowerIrObjectMemberVariableHoisting(member, analysis)),
|
|
383
|
+
};
|
|
384
|
+
case 'objectRest':
|
|
385
|
+
return {
|
|
386
|
+
...expression,
|
|
387
|
+
excluded: expression.excluded.map((key) => key.kind === 'computed'
|
|
388
|
+
? { ...key, expression: lowerIrExpressionVariableHoisting(key.expression, analysis) }
|
|
389
|
+
: key),
|
|
390
|
+
object: expression.object,
|
|
391
|
+
};
|
|
392
|
+
case 'property':
|
|
393
|
+
return { ...expression, object: lowerIrExpressionVariableHoisting(expression.object, analysis) };
|
|
394
|
+
case 'template':
|
|
395
|
+
return {
|
|
396
|
+
...expression,
|
|
397
|
+
parts: expression.parts.map((part) => typeof part === 'string' ? part : lowerIrExpressionVariableHoisting(part, analysis)),
|
|
398
|
+
};
|
|
399
|
+
case 'tuple':
|
|
400
|
+
return {
|
|
401
|
+
...expression,
|
|
402
|
+
elements: expression.elements.map((element) => ({
|
|
403
|
+
...element,
|
|
404
|
+
...(element.expression
|
|
405
|
+
? { expression: lowerIrExpressionVariableHoisting(element.expression, analysis) }
|
|
406
|
+
: {}),
|
|
407
|
+
})),
|
|
408
|
+
};
|
|
409
|
+
case 'tupleSpread':
|
|
410
|
+
return {
|
|
411
|
+
...expression,
|
|
412
|
+
segments: expression.segments.map((segment) => segment.kind === 'spread'
|
|
413
|
+
? { ...segment, expression: lowerIrExpressionVariableHoisting(segment.expression, analysis) }
|
|
414
|
+
: segment.element.expression
|
|
415
|
+
? {
|
|
416
|
+
...segment,
|
|
417
|
+
element: {
|
|
418
|
+
...segment.element,
|
|
419
|
+
expression: lowerIrExpressionVariableHoisting(segment.element.expression, analysis),
|
|
420
|
+
},
|
|
421
|
+
}
|
|
422
|
+
: segment),
|
|
423
|
+
};
|
|
424
|
+
case 'tupleRest':
|
|
425
|
+
return { ...expression, object: lowerIrExpressionVariableHoisting(expression.object, analysis) };
|
|
426
|
+
case 'unary':
|
|
427
|
+
return { ...expression, operand: lowerIrExpressionVariableHoisting(expression.operand, analysis) };
|
|
428
|
+
case 'undefinedDefault':
|
|
429
|
+
return {
|
|
430
|
+
...expression,
|
|
431
|
+
fallback: lowerIrExpressionVariableHoisting(expression.fallback, analysis),
|
|
432
|
+
value: lowerIrExpressionVariableHoisting(expression.value, analysis),
|
|
433
|
+
};
|
|
434
|
+
case 'identifier':
|
|
435
|
+
case 'literal':
|
|
436
|
+
case 'regexp':
|
|
437
|
+
case 'tupleSuffix':
|
|
438
|
+
case 'undefinedValue':
|
|
439
|
+
return expression;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
function lowerIrFunctionBodyVariableHoisting(body, sourceIdentity) {
|
|
443
|
+
const analysis = { hoisted: new Map(), iterationCarrierCount: 0, sourceIdentity };
|
|
444
|
+
const lowered = body.flatMap((statement) => lowerIrStatementVariableHoisting(statement, analysis));
|
|
445
|
+
if (analysis.hoisted.size === 0)
|
|
446
|
+
return lowered;
|
|
447
|
+
validateIrFunctionVariableInitialization(lowered, analysis.hoisted, sourceIdentity);
|
|
448
|
+
return [{ declarations: [...analysis.hoisted.values()], kind: 'variable' }, ...lowered];
|
|
449
|
+
}
|
|
450
|
+
function lowerIrModuleVariableHoisting(module) {
|
|
451
|
+
return {
|
|
452
|
+
...module,
|
|
453
|
+
declarations: module.declarations.map((declaration) => lowerIrDeclarationVariableHoisting(declaration, module)),
|
|
454
|
+
exports: module.exports.map((exported) => exported.kind === 'default'
|
|
455
|
+
? {
|
|
456
|
+
...exported,
|
|
457
|
+
expression: lowerIrExpressionVariableHoisting(exported.expression, {
|
|
458
|
+
hoisted: new Map(),
|
|
459
|
+
iterationCarrierCount: 0,
|
|
460
|
+
sourceIdentity: module,
|
|
461
|
+
}),
|
|
462
|
+
}
|
|
463
|
+
: exported),
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
function lowerIrNamedVariableVariableHoisting(variable, analysis) {
|
|
467
|
+
const initializer = variable.initializer
|
|
468
|
+
? lowerIrExpressionVariableHoisting(variable.initializer, analysis)
|
|
469
|
+
: undefined;
|
|
470
|
+
if (variable.binding.scope !== 'function') {
|
|
471
|
+
return [
|
|
472
|
+
{
|
|
473
|
+
declarations: [{ ...variable, ...(initializer ? { initializer } : {}) }],
|
|
474
|
+
kind: 'variable',
|
|
475
|
+
},
|
|
476
|
+
];
|
|
477
|
+
}
|
|
478
|
+
addIrVariableHoistingDeclaration(variable, analysis);
|
|
479
|
+
return initializer ? [createIrVariableHoistingAssignment(variable, initializer)] : [];
|
|
480
|
+
}
|
|
481
|
+
function lowerIrObjectMemberVariableHoisting(member, analysis) {
|
|
482
|
+
switch (member.kind) {
|
|
483
|
+
case 'computedProperty':
|
|
484
|
+
return {
|
|
485
|
+
...member,
|
|
486
|
+
key: lowerIrExpressionVariableHoisting(member.key, analysis),
|
|
487
|
+
value: lowerIrExpressionVariableHoisting(member.value, analysis),
|
|
488
|
+
};
|
|
489
|
+
case 'getAccessor': {
|
|
490
|
+
const value = lowerIrExpressionVariableHoisting(member.value, analysis);
|
|
491
|
+
if (value.kind !== 'function')
|
|
492
|
+
throw new TypeError('object getter lowering must preserve its function value');
|
|
493
|
+
return { ...member, value };
|
|
494
|
+
}
|
|
495
|
+
case 'property':
|
|
496
|
+
return { ...member, value: lowerIrExpressionVariableHoisting(member.value, analysis) };
|
|
497
|
+
case 'spread':
|
|
498
|
+
return { ...member, expression: lowerIrExpressionVariableHoisting(member.expression, analysis) };
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
function lowerIrParameterVariableHoisting(parameter, sourceIdentity) {
|
|
502
|
+
return parameter.initializer
|
|
503
|
+
? {
|
|
504
|
+
...parameter,
|
|
505
|
+
initializer: lowerIrExpressionVariableHoisting(parameter.initializer, {
|
|
506
|
+
hoisted: new Map(),
|
|
507
|
+
iterationCarrierCount: 0,
|
|
508
|
+
sourceIdentity,
|
|
509
|
+
}),
|
|
510
|
+
}
|
|
511
|
+
: parameter;
|
|
512
|
+
}
|
|
513
|
+
function lowerIrStatementVariableHoisting(statement, analysis) {
|
|
514
|
+
switch (statement.kind) {
|
|
515
|
+
case 'block':
|
|
516
|
+
return [
|
|
517
|
+
{
|
|
518
|
+
...statement,
|
|
519
|
+
statements: statement.statements.flatMap((child) => lowerIrStatementVariableHoisting(child, analysis)),
|
|
520
|
+
},
|
|
521
|
+
];
|
|
522
|
+
case 'do':
|
|
523
|
+
case 'while':
|
|
524
|
+
return [
|
|
525
|
+
{
|
|
526
|
+
...statement,
|
|
527
|
+
body: collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(statement.body, analysis)),
|
|
528
|
+
condition: lowerIrExpressionVariableHoisting(statement.condition, analysis),
|
|
529
|
+
},
|
|
530
|
+
];
|
|
531
|
+
case 'expression':
|
|
532
|
+
case 'throw':
|
|
533
|
+
return [{ ...statement, expression: lowerIrExpressionVariableHoisting(statement.expression, analysis) }];
|
|
534
|
+
case 'for': {
|
|
535
|
+
const initializer = statement.initializer;
|
|
536
|
+
const initialization = Array.isArray(initializer) &&
|
|
537
|
+
initializer.some((variable) => getIrVariableScopeVariableHoisting(variable) === 'function')
|
|
538
|
+
? initializer.flatMap((variable) => lowerIrVariableStatementVariableHoisting(variable, analysis))
|
|
539
|
+
: undefined;
|
|
540
|
+
const loweredBody = collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(statement.body, analysis));
|
|
541
|
+
const loweredFor = {
|
|
542
|
+
...statement,
|
|
543
|
+
body: loweredBody,
|
|
544
|
+
...(statement.condition ? { condition: lowerIrExpressionVariableHoisting(statement.condition, analysis) } : {}),
|
|
545
|
+
...(statement.increment ? { increment: lowerIrExpressionVariableHoisting(statement.increment, analysis) } : {}),
|
|
546
|
+
};
|
|
547
|
+
if (!Array.isArray(initializer)) {
|
|
548
|
+
return [
|
|
549
|
+
{
|
|
550
|
+
...loweredFor,
|
|
551
|
+
...(initializer
|
|
552
|
+
? { initializer: lowerIrExpressionVariableHoisting(initializer, analysis) }
|
|
553
|
+
: {}),
|
|
554
|
+
},
|
|
555
|
+
];
|
|
556
|
+
}
|
|
557
|
+
if (!initialization) {
|
|
558
|
+
return [
|
|
559
|
+
{
|
|
560
|
+
...loweredFor,
|
|
561
|
+
initializer: initializer.map((variable) => lowerIrVariableVariableHoisting(variable, analysis)),
|
|
562
|
+
},
|
|
563
|
+
];
|
|
564
|
+
}
|
|
565
|
+
return [...initialization, { ...loweredFor, initializer: undefined }];
|
|
566
|
+
}
|
|
567
|
+
case 'forIn': {
|
|
568
|
+
const lowered = lowerIrIterationVariableVariableHoisting(statement.variable, statement.body, analysis);
|
|
569
|
+
return [
|
|
570
|
+
{
|
|
571
|
+
...statement,
|
|
572
|
+
body: lowered.body,
|
|
573
|
+
object: lowerIrExpressionVariableHoisting(statement.object, analysis),
|
|
574
|
+
variable: lowered.variable,
|
|
575
|
+
},
|
|
576
|
+
];
|
|
577
|
+
}
|
|
578
|
+
case 'forOf': {
|
|
579
|
+
const lowered = lowerIrIterationVariableVariableHoisting(statement.variable, statement.body, analysis);
|
|
580
|
+
return [
|
|
581
|
+
{
|
|
582
|
+
...statement,
|
|
583
|
+
body: lowered.body,
|
|
584
|
+
iterable: lowerIrExpressionVariableHoisting(statement.iterable, analysis),
|
|
585
|
+
variable: lowered.variable,
|
|
586
|
+
},
|
|
587
|
+
];
|
|
588
|
+
}
|
|
589
|
+
case 'if':
|
|
590
|
+
return [
|
|
591
|
+
{
|
|
592
|
+
...statement,
|
|
593
|
+
condition: lowerIrExpressionVariableHoisting(statement.condition, analysis),
|
|
594
|
+
consequent: collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(statement.consequent, analysis)),
|
|
595
|
+
...(statement.otherwise
|
|
596
|
+
? {
|
|
597
|
+
otherwise: collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(statement.otherwise, analysis)),
|
|
598
|
+
}
|
|
599
|
+
: {}),
|
|
600
|
+
},
|
|
601
|
+
];
|
|
602
|
+
case 'return':
|
|
603
|
+
return [
|
|
604
|
+
{
|
|
605
|
+
...statement,
|
|
606
|
+
...(statement.expression
|
|
607
|
+
? { expression: lowerIrExpressionVariableHoisting(statement.expression, analysis) }
|
|
608
|
+
: {}),
|
|
609
|
+
},
|
|
610
|
+
];
|
|
611
|
+
case 'switch':
|
|
612
|
+
return [
|
|
613
|
+
{
|
|
614
|
+
...statement,
|
|
615
|
+
cases: statement.cases.map((switchCase) => ({
|
|
616
|
+
...switchCase,
|
|
617
|
+
...(switchCase.expression
|
|
618
|
+
? { expression: lowerIrExpressionVariableHoisting(switchCase.expression, analysis) }
|
|
619
|
+
: {}),
|
|
620
|
+
statements: switchCase.statements.flatMap((child) => lowerIrStatementVariableHoisting(child, analysis)),
|
|
621
|
+
})),
|
|
622
|
+
expression: lowerIrExpressionVariableHoisting(statement.expression, analysis),
|
|
623
|
+
},
|
|
624
|
+
];
|
|
625
|
+
case 'try':
|
|
626
|
+
return [
|
|
627
|
+
{
|
|
628
|
+
...statement,
|
|
629
|
+
...(statement.catchClause
|
|
630
|
+
? {
|
|
631
|
+
catchClause: {
|
|
632
|
+
...statement.catchClause,
|
|
633
|
+
body: collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(statement.catchClause.body, analysis)),
|
|
634
|
+
},
|
|
635
|
+
}
|
|
636
|
+
: {}),
|
|
637
|
+
...(statement.finallyBody
|
|
638
|
+
? {
|
|
639
|
+
finallyBody: collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(statement.finallyBody, analysis)),
|
|
640
|
+
}
|
|
641
|
+
: {}),
|
|
642
|
+
tryBody: collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(statement.tryBody, analysis)),
|
|
643
|
+
},
|
|
644
|
+
];
|
|
645
|
+
case 'variable':
|
|
646
|
+
return statement.declarations.flatMap((variable) => lowerIrVariableStatementVariableHoisting(variable, analysis));
|
|
647
|
+
case 'break':
|
|
648
|
+
case 'continue':
|
|
649
|
+
return [statement];
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
function lowerIrIterationVariableVariableHoisting(variable, body, analysis) {
|
|
653
|
+
if ('pattern' in variable) {
|
|
654
|
+
throw createCompilerLoweringFailure('unsupported-ir', compilerLoweringPassNameVariableHoisting, analysis.sourceIdentity, 'variable hoisting requires prior binding-pattern normalization');
|
|
655
|
+
}
|
|
656
|
+
if (variable.binding.scope !== 'function') {
|
|
657
|
+
return {
|
|
658
|
+
body: collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(body, analysis)),
|
|
659
|
+
variable: lowerIrVariableVariableHoisting(variable, analysis),
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
if (variable.initializer) {
|
|
663
|
+
throw createCompilerLoweringFailure('unsupported-ir', compilerLoweringPassNameVariableHoisting, analysis.sourceIdentity, `function-scoped iteration variable ${variable.binding.name} cannot have an initializer`);
|
|
664
|
+
}
|
|
665
|
+
addIrVariableHoistingDeclaration(variable, analysis);
|
|
666
|
+
const carrier = createIrVariableHoistingIterationCarrier(variable, analysis);
|
|
667
|
+
const assignment = createIrVariableHoistingAssignment(variable, {
|
|
668
|
+
kind: 'identifier',
|
|
669
|
+
reference: { binding: carrier.binding, kind: 'binding' },
|
|
670
|
+
});
|
|
671
|
+
const loweredBody = collapseIrStatementsVariableHoisting(lowerIrStatementVariableHoisting(body, analysis));
|
|
672
|
+
return {
|
|
673
|
+
body: loweredBody.kind === 'block'
|
|
674
|
+
? { ...loweredBody, statements: [assignment, ...loweredBody.statements] }
|
|
675
|
+
: { kind: 'block', statements: [assignment, loweredBody] },
|
|
676
|
+
variable: carrier,
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function lowerIrVariableStatementVariableHoisting(variable, analysis) {
|
|
680
|
+
if ('pattern' in variable) {
|
|
681
|
+
throw createCompilerLoweringFailure('unsupported-ir', compilerLoweringPassNameVariableHoisting, analysis.sourceIdentity, 'variable hoisting requires prior binding-pattern normalization');
|
|
682
|
+
}
|
|
683
|
+
return lowerIrNamedVariableVariableHoisting(variable, analysis);
|
|
684
|
+
}
|
|
685
|
+
function lowerIrVariableVariableHoisting(variable, analysis) {
|
|
686
|
+
return {
|
|
687
|
+
...variable,
|
|
688
|
+
...(variable.initializer ? { initializer: lowerIrExpressionVariableHoisting(variable.initializer, analysis) } : {}),
|
|
689
|
+
...('pattern' in variable ? { pattern: lowerIrBindingPatternVariableHoisting(variable.pattern, analysis) } : {}),
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
function getIrVariableScopeVariableHoisting(variable) {
|
|
693
|
+
return 'pattern' in variable
|
|
694
|
+
? variable.pattern.kind !== 'binding'
|
|
695
|
+
? variable.pattern.scope
|
|
696
|
+
: variable.pattern.binding.scope
|
|
697
|
+
: variable.binding.scope;
|
|
698
|
+
}
|
|
699
|
+
function visitIrExpressionChildrenVariableHoisting(expression, visit) {
|
|
700
|
+
switch (expression.kind) {
|
|
701
|
+
case 'array':
|
|
702
|
+
expression.elements.forEach((element) => {
|
|
703
|
+
if (element)
|
|
704
|
+
visit(element);
|
|
705
|
+
});
|
|
706
|
+
return;
|
|
707
|
+
case 'objectRest':
|
|
708
|
+
visit(expression.object);
|
|
709
|
+
expression.excluded.forEach((key) => {
|
|
710
|
+
if (key.kind === 'computed')
|
|
711
|
+
visit(key.expression);
|
|
712
|
+
});
|
|
713
|
+
return;
|
|
714
|
+
case 'assignment':
|
|
715
|
+
case 'binary':
|
|
716
|
+
visit(expression.left);
|
|
717
|
+
visit(expression.right);
|
|
718
|
+
return;
|
|
719
|
+
case 'await':
|
|
720
|
+
case 'cast':
|
|
721
|
+
case 'spread':
|
|
722
|
+
visit(expression.expression);
|
|
723
|
+
return;
|
|
724
|
+
case 'call':
|
|
725
|
+
case 'new':
|
|
726
|
+
visit(expression.callee);
|
|
727
|
+
expression.arguments.forEach(visit);
|
|
728
|
+
return;
|
|
729
|
+
case 'conditional':
|
|
730
|
+
visit(expression.condition);
|
|
731
|
+
visit(expression.whenFalse);
|
|
732
|
+
visit(expression.whenTrue);
|
|
733
|
+
return;
|
|
734
|
+
case 'element':
|
|
735
|
+
visit(expression.object);
|
|
736
|
+
visit(expression.index);
|
|
737
|
+
return;
|
|
738
|
+
case 'function':
|
|
739
|
+
return;
|
|
740
|
+
case 'object':
|
|
741
|
+
expression.members.forEach((member) => {
|
|
742
|
+
if (member.kind === 'computedProperty')
|
|
743
|
+
visit(member.key);
|
|
744
|
+
if (member.kind === 'spread')
|
|
745
|
+
visit(member.expression);
|
|
746
|
+
else
|
|
747
|
+
visit(member.value);
|
|
748
|
+
});
|
|
749
|
+
return;
|
|
750
|
+
case 'property':
|
|
751
|
+
visit(expression.object);
|
|
752
|
+
return;
|
|
753
|
+
case 'template':
|
|
754
|
+
expression.parts.forEach((part) => {
|
|
755
|
+
if (typeof part !== 'string')
|
|
756
|
+
visit(part);
|
|
757
|
+
});
|
|
758
|
+
return;
|
|
759
|
+
case 'tuple':
|
|
760
|
+
expression.elements.forEach((element) => {
|
|
761
|
+
if (element.expression)
|
|
762
|
+
visit(element.expression);
|
|
763
|
+
});
|
|
764
|
+
return;
|
|
765
|
+
case 'tupleSpread':
|
|
766
|
+
expression.segments.forEach((segment) => {
|
|
767
|
+
const value = segment.kind === 'spread' ? segment.expression : segment.element.expression;
|
|
768
|
+
if (value)
|
|
769
|
+
visit(value);
|
|
770
|
+
});
|
|
771
|
+
return;
|
|
772
|
+
case 'tupleRest':
|
|
773
|
+
case 'tupleSuffix':
|
|
774
|
+
visit(expression.object);
|
|
775
|
+
return;
|
|
776
|
+
case 'unary':
|
|
777
|
+
visit(expression.operand);
|
|
778
|
+
return;
|
|
779
|
+
case 'undefinedDefault':
|
|
780
|
+
visit(expression.value);
|
|
781
|
+
visit(expression.fallback);
|
|
782
|
+
return;
|
|
783
|
+
case 'identifier':
|
|
784
|
+
case 'literal':
|
|
785
|
+
case 'regexp':
|
|
786
|
+
case 'undefinedValue':
|
|
787
|
+
return;
|
|
788
|
+
default:
|
|
789
|
+
assertNeverVariableHoistingLowering(expression);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
const compilerLoweringPassNameVariableHoisting = 'variable-hoisting';
|
|
793
|
+
function assertNeverVariableHoistingLowering(value) {
|
|
794
|
+
const kind = value.kind;
|
|
795
|
+
throw new TypeError(`Unknown neutral IR kind ${String(kind)}`);
|
|
796
|
+
}
|
|
797
|
+
//# sourceMappingURL=compilerVariableHoistingLowering.js.map
|