@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,785 @@
|
|
|
1
|
+
import { analyzeIrModuleClosureEvidence } from '../../compiler-closure/src/index.js';
|
|
2
|
+
import { createCompilerValueCompletionPathSet, getIrStatementListCompletionSet, } from '../../compiler-completion/src/index.js';
|
|
3
|
+
import { analyzeIrModuleTraversal } from '../../compiler-ir-traversal/src/index.js';
|
|
4
|
+
import { analyzeIrModuleAsyncTaskInventory } from './compilerAsyncTaskInventory.js';
|
|
5
|
+
export function analyzeIrModuleAsyncStateMachines(module) {
|
|
6
|
+
const inventory = analyzeIrModuleAsyncTaskInventory(module);
|
|
7
|
+
const closureEvidence = analyzeIrModuleClosureEvidence(module);
|
|
8
|
+
const bodies = getIrModuleAsyncStateMachineBodies(module);
|
|
9
|
+
const bindingAnalysis = analyzeIrModuleAsyncStateMachineBindings(module, closureEvidence.closures.map((closure) => closure.path), inventory.suspensions);
|
|
10
|
+
const results = inventory.scopes.map((scope) => createCompilerAsyncStateMachine(scope, bodies.get(getCompilerAsyncStateMachinePathIdentity(scope.path)), inventory.suspensions.filter((suspension) => suspension.scopePath !== undefined && isCompilerAsyncStateMachinePathEqual(suspension.scopePath, scope.path)), closureEvidence.closures
|
|
11
|
+
.find((closure) => isCompilerAsyncStateMachinePathEqual(closure.path, scope.path))
|
|
12
|
+
.captures.filter((capture) => capture.lifetimeBoundaries.includes('suspension')), bindingAnalysis.retainedByScope.get(getCompilerAsyncStateMachinePathIdentity(scope.path)) ?? [], getIrModuleAsyncStateMachineOrigin(module)));
|
|
13
|
+
return cloneCompilerAsyncStateMachineValue({
|
|
14
|
+
machines: results.flatMap((result) => (result.machine ? [result.machine] : [])),
|
|
15
|
+
module: inventory.module,
|
|
16
|
+
refusals: results.flatMap((result) => (result.refusal ? [result.refusal] : [])),
|
|
17
|
+
schema: 'flight-compiler-async-state-machine-analysis/1',
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function addCompilerAsyncStateMachineAbruptCompletion(path, draft) {
|
|
21
|
+
const value = createCompilerAsyncStateMachineExpressionValue(path, 'abrupt');
|
|
22
|
+
draft.completionPaths.push({ kind: 'throw', path, value });
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
function addCompilerAsyncStateMachineExecuteStep(statement, path, draft) {
|
|
26
|
+
const abruptValues = getIrStatementAsyncStateMachineAbruptPaths(statement, path).map((abruptPath) => addCompilerAsyncStateMachineAbruptCompletion(abruptPath, draft));
|
|
27
|
+
draft.currentSteps.push({ abruptValues, kind: 'execute', path });
|
|
28
|
+
}
|
|
29
|
+
function addCompilerAsyncStateMachineState(draft) {
|
|
30
|
+
const guard = draft.guards.at(-1);
|
|
31
|
+
draft.states.push({ ...(guard ? { guard } : {}), identity: draft.currentIdentity, steps: draft.currentSteps });
|
|
32
|
+
}
|
|
33
|
+
function addCompilerAsyncStateMachineSuspension(awaitPath, fulfillment, terminal, draft) {
|
|
34
|
+
const rejection = addCompilerAsyncStateMachineAbruptCompletion(awaitPath, draft);
|
|
35
|
+
addCompilerAsyncStateMachineAbruptCompletion([...awaitPath, 'expression'], draft);
|
|
36
|
+
const resumeState = { kind: 'resume', suspensionPath: awaitPath };
|
|
37
|
+
const guard = draft.guards.at(-1);
|
|
38
|
+
draft.currentSteps.push({
|
|
39
|
+
fulfillment,
|
|
40
|
+
kind: 'suspend',
|
|
41
|
+
operandPath: [...awaitPath, 'expression'],
|
|
42
|
+
path: awaitPath,
|
|
43
|
+
rejection,
|
|
44
|
+
...(guard ? { rejectState: guard.catchState } : {}),
|
|
45
|
+
...(terminal ? {} : { resumeState }),
|
|
46
|
+
});
|
|
47
|
+
if (terminal) {
|
|
48
|
+
draft.terminal = true;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
addCompilerAsyncStateMachineState(draft);
|
|
52
|
+
draft.currentIdentity = resumeState;
|
|
53
|
+
draft.currentSteps = [];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function cloneCompilerAsyncStateMachineValue(value) {
|
|
57
|
+
const clone = structuredClone(value);
|
|
58
|
+
freezeCompilerAsyncStateMachineValue(clone, new WeakSet());
|
|
59
|
+
return clone;
|
|
60
|
+
}
|
|
61
|
+
function analyzeIrModuleAsyncStateMachineBindings(module, closurePaths, suspensionSites) {
|
|
62
|
+
const definitions = new Map();
|
|
63
|
+
const suspensionOrdinals = new Map();
|
|
64
|
+
const uses = [];
|
|
65
|
+
let ordinal = 0;
|
|
66
|
+
analyzeIrModuleTraversal(module, {
|
|
67
|
+
bindingPattern(pattern, path) {
|
|
68
|
+
ordinal += 1;
|
|
69
|
+
if (pattern.kind === 'binding' && !definitions.has(pattern.binding.id)) {
|
|
70
|
+
definitions.set(pattern.binding.id, {
|
|
71
|
+
binding: pattern.binding,
|
|
72
|
+
ordinal,
|
|
73
|
+
ownerPath: getCompilerAsyncStateMachineBoundaryPath(path, closurePaths),
|
|
74
|
+
path,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
expression(expression, path) {
|
|
79
|
+
ordinal += 1;
|
|
80
|
+
if (expression.kind === 'await') {
|
|
81
|
+
suspensionOrdinals.set(getCompilerAsyncStateMachinePathIdentity(path), ordinal);
|
|
82
|
+
}
|
|
83
|
+
if (expression.kind === 'identifier' && expression.reference.kind === 'binding') {
|
|
84
|
+
uses.push({
|
|
85
|
+
bindingId: expression.reference.binding.id,
|
|
86
|
+
ordinal,
|
|
87
|
+
ownerPath: getCompilerAsyncStateMachineBoundaryPath(path, closurePaths),
|
|
88
|
+
path,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
parameter(parameter, path) {
|
|
93
|
+
ordinal += 1;
|
|
94
|
+
if (!definitions.has(parameter.binding.id)) {
|
|
95
|
+
definitions.set(parameter.binding.id, {
|
|
96
|
+
binding: parameter.binding,
|
|
97
|
+
ordinal,
|
|
98
|
+
ownerPath: getCompilerAsyncStateMachineBoundaryPath(path, closurePaths),
|
|
99
|
+
path,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
statement(statement, path) {
|
|
104
|
+
ordinal += 1;
|
|
105
|
+
if (statement.kind === 'forOf' && statement.await) {
|
|
106
|
+
suspensionOrdinals.set(getCompilerAsyncStateMachinePathIdentity(path), ordinal);
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
variable(variable, path) {
|
|
110
|
+
ordinal += 1;
|
|
111
|
+
if ('binding' in variable && !definitions.has(variable.binding.id)) {
|
|
112
|
+
definitions.set(variable.binding.id, {
|
|
113
|
+
binding: variable.binding,
|
|
114
|
+
ordinal,
|
|
115
|
+
ownerPath: getCompilerAsyncStateMachineBoundaryPath(path, closurePaths),
|
|
116
|
+
path,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
const retainedByScope = new Map();
|
|
122
|
+
for (const definition of definitions.values()) {
|
|
123
|
+
const ownerPath = definition.ownerPath;
|
|
124
|
+
if (!ownerPath || definition.binding.kind === 'function')
|
|
125
|
+
continue;
|
|
126
|
+
const crossings = suspensionSites.filter((suspension) => {
|
|
127
|
+
if (!suspension.scopePath ||
|
|
128
|
+
!isCompilerAsyncStateMachinePathEqual(suspension.scopePath, ownerPath) ||
|
|
129
|
+
isCompilerAsyncStateMachinePathWithin(suspension.path, [...definition.path, 'initializer'])) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
const suspensionOrdinal = suspensionOrdinals.get(getCompilerAsyncStateMachinePathIdentity(suspension.path));
|
|
133
|
+
return (suspensionOrdinal !== undefined &&
|
|
134
|
+
definition.ordinal < suspensionOrdinal &&
|
|
135
|
+
uses.some((use) => use.bindingId === definition.binding.id &&
|
|
136
|
+
use.ordinal > suspensionOrdinal &&
|
|
137
|
+
use.ownerPath !== undefined &&
|
|
138
|
+
isCompilerAsyncStateMachinePathEqual(use.ownerPath, ownerPath) &&
|
|
139
|
+
!isCompilerAsyncStateMachinePathWithin(use.path, suspension.path)));
|
|
140
|
+
});
|
|
141
|
+
if (crossings.length > 0) {
|
|
142
|
+
const key = getCompilerAsyncStateMachinePathIdentity(ownerPath);
|
|
143
|
+
const retained = retainedByScope.get(key) ?? [];
|
|
144
|
+
retained.push({
|
|
145
|
+
binding: definition.binding,
|
|
146
|
+
declarationPath: definition.path,
|
|
147
|
+
suspensionPaths: crossings.map((suspension) => suspension.path),
|
|
148
|
+
});
|
|
149
|
+
retainedByScope.set(key, retained);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return { retainedByScope };
|
|
153
|
+
}
|
|
154
|
+
// A stable origin for bindings the machine introduces. The module's first declaration carries real
|
|
155
|
+
// source coordinates; a module with none introduces no bindings either.
|
|
156
|
+
function getIrModuleAsyncStateMachineOrigin(module) {
|
|
157
|
+
const declaration = module.declarations[0];
|
|
158
|
+
return (declaration?.origin ?? {
|
|
159
|
+
column: 1,
|
|
160
|
+
fingerprint: `sha256:${'0'.repeat(64)}`,
|
|
161
|
+
line: 1,
|
|
162
|
+
packageName: module.packageName,
|
|
163
|
+
source: module.source,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function createCompilerAsyncStateMachine(scope, body, suspensions, retainedCaptures, retainedBindings, moduleOrigin) {
|
|
167
|
+
// `for await` is not a control-flow gap. Its loop shape is the one already compiled here; what it
|
|
168
|
+
// lacks is an async-iterator protocol in the runtime contract — how a target obtains an iterator
|
|
169
|
+
// and what a settled iteration result looks like. Until the runtime surface names that, there is
|
|
170
|
+
// nothing correct to lower it into, so it refuses ahead of the state machine rather than inside it.
|
|
171
|
+
const asyncIteration = suspensions.find((suspension) => suspension.kind === 'asyncIteration');
|
|
172
|
+
if (asyncIteration) {
|
|
173
|
+
return {
|
|
174
|
+
refusal: createCompilerAsyncStateMachineRefusal('unsupported-async-iteration', asyncIteration.path, scope.path),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
const draft = {
|
|
178
|
+
completionPaths: [],
|
|
179
|
+
cleanups: [],
|
|
180
|
+
currentIdentity: { kind: 'entry' },
|
|
181
|
+
moduleOrigin,
|
|
182
|
+
guards: [],
|
|
183
|
+
loops: [],
|
|
184
|
+
currentSteps: [],
|
|
185
|
+
states: [],
|
|
186
|
+
terminal: false,
|
|
187
|
+
};
|
|
188
|
+
const refusal = body.expression
|
|
189
|
+
? createIrExpressionBodyAsyncStateMachine(scope, body.expression, suspensions, draft)
|
|
190
|
+
: createIrStatementBodyAsyncStateMachine(scope, body.statements, suspensions, draft);
|
|
191
|
+
if (refusal)
|
|
192
|
+
return { refusal };
|
|
193
|
+
addCompilerAsyncStateMachineState(draft);
|
|
194
|
+
return {
|
|
195
|
+
machine: {
|
|
196
|
+
completionPaths: createCompilerValueCompletionPathSet(draft.completionPaths),
|
|
197
|
+
origin: scope.origin,
|
|
198
|
+
path: scope.path,
|
|
199
|
+
retainedBindings: getCompilerAsyncStateMachineLiveBindings(retainedBindings, draft.states),
|
|
200
|
+
retainedCaptures,
|
|
201
|
+
states: draft.states,
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function getCompilerAsyncStateMachineLiveBindings(retainedBindings, states) {
|
|
206
|
+
const overwrites = states
|
|
207
|
+
.flatMap((state) => state.steps)
|
|
208
|
+
.flatMap((step) => step.kind === 'suspend' && (step.fulfillment.kind === 'initializeBinding' || step.fulfillment.kind === 'rebind')
|
|
209
|
+
? [{ bindingId: step.fulfillment.binding.id, path: step.path }]
|
|
210
|
+
: []);
|
|
211
|
+
return retainedBindings.flatMap((retained) => {
|
|
212
|
+
const suspensionPaths = retained.suspensionPaths.filter((path) => !overwrites.some((overwrite) => overwrite.bindingId === retained.binding.id && isCompilerAsyncStateMachinePathEqual(overwrite.path, path)));
|
|
213
|
+
return suspensionPaths.length > 0 ? [{ ...retained, suspensionPaths }] : [];
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function createCompilerAsyncStateMachineExpressionValue(path, phase) {
|
|
217
|
+
return { kind: 'expression', path, phase };
|
|
218
|
+
}
|
|
219
|
+
function createCompilerAsyncStateMachineRefusal(code, path, scopePath) {
|
|
220
|
+
return { code, path, scopePath };
|
|
221
|
+
}
|
|
222
|
+
function createIrExpressionBodyAsyncStateMachine(scope, expression, suspensions, draft) {
|
|
223
|
+
const path = [...scope.path, 'expression'];
|
|
224
|
+
if (suspensions.length === 0) {
|
|
225
|
+
const value = createCompilerAsyncStateMachineExpressionValue(path, 'result');
|
|
226
|
+
draft.currentSteps.push({
|
|
227
|
+
evaluationRejection: addCompilerAsyncStateMachineAbruptCompletion(path, draft),
|
|
228
|
+
kind: 'resolve',
|
|
229
|
+
path,
|
|
230
|
+
value,
|
|
231
|
+
});
|
|
232
|
+
draft.completionPaths.push({ kind: 'return', path, value });
|
|
233
|
+
draft.terminal = true;
|
|
234
|
+
return undefined;
|
|
235
|
+
}
|
|
236
|
+
if (suspensions.length !== 1 || expression.kind !== 'await') {
|
|
237
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-suspension-expression', path, scope.path);
|
|
238
|
+
}
|
|
239
|
+
const value = createCompilerAsyncStateMachineExpressionValue(path, 'result');
|
|
240
|
+
addCompilerAsyncStateMachineSuspension(path, { kind: 'resolve', value }, true, draft);
|
|
241
|
+
draft.completionPaths.push({ kind: 'return', path, value });
|
|
242
|
+
return undefined;
|
|
243
|
+
}
|
|
244
|
+
function createIrStatementBodyAsyncStateMachine(scope, statements, suspensions, draft) {
|
|
245
|
+
const refusal = createIrStatementListAsyncStateMachine(scope, statements, [...scope.path, 'body'], suspensions, draft);
|
|
246
|
+
if (refusal)
|
|
247
|
+
return refusal;
|
|
248
|
+
completeIrStatementBodyAsyncStateMachine(scope, draft);
|
|
249
|
+
return undefined;
|
|
250
|
+
}
|
|
251
|
+
function createIrStatementListAsyncStateMachine(scope, statements, basePath, suspensions, draft) {
|
|
252
|
+
for (let index = 0; index < statements.length; index += 1) {
|
|
253
|
+
const statement = statements[index];
|
|
254
|
+
const path = [...basePath, index];
|
|
255
|
+
if (draft.terminal) {
|
|
256
|
+
return createCompilerAsyncStateMachineRefusal('unreachable-statement', path, scope.path);
|
|
257
|
+
}
|
|
258
|
+
const statementSuspensions = suspensions.filter((suspension) => isCompilerAsyncStateMachinePathWithin(suspension.path, path));
|
|
259
|
+
if (statementSuspensions.length > 0) {
|
|
260
|
+
const refusal = createIrStatementSuspensionAsyncStateMachine(scope, statement, path, statementSuspensions, draft);
|
|
261
|
+
if (refusal)
|
|
262
|
+
return refusal;
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
switch (statement.kind) {
|
|
266
|
+
case 'expression':
|
|
267
|
+
case 'variable':
|
|
268
|
+
addCompilerAsyncStateMachineExecuteStep(statement, path, draft);
|
|
269
|
+
break;
|
|
270
|
+
case 'return': {
|
|
271
|
+
const value = statement.expression
|
|
272
|
+
? createCompilerAsyncStateMachineExpressionValue([...path, 'expression'], 'result')
|
|
273
|
+
: { kind: 'implicitUndefined' };
|
|
274
|
+
const cleanup = draft.cleanups.at(-1);
|
|
275
|
+
if (cleanup) {
|
|
276
|
+
// The cleanup owes this route too, so the value waits in the carrier while the cleanup runs
|
|
277
|
+
// and the cleanup performs the settlement.
|
|
278
|
+
draft.currentSteps.push({ binding: cleanup.carrier, kind: 'carry', path, value });
|
|
279
|
+
draft.currentSteps.push({ kind: 'goto', path, target: cleanup.target });
|
|
280
|
+
draft.terminal = true;
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
draft.currentSteps.push({
|
|
284
|
+
...(statement.expression
|
|
285
|
+
? { evaluationRejection: addCompilerAsyncStateMachineAbruptCompletion([...path, 'expression'], draft) }
|
|
286
|
+
: {}),
|
|
287
|
+
kind: 'resolve',
|
|
288
|
+
path,
|
|
289
|
+
value,
|
|
290
|
+
});
|
|
291
|
+
draft.completionPaths.push({ kind: 'return', path, value });
|
|
292
|
+
draft.terminal = true;
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
case 'throw': {
|
|
296
|
+
const value = createCompilerAsyncStateMachineExpressionValue([...path, 'expression'], 'result');
|
|
297
|
+
draft.currentSteps.push({
|
|
298
|
+
evaluationRejection: addCompilerAsyncStateMachineAbruptCompletion([...path, 'expression'], draft),
|
|
299
|
+
kind: 'reject',
|
|
300
|
+
path,
|
|
301
|
+
value,
|
|
302
|
+
});
|
|
303
|
+
draft.completionPaths.push({ kind: 'throw', path, value });
|
|
304
|
+
draft.terminal = true;
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
case 'break':
|
|
308
|
+
case 'continue': {
|
|
309
|
+
// An unlabelled jump means the innermost loop; a labelled one means the loop that carries
|
|
310
|
+
// that label, which may be several levels out.
|
|
311
|
+
const target = statement.target;
|
|
312
|
+
const loop = target
|
|
313
|
+
? [...draft.loops].reverse().find((candidate) => candidate.label === target.id)
|
|
314
|
+
: draft.loops.at(-1);
|
|
315
|
+
if (!loop) {
|
|
316
|
+
return createCompilerAsyncStateMachineRefusal('escaping-control-flow', path, scope.path);
|
|
317
|
+
}
|
|
318
|
+
draft.currentSteps.push({
|
|
319
|
+
kind: 'goto',
|
|
320
|
+
path,
|
|
321
|
+
target: statement.kind === 'break' ? loop.breakTarget : loop.continueTarget,
|
|
322
|
+
});
|
|
323
|
+
draft.terminal = true;
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
case 'block':
|
|
327
|
+
case 'do':
|
|
328
|
+
case 'for':
|
|
329
|
+
case 'forIn':
|
|
330
|
+
case 'forOf':
|
|
331
|
+
case 'if':
|
|
332
|
+
case 'switch':
|
|
333
|
+
case 'try':
|
|
334
|
+
case 'while': {
|
|
335
|
+
if (isIrStatementAsyncStateMachineOpaque(statement)) {
|
|
336
|
+
addCompilerAsyncStateMachineExecuteStep(statement, path, draft);
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
// Control leaves this statement, so it cannot run inside one state even though nothing in it
|
|
340
|
+
// suspends. The structured handlers own those routes; anything they do not model refuses
|
|
341
|
+
// there rather than here.
|
|
342
|
+
const refusal = createIrStatementSuspensionAsyncStateMachine(scope, statement, path, [], draft);
|
|
343
|
+
if (refusal)
|
|
344
|
+
return refusal;
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return undefined;
|
|
350
|
+
}
|
|
351
|
+
function completeIrStatementBodyAsyncStateMachine(scope, draft) {
|
|
352
|
+
if (!draft.terminal) {
|
|
353
|
+
const path = [...scope.path, 'body', 'end'];
|
|
354
|
+
const value = { kind: 'implicitUndefined' };
|
|
355
|
+
draft.currentSteps.push({ kind: 'resolve', path, value });
|
|
356
|
+
draft.completionPaths.push({ kind: 'normal', path, value });
|
|
357
|
+
draft.terminal = true;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
function createIrIfStatementAsyncStateMachine(scope, statement, path, suspensions, draft) {
|
|
361
|
+
const conditionPath = [...path, 'condition'];
|
|
362
|
+
if (suspensions.some((suspension) => isCompilerAsyncStateMachinePathWithin(suspension.path, conditionPath))) {
|
|
363
|
+
// A suspension in the condition has to settle before the branch is even decided, which is a
|
|
364
|
+
// different state shape from a suspension in an arm. Refused until it has one.
|
|
365
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-suspension-expression', conditionPath, scope.path);
|
|
366
|
+
}
|
|
367
|
+
const whenTrue = { arm: 'whenTrue', kind: 'branchArm', path };
|
|
368
|
+
const whenFalse = { arm: 'whenFalse', kind: 'branchArm', path };
|
|
369
|
+
const join = { kind: 'join', path };
|
|
370
|
+
draft.currentSteps.push({
|
|
371
|
+
conditionPath,
|
|
372
|
+
evaluationRejection: addCompilerAsyncStateMachineAbruptCompletion(conditionPath, draft),
|
|
373
|
+
kind: 'branch',
|
|
374
|
+
path,
|
|
375
|
+
whenFalse: statement.otherwise ? whenFalse : join,
|
|
376
|
+
whenTrue,
|
|
377
|
+
});
|
|
378
|
+
addCompilerAsyncStateMachineState(draft);
|
|
379
|
+
draft.currentIdentity = whenTrue;
|
|
380
|
+
draft.currentSteps = [];
|
|
381
|
+
draft.terminal = false;
|
|
382
|
+
const consequent = createIrStatementArmAsyncStateMachine(scope, statement.consequent, [...path, 'consequent'], suspensions, draft);
|
|
383
|
+
if (consequent)
|
|
384
|
+
return consequent;
|
|
385
|
+
const trueTerminal = draft.terminal;
|
|
386
|
+
if (!trueTerminal)
|
|
387
|
+
draft.currentSteps.push({ kind: 'goto', path: [...path, 'consequent'], target: join });
|
|
388
|
+
addCompilerAsyncStateMachineState(draft);
|
|
389
|
+
let falseTerminal = false;
|
|
390
|
+
if (statement.otherwise) {
|
|
391
|
+
draft.currentIdentity = whenFalse;
|
|
392
|
+
draft.currentSteps = [];
|
|
393
|
+
draft.terminal = false;
|
|
394
|
+
const otherwise = createIrStatementArmAsyncStateMachine(scope, statement.otherwise, [...path, 'otherwise'], suspensions, draft);
|
|
395
|
+
if (otherwise)
|
|
396
|
+
return otherwise;
|
|
397
|
+
falseTerminal = draft.terminal;
|
|
398
|
+
if (!falseTerminal)
|
|
399
|
+
draft.currentSteps.push({ kind: 'goto', path: [...path, 'otherwise'], target: join });
|
|
400
|
+
addCompilerAsyncStateMachineState(draft);
|
|
401
|
+
}
|
|
402
|
+
draft.currentIdentity = join;
|
|
403
|
+
draft.currentSteps = [];
|
|
404
|
+
// The statement after the branch is reachable unless every arm left, and an `if` with no `else`
|
|
405
|
+
// always has a route that skips the consequent entirely.
|
|
406
|
+
draft.terminal = Boolean(statement.otherwise) && trueTerminal && falseTerminal;
|
|
407
|
+
return undefined;
|
|
408
|
+
}
|
|
409
|
+
function createIrLoopStatementAsyncStateMachine(scope, statement, path, suspensions, draft) {
|
|
410
|
+
const conditionPath = [...path, 'condition'];
|
|
411
|
+
if (suspensions.some((suspension) => isCompilerAsyncStateMachinePathWithin(suspension.path, conditionPath))) {
|
|
412
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-suspension-expression', conditionPath, scope.path);
|
|
413
|
+
}
|
|
414
|
+
const header = { kind: 'loopHeader', path };
|
|
415
|
+
const body = { arm: 'whenTrue', kind: 'branchArm', path };
|
|
416
|
+
const join = { kind: 'join', path };
|
|
417
|
+
// `while` tests before its body, so a true test enters the body arm. `do` tests after its body,
|
|
418
|
+
// where the header *is* the body, so a true test re-enters the header instead.
|
|
419
|
+
const branch = () => ({
|
|
420
|
+
conditionPath,
|
|
421
|
+
evaluationRejection: addCompilerAsyncStateMachineAbruptCompletion(conditionPath, draft),
|
|
422
|
+
kind: 'branch',
|
|
423
|
+
path,
|
|
424
|
+
whenFalse: join,
|
|
425
|
+
whenTrue: statement.kind === 'do' ? header : body,
|
|
426
|
+
});
|
|
427
|
+
draft.currentSteps.push({ header, kind: 'loop', path });
|
|
428
|
+
addCompilerAsyncStateMachineState(draft);
|
|
429
|
+
// The two forms differ only in where the condition sits. `while` tests before the body, so the
|
|
430
|
+
// header is the test and the body is its own arm; `do` runs the body first, so the header is the
|
|
431
|
+
// body and the test is its tail.
|
|
432
|
+
draft.currentIdentity = header;
|
|
433
|
+
draft.currentSteps = [];
|
|
434
|
+
draft.terminal = false;
|
|
435
|
+
if (statement.kind === 'while') {
|
|
436
|
+
draft.currentSteps.push(branch());
|
|
437
|
+
addCompilerAsyncStateMachineState(draft);
|
|
438
|
+
draft.currentIdentity = body;
|
|
439
|
+
draft.currentSteps = [];
|
|
440
|
+
}
|
|
441
|
+
draft.loops.push({
|
|
442
|
+
breakTarget: join,
|
|
443
|
+
continueTarget: header,
|
|
444
|
+
...(statement.label ? { label: statement.label.id } : {}),
|
|
445
|
+
});
|
|
446
|
+
const refusal = createIrStatementArmAsyncStateMachine(scope, statement.body, [...path, 'body'], suspensions, draft);
|
|
447
|
+
draft.loops.pop();
|
|
448
|
+
if (refusal)
|
|
449
|
+
return refusal;
|
|
450
|
+
if (!draft.terminal) {
|
|
451
|
+
if (statement.kind === 'do')
|
|
452
|
+
draft.currentSteps.push(branch());
|
|
453
|
+
else
|
|
454
|
+
draft.currentSteps.push({ kind: 'goto', path: [...path, 'body'], target: header });
|
|
455
|
+
}
|
|
456
|
+
addCompilerAsyncStateMachineState(draft);
|
|
457
|
+
draft.currentIdentity = join;
|
|
458
|
+
draft.currentSteps = [];
|
|
459
|
+
// Either form may reach its exit, so the statement after the loop is always reachable.
|
|
460
|
+
draft.terminal = false;
|
|
461
|
+
return undefined;
|
|
462
|
+
}
|
|
463
|
+
function createIrTryStatementAsyncStateMachine(scope, statement, path, suspensions, draft,
|
|
464
|
+
// Where the guarded body lives in the source. It is the try body's own path except when two regions
|
|
465
|
+
// share one statement, where the inner region's body is the same node the outer region guards.
|
|
466
|
+
bodyPath = [...path, 'tryBody'],
|
|
467
|
+
// Likewise for the handler: the inner region's `catch` is the same source node the outer statement
|
|
468
|
+
// declares, not a nested one.
|
|
469
|
+
sourceHandlerPath) {
|
|
470
|
+
const catchClause = statement.catchClause;
|
|
471
|
+
const finallyBody = statement.finallyBody;
|
|
472
|
+
if (catchClause && finallyBody) {
|
|
473
|
+
// The cleanup owes every route out of the handled region, including the handler's own. That is
|
|
474
|
+
// exactly `try { try A catch H } finally F`, so it is built as two regions rather than as a third
|
|
475
|
+
// route through one. The inner region is keyed on the try body's path, so their state identities
|
|
476
|
+
// cannot collide.
|
|
477
|
+
return createIrTryStatementAsyncStateMachine(scope, { finallyBody, kind: 'try', tryBody: { kind: 'try', catchClause, tryBody: statement.tryBody } }, path, suspensions, draft, [...path, 'tryBody'], [...path, 'finallyBody']);
|
|
478
|
+
}
|
|
479
|
+
if (!catchClause && !finallyBody) {
|
|
480
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-control-flow', path, scope.path);
|
|
481
|
+
}
|
|
482
|
+
const handlerPath = sourceHandlerPath ?? (catchClause ? [...path, 'catchClause', 'body'] : [...path, 'finallyBody']);
|
|
483
|
+
const body = { arm: 'whenTrue', kind: 'branchArm', path };
|
|
484
|
+
const handler = { kind: 'catch', path };
|
|
485
|
+
const cleanup = { arm: 'whenFalse', kind: 'branchArm', path };
|
|
486
|
+
const join = { kind: 'join', path };
|
|
487
|
+
// The carrier is addressed by the try statement's own path, which is unique within the module and
|
|
488
|
+
// stable across runs, so two cleanups in one function never share one.
|
|
489
|
+
const carrier = finallyBody
|
|
490
|
+
? {
|
|
491
|
+
...draft.moduleOrigin,
|
|
492
|
+
id: `binding:${JSON.stringify([draft.moduleOrigin.packageName, draft.moduleOrigin.source, path, 'cleanup-value'])}`,
|
|
493
|
+
kind: 'variable',
|
|
494
|
+
name: 'cleanupValue',
|
|
495
|
+
scope: 'block',
|
|
496
|
+
space: 'value',
|
|
497
|
+
}
|
|
498
|
+
: undefined;
|
|
499
|
+
// The guard step belongs to the state that opens the region, and that state is not itself guarded:
|
|
500
|
+
// its own throws happen before the handler is in scope.
|
|
501
|
+
draft.currentSteps.push({
|
|
502
|
+
body,
|
|
503
|
+
...(carrier ? { carrier } : {}),
|
|
504
|
+
catchState: handler,
|
|
505
|
+
join,
|
|
506
|
+
kind: 'guard',
|
|
507
|
+
path,
|
|
508
|
+
});
|
|
509
|
+
addCompilerAsyncStateMachineState(draft);
|
|
510
|
+
draft.guards.push({
|
|
511
|
+
...(catchClause?.binding ? { catchBinding: catchClause.binding } : {}),
|
|
512
|
+
catchState: handler,
|
|
513
|
+
...(finallyBody ? { rethrow: true } : {}),
|
|
514
|
+
});
|
|
515
|
+
if (carrier)
|
|
516
|
+
draft.cleanups.push({ carrier, target: cleanup });
|
|
517
|
+
draft.currentIdentity = body;
|
|
518
|
+
draft.currentSteps = [];
|
|
519
|
+
draft.terminal = false;
|
|
520
|
+
const tryRefusal = statement.tryBody.kind === 'try'
|
|
521
|
+
? createIrTryStatementAsyncStateMachine(scope, statement.tryBody, bodyPath, suspensions, draft, bodyPath, [
|
|
522
|
+
...path,
|
|
523
|
+
'catchClause',
|
|
524
|
+
'body',
|
|
525
|
+
])
|
|
526
|
+
: createIrStatementArmAsyncStateMachine(scope, statement.tryBody, bodyPath, suspensions, draft);
|
|
527
|
+
if (tryRefusal)
|
|
528
|
+
return tryRefusal;
|
|
529
|
+
const bodyTerminal = draft.terminal;
|
|
530
|
+
if (!bodyTerminal) {
|
|
531
|
+
draft.currentSteps.push({ kind: 'goto', path: bodyPath, target: finallyBody ? cleanup : join });
|
|
532
|
+
}
|
|
533
|
+
addCompilerAsyncStateMachineState(draft);
|
|
534
|
+
draft.guards.pop();
|
|
535
|
+
if (carrier)
|
|
536
|
+
draft.cleanups.pop();
|
|
537
|
+
if (finallyBody) {
|
|
538
|
+
// A route that leaves the body normally still owes the cleanup, so the cleanup is reached twice:
|
|
539
|
+
// once here, and once from the rejection route that ends by re-raising.
|
|
540
|
+
draft.currentIdentity = cleanup;
|
|
541
|
+
draft.currentSteps = [];
|
|
542
|
+
draft.terminal = false;
|
|
543
|
+
const normalRefusal = createIrStatementArmAsyncStateMachine(scope, finallyBody, handlerPath, [], draft);
|
|
544
|
+
if (normalRefusal)
|
|
545
|
+
return normalRefusal;
|
|
546
|
+
if (draft.terminal) {
|
|
547
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-control-flow', handlerPath, scope.path);
|
|
548
|
+
}
|
|
549
|
+
if (bodyTerminal && carrier) {
|
|
550
|
+
// The body left through a route that owed the cleanup, so the cleanup performs its settlement
|
|
551
|
+
// from the value the route carried here.
|
|
552
|
+
const value = { binding: carrier, kind: 'carried' };
|
|
553
|
+
draft.currentSteps.push({ kind: 'resolve', path: handlerPath, value });
|
|
554
|
+
draft.completionPaths.push({ kind: 'return', path: handlerPath, value });
|
|
555
|
+
draft.terminal = true;
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
draft.currentSteps.push({ kind: 'goto', path: handlerPath, target: join });
|
|
559
|
+
}
|
|
560
|
+
addCompilerAsyncStateMachineState(draft);
|
|
561
|
+
}
|
|
562
|
+
draft.currentIdentity = handler;
|
|
563
|
+
draft.currentSteps = [];
|
|
564
|
+
draft.terminal = false;
|
|
565
|
+
const handlerRefusal = createIrStatementArmAsyncStateMachine(scope, catchClause ? catchClause.body : finallyBody, handlerPath, catchClause ? suspensions : [], draft);
|
|
566
|
+
if (handlerRefusal)
|
|
567
|
+
return handlerRefusal;
|
|
568
|
+
if (!draft.terminal && catchClause)
|
|
569
|
+
draft.currentSteps.push({ kind: 'goto', path: handlerPath, target: join });
|
|
570
|
+
addCompilerAsyncStateMachineState(draft);
|
|
571
|
+
draft.currentIdentity = join;
|
|
572
|
+
draft.currentSteps = [];
|
|
573
|
+
draft.terminal = false;
|
|
574
|
+
return undefined;
|
|
575
|
+
}
|
|
576
|
+
function createIrStatementArmAsyncStateMachine(scope, statement, path, suspensions, draft) {
|
|
577
|
+
const armSuspensions = suspensions.filter((suspension) => isCompilerAsyncStateMachinePathWithin(suspension.path, path));
|
|
578
|
+
if (statement.kind === 'block' && !statement.label) {
|
|
579
|
+
return createIrStatementListAsyncStateMachine(scope, statement.statements, [...path, 'statements'], armSuspensions, draft);
|
|
580
|
+
}
|
|
581
|
+
if (armSuspensions.length === 0 && statement.kind === 'return') {
|
|
582
|
+
const value = statement.expression
|
|
583
|
+
? createCompilerAsyncStateMachineExpressionValue([...path, 'expression'], 'result')
|
|
584
|
+
: { kind: 'implicitUndefined' };
|
|
585
|
+
const cleanup = draft.cleanups.at(-1);
|
|
586
|
+
if (cleanup) {
|
|
587
|
+
draft.currentSteps.push({ binding: cleanup.carrier, kind: 'carry', path, value });
|
|
588
|
+
draft.currentSteps.push({ kind: 'goto', path, target: cleanup.target });
|
|
589
|
+
}
|
|
590
|
+
else {
|
|
591
|
+
draft.currentSteps.push({
|
|
592
|
+
...(statement.expression
|
|
593
|
+
? { evaluationRejection: addCompilerAsyncStateMachineAbruptCompletion([...path, 'expression'], draft) }
|
|
594
|
+
: {}),
|
|
595
|
+
kind: 'resolve',
|
|
596
|
+
path,
|
|
597
|
+
value,
|
|
598
|
+
});
|
|
599
|
+
draft.completionPaths.push({ kind: 'return', path, value });
|
|
600
|
+
}
|
|
601
|
+
draft.terminal = true;
|
|
602
|
+
return undefined;
|
|
603
|
+
}
|
|
604
|
+
if (armSuspensions.length === 0 && statement.kind === 'throw') {
|
|
605
|
+
const value = createCompilerAsyncStateMachineExpressionValue([...path, 'expression'], 'result');
|
|
606
|
+
draft.currentSteps.push({
|
|
607
|
+
evaluationRejection: addCompilerAsyncStateMachineAbruptCompletion([...path, 'expression'], draft),
|
|
608
|
+
kind: 'reject',
|
|
609
|
+
path,
|
|
610
|
+
value,
|
|
611
|
+
});
|
|
612
|
+
draft.completionPaths.push({ kind: 'throw', path, value });
|
|
613
|
+
draft.terminal = true;
|
|
614
|
+
return undefined;
|
|
615
|
+
}
|
|
616
|
+
if (armSuspensions.length === 0 && (statement.kind === 'break' || statement.kind === 'continue')) {
|
|
617
|
+
const target = statement.target;
|
|
618
|
+
const loop = target
|
|
619
|
+
? [...draft.loops].reverse().find((candidate) => candidate.label === target.id)
|
|
620
|
+
: draft.loops.at(-1);
|
|
621
|
+
if (!loop)
|
|
622
|
+
return createCompilerAsyncStateMachineRefusal('escaping-control-flow', path, scope.path);
|
|
623
|
+
draft.currentSteps.push({
|
|
624
|
+
kind: 'goto',
|
|
625
|
+
path,
|
|
626
|
+
target: statement.kind === 'break' ? loop.breakTarget : loop.continueTarget,
|
|
627
|
+
});
|
|
628
|
+
draft.terminal = true;
|
|
629
|
+
return undefined;
|
|
630
|
+
}
|
|
631
|
+
if (armSuspensions.length > 0) {
|
|
632
|
+
return createIrStatementSuspensionAsyncStateMachine(scope, statement, path, armSuspensions, draft);
|
|
633
|
+
}
|
|
634
|
+
// An else-if remains a structured branch even when every suspension happened before it. It still
|
|
635
|
+
// owns return/throw completion routes, so walk it with the branch state builder instead of asking
|
|
636
|
+
// the opaque-step path to pretend those exits are local to one execute step.
|
|
637
|
+
if (statement.kind === 'if') {
|
|
638
|
+
return createIrStatementSuspensionAsyncStateMachine(scope, statement, path, [], draft);
|
|
639
|
+
}
|
|
640
|
+
if (!isIrStatementAsyncStateMachineOpaque(statement)) {
|
|
641
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-control-flow', path, scope.path);
|
|
642
|
+
}
|
|
643
|
+
addCompilerAsyncStateMachineExecuteStep(statement, path, draft);
|
|
644
|
+
return undefined;
|
|
645
|
+
}
|
|
646
|
+
function createIrStatementSuspensionAsyncStateMachine(scope, statement, path, suspensions, draft) {
|
|
647
|
+
if (statement.kind === 'block') {
|
|
648
|
+
// A block introduces no control flow of its own, so a suspension inside one needs no new state
|
|
649
|
+
// shape — only the statement list walked at the block's own path. A labelled block is refused,
|
|
650
|
+
// because its label is a `break` target and the machine does not model one yet.
|
|
651
|
+
if (statement.label) {
|
|
652
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-control-flow', path, scope.path);
|
|
653
|
+
}
|
|
654
|
+
return createIrStatementListAsyncStateMachine(scope, statement.statements, [...path, 'statements'], suspensions, draft);
|
|
655
|
+
}
|
|
656
|
+
if (statement.kind === 'if') {
|
|
657
|
+
return createIrIfStatementAsyncStateMachine(scope, statement, path, suspensions, draft);
|
|
658
|
+
}
|
|
659
|
+
if (statement.kind === 'try') {
|
|
660
|
+
return createIrTryStatementAsyncStateMachine(scope, statement, path, suspensions, draft);
|
|
661
|
+
}
|
|
662
|
+
if (statement.kind === 'do' || statement.kind === 'while') {
|
|
663
|
+
return createIrLoopStatementAsyncStateMachine(scope, statement, path, suspensions, draft);
|
|
664
|
+
}
|
|
665
|
+
if (suspensions.length !== 1) {
|
|
666
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-suspension-expression', path, scope.path);
|
|
667
|
+
}
|
|
668
|
+
const suspension = suspensions[0];
|
|
669
|
+
if (statement.kind === 'return' && statement.expression?.kind === 'await') {
|
|
670
|
+
const awaitPath = [...path, 'expression'];
|
|
671
|
+
const value = createCompilerAsyncStateMachineExpressionValue(awaitPath, 'result');
|
|
672
|
+
const cleanup = draft.cleanups.at(-1);
|
|
673
|
+
if (cleanup) {
|
|
674
|
+
// The cleanup owes this route too, so the settled value is carried through it rather than
|
|
675
|
+
// resolving the task the moment the suspension fulfills.
|
|
676
|
+
addCompilerAsyncStateMachineSuspension(awaitPath, { binding: cleanup.carrier, kind: 'rebind' }, false, draft);
|
|
677
|
+
draft.currentSteps.push({ kind: 'goto', path, target: cleanup.target });
|
|
678
|
+
draft.terminal = true;
|
|
679
|
+
return undefined;
|
|
680
|
+
}
|
|
681
|
+
addCompilerAsyncStateMachineSuspension(awaitPath, { kind: 'resolve', value }, true, draft);
|
|
682
|
+
draft.completionPaths.push({ kind: 'return', path, value });
|
|
683
|
+
return undefined;
|
|
684
|
+
}
|
|
685
|
+
if (statement.kind === 'expression') {
|
|
686
|
+
if (statement.expression.kind === 'await') {
|
|
687
|
+
const awaitPath = [...path, 'expression'];
|
|
688
|
+
addCompilerAsyncStateMachineSuspension(awaitPath, { kind: 'discard' }, false, draft);
|
|
689
|
+
return undefined;
|
|
690
|
+
}
|
|
691
|
+
if (statement.expression.kind === 'assignment' &&
|
|
692
|
+
statement.expression.operator === '=' &&
|
|
693
|
+
statement.expression.left.kind === 'identifier' &&
|
|
694
|
+
statement.expression.left.reference.kind === 'binding' &&
|
|
695
|
+
statement.expression.right.kind === 'await') {
|
|
696
|
+
const awaitPath = [...path, 'expression', 'right'];
|
|
697
|
+
addCompilerAsyncStateMachineSuspension(awaitPath, { binding: statement.expression.left.reference.binding, kind: 'rebind' }, false, draft);
|
|
698
|
+
return undefined;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
if (statement.kind === 'variable' && statement.declarations.length === 1) {
|
|
702
|
+
const variable = statement.declarations[0];
|
|
703
|
+
if (!('binding' in variable) || variable.initializer?.kind !== 'await') {
|
|
704
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-suspension-expression', suspension.path, scope.path);
|
|
705
|
+
}
|
|
706
|
+
const awaitPath = [...path, 'declarations', 0, 'initializer'];
|
|
707
|
+
addCompilerAsyncStateMachineSuspension(awaitPath, { binding: variable.binding, kind: 'initializeBinding' }, false, draft);
|
|
708
|
+
return undefined;
|
|
709
|
+
}
|
|
710
|
+
return createCompilerAsyncStateMachineRefusal('unsupported-suspension-expression', suspension.path, scope.path);
|
|
711
|
+
}
|
|
712
|
+
function freezeCompilerAsyncStateMachineValue(value, seen) {
|
|
713
|
+
if (!value || typeof value !== 'object' || seen.has(value))
|
|
714
|
+
return;
|
|
715
|
+
seen.add(value);
|
|
716
|
+
for (const child of Object.values(value))
|
|
717
|
+
freezeCompilerAsyncStateMachineValue(child, seen);
|
|
718
|
+
Object.freeze(value);
|
|
719
|
+
}
|
|
720
|
+
function getCompilerAsyncStateMachinePathIdentity(path) {
|
|
721
|
+
return JSON.stringify(path);
|
|
722
|
+
}
|
|
723
|
+
function getCompilerAsyncStateMachineBoundaryPath(path, boundaries) {
|
|
724
|
+
let nearest;
|
|
725
|
+
for (const boundary of boundaries) {
|
|
726
|
+
if (isCompilerAsyncStateMachinePathWithin(path, boundary) && (!nearest || boundary.length > nearest.length)) {
|
|
727
|
+
nearest = boundary;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
return nearest;
|
|
731
|
+
}
|
|
732
|
+
function getIrModuleAsyncStateMachineBodies(module) {
|
|
733
|
+
const bodies = new Map();
|
|
734
|
+
analyzeIrModuleTraversal(module, {
|
|
735
|
+
declaration(declaration, path) {
|
|
736
|
+
if (declaration.kind === 'function' && declaration.async) {
|
|
737
|
+
bodies.set(getCompilerAsyncStateMachinePathIdentity(path), { statements: declaration.body });
|
|
738
|
+
}
|
|
739
|
+
if (declaration.kind === 'class') {
|
|
740
|
+
declaration.methods.forEach((method, index) => {
|
|
741
|
+
if (method.async) {
|
|
742
|
+
bodies.set(getCompilerAsyncStateMachinePathIdentity([...path, 'methods', index]), {
|
|
743
|
+
statements: method.body,
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
expression(expression, path) {
|
|
750
|
+
if (expression.kind === 'function' && expression.async) {
|
|
751
|
+
bodies.set(getCompilerAsyncStateMachinePathIdentity(path), {
|
|
752
|
+
...(expression.expression ? { expression: expression.expression } : {}),
|
|
753
|
+
statements: expression.body,
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
});
|
|
758
|
+
return bodies;
|
|
759
|
+
}
|
|
760
|
+
function getIrStatementAsyncStateMachineAbruptPaths(statement, path) {
|
|
761
|
+
if (statement.kind === 'expression')
|
|
762
|
+
return [[...path, 'expression']];
|
|
763
|
+
if (statement.kind === 'variable') {
|
|
764
|
+
return statement.declarations.flatMap((variable, index) => variable.initializer ? [[...path, 'declarations', index, 'initializer']] : []);
|
|
765
|
+
}
|
|
766
|
+
// A compound statement executed as one step can reject from anywhere inside it. The statement is
|
|
767
|
+
// the finest address available without re-walking it, and re-walking would claim a precision the
|
|
768
|
+
// step does not have: the whole statement either runs to completion or rejects.
|
|
769
|
+
return [path];
|
|
770
|
+
}
|
|
771
|
+
// A statement that never suspends can run inside one state, but only if control cannot leave it by a
|
|
772
|
+
// route the machine has to represent. `return` must become a resolve, and `break` or `continue` name
|
|
773
|
+
// a loop target outside the statement, so any of the three refuses. `throw` does not: the execute
|
|
774
|
+
// step already registers the statement as an abrupt completion path, so a rejection from anywhere
|
|
775
|
+
// inside it settles the task the same way an inline throwing expression does.
|
|
776
|
+
function isIrStatementAsyncStateMachineOpaque(statement) {
|
|
777
|
+
return getIrStatementListCompletionSet([statement]).completions.every((completion) => completion.kind === 'normal' || completion.kind === 'throw');
|
|
778
|
+
}
|
|
779
|
+
function isCompilerAsyncStateMachinePathEqual(left, right) {
|
|
780
|
+
return left.length === right.length && left.every((segment, index) => segment === right[index]);
|
|
781
|
+
}
|
|
782
|
+
function isCompilerAsyncStateMachinePathWithin(path, ancestor) {
|
|
783
|
+
return ancestor.length <= path.length && ancestor.every((segment, index) => segment === path[index]);
|
|
784
|
+
}
|
|
785
|
+
//# sourceMappingURL=compilerAsyncStateMachine.js.map
|