qsharp-lang 1.6.1-dev → 1.6.3-dev
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/dist/browser.d.ts +7 -11
- package/dist/browser.js +6 -6
- package/dist/compiler/compiler.d.ts +25 -38
- package/dist/compiler/compiler.js +44 -50
- package/dist/debug-service/debug-service.d.ts +3 -3
- package/dist/debug-service/debug-service.js +4 -3
- package/dist/katas-content.generated.js +139 -72
- package/dist/katas-content.generated.md.js +139 -72
- package/dist/language-service/language-service.d.ts +4 -4
- package/dist/language-service/language-service.js +10 -3
- package/dist/main.d.ts +3 -6
- package/dist/main.js +4 -4
- package/dist/samples.generated.js +4 -4
- package/docs/Microsoft.Quantum.Arrays/All.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Any.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Chunks.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/CircularlyShifted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/ColumnAt.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Count.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Diagonal.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/DrawMany.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Enumerated.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Excluding.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Filtered.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/FlatMapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Flattened.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Fold.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/ForEach.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Head.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/HeadAndRest.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IndexOf.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IndexRange.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Interleaved.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsEmpty.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsRectangularArray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsSorted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/IsSquareArray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Mapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MappedByIndex.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MappedOverRange.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Most.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/MostAndTail.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Padded.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Partitioned.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Rest.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Reversed.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/SequenceI.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/SequenceL.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Sorted.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Subarray.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Swapped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Tail.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Transposed.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Unzipped.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Where.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Windows.md +1 -1
- package/docs/Microsoft.Quantum.Arrays/Zipped.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyCNOTChain.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnBitString.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyControlledOnInt.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyP.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauli.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromBitString.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyPauliFromInt.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyQFT.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEach.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachA.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachC.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyToEachCA.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlace.md +1 -1
- package/docs/Microsoft.Quantum.Canon/ApplyXorInPlaceL.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CX.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CY.md +1 -1
- package/docs/Microsoft.Quantum.Canon/CZ.md +1 -1
- package/docs/Microsoft.Quantum.Canon/Fst.md +1 -1
- package/docs/Microsoft.Quantum.Canon/Snd.md +1 -1
- package/docs/Microsoft.Quantum.Canon/SwapReverseRegister.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BigIntAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsBigInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolArrayAsResultArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/BoolAsResult.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ComplexAsComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ComplexPolarAsComplex.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsBigInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/IntAsDouble.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsBoolArray.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultArrayAsInt.md +1 -1
- package/docs/Microsoft.Quantum.Convert/ResultAsBool.md +1 -1
- package/docs/Microsoft.Quantum.Core/IsRangeEmpty.md +1 -1
- package/docs/Microsoft.Quantum.Core/Length.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeEnd.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeReverse.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeStart.md +1 -1
- package/docs/Microsoft.Quantum.Core/RangeStep.md +1 -1
- package/docs/Microsoft.Quantum.Core/Repeated.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/DumpMachine.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/DumpRegister.md +1 -1
- package/docs/Microsoft.Quantum.Diagnostics/Fact.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/AdjustForSingleControl.md +21 -0
- package/docs/Microsoft.Quantum.Intrinsic/ApplyGlobalPhase.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CCH.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CCNOT.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/CCY.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CCZ.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CH.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CNOT.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/CRxx.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CRyy.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CRz.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CRzz.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CS.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CT.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/CollectControls.md +27 -0
- package/docs/Microsoft.Quantum.Intrinsic/ControllableGlobalPhase.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/EntangleForJointMeasure.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/Exp.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/GlobalPhase.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/H.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/I.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/IndicesOfNonIdentity.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/M.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/MapPauli.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/Measure.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Message.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/PhaseCCX.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/R.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R1.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/R1Frac.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/RFrac.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/RemovePauliI.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/Reset.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/ResetAll.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rx.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rxx.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Ry.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Ryy.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rz.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Rzz.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/S.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/SWAP.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/SpreadZ.md +18 -0
- package/docs/Microsoft.Quantum.Intrinsic/T.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/X.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Y.md +1 -1
- package/docs/Microsoft.Quantum.Intrinsic/Z.md +1 -1
- package/docs/Microsoft.Quantum.Logical/Xor.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsD.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsI.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsL.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/AbsSquaredComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/ApproximateFactorial.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcCos.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcCosh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcSin.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcSinh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTan.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTan2.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArcTanh.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArgComplex.md +1 -1
- package/docs/Microsoft.Quantum.Math/ArgComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/Binom.md +1 -1
- package/docs/Microsoft.Quantum.Math/BitSizeI.md +1 -1
- package/docs/Microsoft.Quantum.Math/BitSizeL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Ceiling.md +1 -1
- package/docs/Microsoft.Quantum.Math/Complex.md +1 -1
- package/docs/Microsoft.Quantum.Math/ComplexPolar.md +1 -1
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ContinuedFractionConvergentL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Cos.md +1 -1
- package/docs/Microsoft.Quantum.Math/Cosh.md +1 -1
- package/docs/Microsoft.Quantum.Math/DivRemI.md +1 -1
- package/docs/Microsoft.Quantum.Math/DivRemL.md +1 -1
- package/docs/Microsoft.Quantum.Math/DividedByC.md +1 -1
- package/docs/Microsoft.Quantum.Math/DividedByCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/E.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExpModI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExpModL.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExtendedGreatestCommonDivisorL.md +1 -1
- package/docs/Microsoft.Quantum.Math/ExtendedTruncation.md +18 -0
- package/docs/Microsoft.Quantum.Math/FactorialI.md +1 -1
- package/docs/Microsoft.Quantum.Math/FactorialL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Floor.md +1 -1
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorI.md +1 -1
- package/docs/Microsoft.Quantum.Math/GreatestCommonDivisorL.md +1 -1
- package/docs/Microsoft.Quantum.Math/HammingWeightI.md +1 -1
- package/docs/Microsoft.Quantum.Math/InverseModI.md +1 -1
- package/docs/Microsoft.Quantum.Math/InverseModL.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsCoprimeI.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsCoprimeL.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsInfinite.md +1 -1
- package/docs/Microsoft.Quantum.Math/IsNaN.md +1 -1
- package/docs/Microsoft.Quantum.Math/LargestFixedPoint.md +1 -1
- package/docs/Microsoft.Quantum.Math/Lg.md +1 -1
- package/docs/Microsoft.Quantum.Math/Log.md +1 -1
- package/docs/Microsoft.Quantum.Math/Log10.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogFactorialD.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogGammaD.md +1 -1
- package/docs/Microsoft.Quantum.Math/LogOf2.md +1 -1
- package/docs/Microsoft.Quantum.Math/Max.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxD.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxI.md +1 -1
- package/docs/Microsoft.Quantum.Math/MaxL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Min.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinD.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinI.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinL.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinusC.md +1 -1
- package/docs/Microsoft.Quantum.Math/MinusCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/ModulusI.md +1 -1
- package/docs/Microsoft.Quantum.Math/ModulusL.md +1 -1
- package/docs/Microsoft.Quantum.Math/NegationC.md +1 -1
- package/docs/Microsoft.Quantum.Math/NegationCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/PI.md +1 -1
- package/docs/Microsoft.Quantum.Math/PNorm.md +1 -1
- package/docs/Microsoft.Quantum.Math/PNormalized.md +1 -1
- package/docs/Microsoft.Quantum.Math/PlusC.md +1 -1
- package/docs/Microsoft.Quantum.Math/PlusCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/PowC.md +1 -1
- package/docs/Microsoft.Quantum.Math/PowCAsCP.md +24 -0
- package/docs/Microsoft.Quantum.Math/PowCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/RealMod.md +1 -1
- package/docs/Microsoft.Quantum.Math/Round.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignD.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignI.md +1 -1
- package/docs/Microsoft.Quantum.Math/SignL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sin.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sinh.md +1 -1
- package/docs/Microsoft.Quantum.Math/SmallestFixedPoint.md +1 -1
- package/docs/Microsoft.Quantum.Math/Sqrt.md +1 -1
- package/docs/Microsoft.Quantum.Math/SquaredNorm.md +1 -1
- package/docs/Microsoft.Quantum.Math/Tan.md +1 -1
- package/docs/Microsoft.Quantum.Math/Tanh.md +1 -1
- package/docs/Microsoft.Quantum.Math/TimesC.md +1 -1
- package/docs/Microsoft.Quantum.Math/TimesCP.md +1 -1
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountI.md +1 -1
- package/docs/Microsoft.Quantum.Math/TrailingZeroCountL.md +1 -1
- package/docs/Microsoft.Quantum.Math/Truncate.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetEachZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetX.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetY.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MResetZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureAllZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureEachZ.md +1 -1
- package/docs/Microsoft.Quantum.Measurement/MeasureInteger.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/AccountForEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/AuxQubitCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginEstimateCaching.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/BeginRepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/CczCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/EndEstimateCaching.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/EndRepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/MeasurementCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/PSSPCLayout.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RepeatEstimates.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationCount.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/RotationDepth.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/SingleVariant.md +1 -1
- package/docs/Microsoft.Quantum.ResourceEstimation/TCount.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/AddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyActionIfGreaterThanOrEqualConstant.md +23 -0
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyActionIfSumOverflows.md +23 -0
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyAsSinglyControlled.md +24 -0
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfGreaterOrEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ApplyIfLessOrEqualLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/FourierTDIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByI.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByIUsingIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByL.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLEUsingAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/IncByLUsingIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/LookAheadDKRSAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/MAJ.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/PhaseGradient.md +18 -0
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/ReflectAboutInteger.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGAddLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryCGIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.Arithmetic/RippleCarryTTKIncByLE.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/ApproximatelyPreparePureStateCP.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.StatePreparation/PreparePureStateD.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.TableLookup/EncodeUnary.md +18 -0
- package/docs/Microsoft.Quantum.Unstable.TableLookup/MustBeFixed.md +18 -0
- package/docs/Microsoft.Quantum.Unstable.TableLookup/Select.md +1 -1
- package/docs/Microsoft.Quantum.Unstable.TableLookup/Unlookup.md +22 -0
- package/docs/Microsoft.Quantum.Unstable.TableLookup/WriteMemoryContents.md +18 -0
- package/docs/toc.yml +31 -1
- package/lib/node/qsc_wasm.cjs +162 -158
- package/lib/node/qsc_wasm.d.cts +73 -36
- package/lib/node/qsc_wasm_bg.wasm +0 -0
- package/lib/web/qsc_wasm.d.ts +82 -45
- package/lib/web/qsc_wasm.js +152 -157
- package/lib/web/qsc_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/ux/estimatesOverview.tsx +2 -0
- package/ux/estimatesPanel.tsx +2 -0
- package/ux/qsharp-ux.css +30 -5
- package/ux/saveImage.tsx +107 -0
- package/ux/saveImageUtil.tsx +72 -0
- package/ux/scatterChart.tsx +31 -0
- package/docs/Microsoft.Quantum.Intrinsic/AND.md +0 -33
package/lib/node/qsc_wasm.cjs
CHANGED
|
@@ -110,15 +110,6 @@ function takeObject(idx) {
|
|
|
110
110
|
return ret;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
function addHeapObject(obj) {
|
|
114
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
115
|
-
const idx = heap_next;
|
|
116
|
-
heap_next = heap[idx];
|
|
117
|
-
|
|
118
|
-
heap[idx] = obj;
|
|
119
|
-
return idx;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
113
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
123
114
|
|
|
124
115
|
cachedTextDecoder.decode();
|
|
@@ -128,6 +119,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
128
119
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
129
120
|
}
|
|
130
121
|
|
|
122
|
+
function addHeapObject(obj) {
|
|
123
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
124
|
+
const idx = heap_next;
|
|
125
|
+
heap_next = heap[idx];
|
|
126
|
+
|
|
127
|
+
heap[idx] = obj;
|
|
128
|
+
return idx;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
131
|
let cachedBigInt64Memory0 = null;
|
|
132
132
|
|
|
133
133
|
function getBigInt64Memory0() {
|
|
@@ -232,10 +232,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
232
232
|
CLOSURE_DTORS.register(real, state, state);
|
|
233
233
|
return real;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
236
236
|
wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
let stack_pointer = 128;
|
|
240
|
+
|
|
241
|
+
function addBorrowedObject(obj) {
|
|
242
|
+
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
243
|
+
heap[--stack_pointer] = obj;
|
|
244
|
+
return stack_pointer;
|
|
245
|
+
}
|
|
246
|
+
|
|
239
247
|
let cachedUint32Memory0 = null;
|
|
240
248
|
|
|
241
249
|
function getUint32Memory0() {
|
|
@@ -245,6 +253,13 @@ function getUint32Memory0() {
|
|
|
245
253
|
return cachedUint32Memory0;
|
|
246
254
|
}
|
|
247
255
|
|
|
256
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
257
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
258
|
+
getUint32Memory0().set(arg, ptr / 4);
|
|
259
|
+
WASM_VECTOR_LEN = arg.length;
|
|
260
|
+
return ptr;
|
|
261
|
+
}
|
|
262
|
+
|
|
248
263
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
249
264
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
250
265
|
const mem = getUint32Memory0();
|
|
@@ -255,21 +270,6 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
255
270
|
return ptr;
|
|
256
271
|
}
|
|
257
272
|
|
|
258
|
-
let stack_pointer = 128;
|
|
259
|
-
|
|
260
|
-
function addBorrowedObject(obj) {
|
|
261
|
-
if (stack_pointer == 1) throw new Error('out of js stack');
|
|
262
|
-
heap[--stack_pointer] = obj;
|
|
263
|
-
return stack_pointer;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
function passArray32ToWasm0(arg, malloc) {
|
|
267
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
268
|
-
getUint32Memory0().set(arg, ptr / 4);
|
|
269
|
-
WASM_VECTOR_LEN = arg.length;
|
|
270
|
-
return ptr;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
273
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
274
274
|
ptr = ptr >>> 0;
|
|
275
275
|
const mem = getUint32Memory0();
|
|
@@ -305,6 +305,13 @@ module.exports.setLogLevel = function(level) {
|
|
|
305
305
|
wasm.setLogLevel(level);
|
|
306
306
|
};
|
|
307
307
|
|
|
308
|
+
function handleError(f, args) {
|
|
309
|
+
try {
|
|
310
|
+
return f.apply(this, args);
|
|
311
|
+
} catch (e) {
|
|
312
|
+
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
313
|
+
}
|
|
314
|
+
}
|
|
308
315
|
/**
|
|
309
316
|
* @returns {string}
|
|
310
317
|
*/
|
|
@@ -326,100 +333,76 @@ module.exports.git_hash = function() {
|
|
|
326
333
|
};
|
|
327
334
|
|
|
328
335
|
/**
|
|
329
|
-
* @param {
|
|
330
|
-
* @param {(string)[]} language_features
|
|
331
|
-
* @param {string} profile
|
|
336
|
+
* @param {IProgramConfig} program
|
|
332
337
|
* @returns {string}
|
|
333
338
|
*/
|
|
334
|
-
module.exports.get_qir = function(
|
|
335
|
-
let
|
|
336
|
-
let
|
|
339
|
+
module.exports.get_qir = function(program) {
|
|
340
|
+
let deferred2_0;
|
|
341
|
+
let deferred2_1;
|
|
337
342
|
try {
|
|
338
343
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
339
|
-
|
|
340
|
-
const len0 = WASM_VECTOR_LEN;
|
|
341
|
-
const ptr1 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
342
|
-
const len1 = WASM_VECTOR_LEN;
|
|
343
|
-
const ptr2 = passStringToWasm0(profile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
344
|
-
const len2 = WASM_VECTOR_LEN;
|
|
345
|
-
wasm.get_qir(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
344
|
+
wasm.get_qir(retptr, addHeapObject(program));
|
|
346
345
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
347
346
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
348
347
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
349
348
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
350
|
-
var
|
|
351
|
-
var
|
|
349
|
+
var ptr1 = r0;
|
|
350
|
+
var len1 = r1;
|
|
352
351
|
if (r3) {
|
|
353
|
-
|
|
352
|
+
ptr1 = 0; len1 = 0;
|
|
354
353
|
throw takeObject(r2);
|
|
355
354
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
return getStringFromWasm0(
|
|
355
|
+
deferred2_0 = ptr1;
|
|
356
|
+
deferred2_1 = len1;
|
|
357
|
+
return getStringFromWasm0(ptr1, len1);
|
|
359
358
|
} finally {
|
|
360
359
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
361
|
-
wasm.__wbindgen_export_4(
|
|
360
|
+
wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
|
|
362
361
|
}
|
|
363
362
|
};
|
|
364
363
|
|
|
365
364
|
/**
|
|
366
|
-
* @param {
|
|
365
|
+
* @param {IProgramConfig} program
|
|
367
366
|
* @param {string} params
|
|
368
|
-
* @param {(string)[]} language_features
|
|
369
|
-
* @param {string} targetProfile
|
|
370
367
|
* @returns {string}
|
|
371
368
|
*/
|
|
372
|
-
module.exports.get_estimates = function(
|
|
373
|
-
let
|
|
374
|
-
let
|
|
369
|
+
module.exports.get_estimates = function(program, params) {
|
|
370
|
+
let deferred3_0;
|
|
371
|
+
let deferred3_1;
|
|
375
372
|
try {
|
|
376
373
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
377
|
-
const ptr0 =
|
|
374
|
+
const ptr0 = passStringToWasm0(params, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
378
375
|
const len0 = WASM_VECTOR_LEN;
|
|
379
|
-
|
|
380
|
-
const len1 = WASM_VECTOR_LEN;
|
|
381
|
-
const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
382
|
-
const len2 = WASM_VECTOR_LEN;
|
|
383
|
-
const ptr3 = passStringToWasm0(targetProfile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
384
|
-
const len3 = WASM_VECTOR_LEN;
|
|
385
|
-
wasm.get_estimates(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
376
|
+
wasm.get_estimates(retptr, addHeapObject(program), ptr0, len0);
|
|
386
377
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
387
378
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
388
379
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
389
380
|
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
390
|
-
var
|
|
391
|
-
var
|
|
381
|
+
var ptr2 = r0;
|
|
382
|
+
var len2 = r1;
|
|
392
383
|
if (r3) {
|
|
393
|
-
|
|
384
|
+
ptr2 = 0; len2 = 0;
|
|
394
385
|
throw takeObject(r2);
|
|
395
386
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
return getStringFromWasm0(
|
|
387
|
+
deferred3_0 = ptr2;
|
|
388
|
+
deferred3_1 = len2;
|
|
389
|
+
return getStringFromWasm0(ptr2, len2);
|
|
399
390
|
} finally {
|
|
400
391
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
401
|
-
wasm.__wbindgen_export_4(
|
|
392
|
+
wasm.__wbindgen_export_4(deferred3_0, deferred3_1, 1);
|
|
402
393
|
}
|
|
403
394
|
};
|
|
404
395
|
|
|
405
396
|
/**
|
|
406
|
-
* @param {
|
|
407
|
-
* @param {string} targetProfile
|
|
408
|
-
* @param {(string)[]} language_features
|
|
397
|
+
* @param {IProgramConfig} program
|
|
409
398
|
* @param {boolean} simulate
|
|
410
399
|
* @param {IOperationInfo | undefined} [operation]
|
|
411
400
|
* @returns {any}
|
|
412
401
|
*/
|
|
413
|
-
module.exports.get_circuit = function(
|
|
402
|
+
module.exports.get_circuit = function(program, simulate, operation) {
|
|
414
403
|
try {
|
|
415
404
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
416
|
-
|
|
417
|
-
const len0 = WASM_VECTOR_LEN;
|
|
418
|
-
const ptr1 = passStringToWasm0(targetProfile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
419
|
-
const len1 = WASM_VECTOR_LEN;
|
|
420
|
-
const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
421
|
-
const len2 = WASM_VECTOR_LEN;
|
|
422
|
-
wasm.get_circuit(retptr, ptr0, len0, ptr1, len1, ptr2, len2, simulate, isLikeNone(operation) ? 0 : addHeapObject(operation));
|
|
405
|
+
wasm.get_circuit(retptr, addHeapObject(program), simulate, isLikeNone(operation) ? 0 : addHeapObject(operation));
|
|
423
406
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
424
407
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
425
408
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -530,26 +513,18 @@ module.exports.get_hir = function(code, language_features, profile) {
|
|
|
530
513
|
};
|
|
531
514
|
|
|
532
515
|
/**
|
|
533
|
-
* @param {
|
|
516
|
+
* @param {IProgramConfig} program
|
|
534
517
|
* @param {string} expr
|
|
535
518
|
* @param {Function} event_cb
|
|
536
519
|
* @param {number} shots
|
|
537
|
-
* @param {(string)[]} language_features
|
|
538
|
-
* @param {string} profile
|
|
539
520
|
* @returns {boolean}
|
|
540
521
|
*/
|
|
541
|
-
module.exports.run = function(
|
|
522
|
+
module.exports.run = function(program, expr, event_cb, shots) {
|
|
542
523
|
try {
|
|
543
524
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
544
|
-
const ptr0 =
|
|
525
|
+
const ptr0 = passStringToWasm0(expr, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
545
526
|
const len0 = WASM_VECTOR_LEN;
|
|
546
|
-
|
|
547
|
-
const len1 = WASM_VECTOR_LEN;
|
|
548
|
-
const ptr2 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
549
|
-
const len2 = WASM_VECTOR_LEN;
|
|
550
|
-
const ptr3 = passStringToWasm0(profile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
551
|
-
const len3 = WASM_VECTOR_LEN;
|
|
552
|
-
wasm.run(retptr, ptr0, len0, ptr1, len1, addBorrowedObject(event_cb), shots, ptr2, len2, ptr3, len3);
|
|
527
|
+
wasm.run(retptr, addHeapObject(program), ptr0, len0, addBorrowedObject(event_cb), shots);
|
|
553
528
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
554
529
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
555
530
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -581,39 +556,24 @@ module.exports.check_exercise_solution = function(solution_code, exercise_source
|
|
|
581
556
|
};
|
|
582
557
|
|
|
583
558
|
/**
|
|
584
|
-
* @param {
|
|
585
|
-
* @param {string | undefined} [targetProfile]
|
|
586
|
-
* @param {(string)[] | undefined} [languageFeatures]
|
|
559
|
+
* @param {IProgramConfig | undefined} [additional_program]
|
|
587
560
|
* @returns {(IDocFile)[]}
|
|
588
561
|
*/
|
|
589
|
-
module.exports.generate_docs = function(
|
|
562
|
+
module.exports.generate_docs = function(additional_program) {
|
|
590
563
|
try {
|
|
591
564
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
592
|
-
|
|
593
|
-
var len0 = WASM_VECTOR_LEN;
|
|
594
|
-
var ptr1 = isLikeNone(targetProfile) ? 0 : passStringToWasm0(targetProfile, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
595
|
-
var len1 = WASM_VECTOR_LEN;
|
|
596
|
-
var ptr2 = isLikeNone(languageFeatures) ? 0 : passArrayJsValueToWasm0(languageFeatures, wasm.__wbindgen_export_0);
|
|
597
|
-
var len2 = WASM_VECTOR_LEN;
|
|
598
|
-
wasm.generate_docs(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
565
|
+
wasm.generate_docs(retptr, isLikeNone(additional_program) ? 0 : addHeapObject(additional_program));
|
|
599
566
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
600
567
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
601
|
-
var
|
|
568
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
602
569
|
wasm.__wbindgen_export_4(r0, r1 * 4, 4);
|
|
603
|
-
return
|
|
570
|
+
return v1;
|
|
604
571
|
} finally {
|
|
605
572
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
606
573
|
}
|
|
607
574
|
};
|
|
608
575
|
|
|
609
|
-
function
|
|
610
|
-
try {
|
|
611
|
-
return f.apply(this, args);
|
|
612
|
-
} catch (e) {
|
|
613
|
-
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function __wbg_adapter_176(arg0, arg1, arg2, arg3) {
|
|
576
|
+
function __wbg_adapter_194(arg0, arg1, arg2, arg3) {
|
|
617
577
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
618
578
|
}
|
|
619
579
|
|
|
@@ -647,34 +607,26 @@ class DebugService {
|
|
|
647
607
|
return this;
|
|
648
608
|
}
|
|
649
609
|
/**
|
|
650
|
-
* @param {
|
|
651
|
-
* @param {string}
|
|
652
|
-
* @param {string | undefined} entry
|
|
653
|
-
* @param {(string)[]} language_features
|
|
610
|
+
* @param {IProgramConfig} program
|
|
611
|
+
* @param {string | undefined} [entry]
|
|
654
612
|
* @returns {string}
|
|
655
613
|
*/
|
|
656
|
-
|
|
657
|
-
let
|
|
658
|
-
let
|
|
614
|
+
load_program(program, entry) {
|
|
615
|
+
let deferred2_0;
|
|
616
|
+
let deferred2_1;
|
|
659
617
|
try {
|
|
660
618
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
const len1 = WASM_VECTOR_LEN;
|
|
665
|
-
var ptr2 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
666
|
-
var len2 = WASM_VECTOR_LEN;
|
|
667
|
-
const ptr3 = passArrayJsValueToWasm0(language_features, wasm.__wbindgen_export_0);
|
|
668
|
-
const len3 = WASM_VECTOR_LEN;
|
|
669
|
-
wasm.debugservice_load_source(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
619
|
+
var ptr0 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
620
|
+
var len0 = WASM_VECTOR_LEN;
|
|
621
|
+
wasm.debugservice_load_program(retptr, this.__wbg_ptr, addHeapObject(program), ptr0, len0);
|
|
670
622
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
671
623
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
672
|
-
|
|
673
|
-
|
|
624
|
+
deferred2_0 = r0;
|
|
625
|
+
deferred2_1 = r1;
|
|
674
626
|
return getStringFromWasm0(r0, r1);
|
|
675
627
|
} finally {
|
|
676
628
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
677
|
-
wasm.__wbindgen_export_4(
|
|
629
|
+
wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
|
|
678
630
|
}
|
|
679
631
|
}
|
|
680
632
|
/**
|
|
@@ -848,13 +800,11 @@ class LanguageService {
|
|
|
848
800
|
}
|
|
849
801
|
/**
|
|
850
802
|
* @param {(uri: string, version: number | undefined, diagnostics: VSDiagnostic[]) => void} diagnostics_callback
|
|
851
|
-
* @param {
|
|
852
|
-
* @param {(uri: string) => Promise<[string, number][]>} list_directory
|
|
853
|
-
* @param {(uri: string) => Promise<{ manifestDirectory: string }| null>} get_manifest
|
|
803
|
+
* @param {IProjectHost} host
|
|
854
804
|
* @returns {Promise<any>}
|
|
855
805
|
*/
|
|
856
|
-
start_background_work(diagnostics_callback,
|
|
857
|
-
const ret = wasm.languageservice_start_background_work(this.__wbg_ptr, addHeapObject(diagnostics_callback), addHeapObject(
|
|
806
|
+
start_background_work(diagnostics_callback, host) {
|
|
807
|
+
const ret = wasm.languageservice_start_background_work(this.__wbg_ptr, addHeapObject(diagnostics_callback), addHeapObject(host));
|
|
858
808
|
return takeObject(ret);
|
|
859
809
|
}
|
|
860
810
|
/**
|
|
@@ -1080,21 +1030,21 @@ class ProjectLoader {
|
|
|
1080
1030
|
wasm.__wbg_projectloader_free(ptr);
|
|
1081
1031
|
}
|
|
1082
1032
|
/**
|
|
1083
|
-
* @param {
|
|
1084
|
-
* @param {(uri: string) => Promise<[string, number][]>} list_directory
|
|
1085
|
-
* @param {(uri: string) => Promise<{ manifestDirectory: string }| null>} get_manifest
|
|
1033
|
+
* @param {IProjectHost} project_host
|
|
1086
1034
|
*/
|
|
1087
|
-
constructor(
|
|
1088
|
-
const ret = wasm.projectloader_new(addHeapObject(
|
|
1035
|
+
constructor(project_host) {
|
|
1036
|
+
const ret = wasm.projectloader_new(addHeapObject(project_host));
|
|
1089
1037
|
this.__wbg_ptr = ret >>> 0;
|
|
1090
1038
|
return this;
|
|
1091
1039
|
}
|
|
1092
1040
|
/**
|
|
1093
|
-
* @param {
|
|
1094
|
-
* @returns {Promise<
|
|
1041
|
+
* @param {string} directory
|
|
1042
|
+
* @returns {Promise<IProjectConfig>}
|
|
1095
1043
|
*/
|
|
1096
|
-
|
|
1097
|
-
const
|
|
1044
|
+
load_project_with_deps(directory) {
|
|
1045
|
+
const ptr0 = passStringToWasm0(directory, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1046
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1047
|
+
const ret = wasm.projectloader_load_project_with_deps(this.__wbg_ptr, ptr0, len0);
|
|
1098
1048
|
return takeObject(ret);
|
|
1099
1049
|
}
|
|
1100
1050
|
}
|
|
@@ -1120,6 +1070,11 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
1120
1070
|
takeObject(arg0);
|
|
1121
1071
|
};
|
|
1122
1072
|
|
|
1073
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
1074
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1075
|
+
return addHeapObject(ret);
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1123
1078
|
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
1124
1079
|
const obj = takeObject(arg0).original;
|
|
1125
1080
|
if (obj.cnt-- == 1) {
|
|
@@ -1187,11 +1142,6 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
1187
1142
|
return addHeapObject(ret);
|
|
1188
1143
|
};
|
|
1189
1144
|
|
|
1190
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
1191
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1192
|
-
return addHeapObject(ret);
|
|
1193
|
-
};
|
|
1194
|
-
|
|
1195
1145
|
module.exports.__wbg_getstacktracelimit_1795d5c8573c0904 = function(arg0) {
|
|
1196
1146
|
const ret = Error.stackTraceLimit;
|
|
1197
1147
|
getInt32Memory0()[arg0 / 4 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
@@ -1215,9 +1165,17 @@ module.exports.__wbg_stack_3090cd8fd3702c6e = function(arg0, arg1) {
|
|
|
1215
1165
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1216
1166
|
};
|
|
1217
1167
|
|
|
1218
|
-
module.exports.
|
|
1219
|
-
const ret = getObject(
|
|
1220
|
-
|
|
1168
|
+
module.exports.__wbg_profile_431ee5e29ff55ee3 = function(arg0, arg1) {
|
|
1169
|
+
const ret = getObject(arg1).profile;
|
|
1170
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1171
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1172
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
1173
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
module.exports.__wbg_packageGraphSources_612f292bc2b31ff9 = function(arg0) {
|
|
1177
|
+
const ret = getObject(arg0).packageGraphSources;
|
|
1178
|
+
return addHeapObject(ret);
|
|
1221
1179
|
};
|
|
1222
1180
|
|
|
1223
1181
|
module.exports.__wbindgen_is_function = function(arg0) {
|
|
@@ -1235,6 +1193,31 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
1235
1193
|
return addHeapObject(ret);
|
|
1236
1194
|
};
|
|
1237
1195
|
|
|
1196
|
+
module.exports.__wbg_readFile_3776aacd85682587 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1197
|
+
const ret = getObject(arg0).readFile(getStringFromWasm0(arg1, arg2));
|
|
1198
|
+
return addHeapObject(ret);
|
|
1199
|
+
}, arguments) };
|
|
1200
|
+
|
|
1201
|
+
module.exports.__wbg_listDirectory_271976dbfbb2dc9f = function(arg0, arg1, arg2) {
|
|
1202
|
+
const ret = getObject(arg0).listDirectory(getStringFromWasm0(arg1, arg2));
|
|
1203
|
+
return addHeapObject(ret);
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
module.exports.__wbg_resolvePath_674360b3ad1067f3 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1207
|
+
const ret = getObject(arg0).resolvePath(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1208
|
+
return addHeapObject(ret);
|
|
1209
|
+
};
|
|
1210
|
+
|
|
1211
|
+
module.exports.__wbg_fetchGithub_67eddbdd1e277279 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
|
|
1212
|
+
const ret = getObject(arg0).fetchGithub(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6), getStringFromWasm0(arg7, arg8));
|
|
1213
|
+
return addHeapObject(ret);
|
|
1214
|
+
}, arguments) };
|
|
1215
|
+
|
|
1216
|
+
module.exports.__wbg_findManifestDirectory_1e22fa316acdbeff = function(arg0, arg1, arg2) {
|
|
1217
|
+
const ret = getObject(arg0).findManifestDirectory(getStringFromWasm0(arg1, arg2));
|
|
1218
|
+
return addHeapObject(ret);
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1238
1221
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1239
1222
|
const ret = getObject(arg0) == getObject(arg1);
|
|
1240
1223
|
return ret;
|
|
@@ -1329,6 +1312,11 @@ module.exports.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
|
|
|
1329
1312
|
return addHeapObject(ret);
|
|
1330
1313
|
};
|
|
1331
1314
|
|
|
1315
|
+
module.exports.__wbg_new_d9bc3a0147634640 = function() {
|
|
1316
|
+
const ret = new Map();
|
|
1317
|
+
return addHeapObject(ret);
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1332
1320
|
module.exports.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
1333
1321
|
const ret = getObject(arg0).next;
|
|
1334
1322
|
return addHeapObject(ret);
|
|
@@ -1378,15 +1366,21 @@ module.exports.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
|
1378
1366
|
return ret;
|
|
1379
1367
|
};
|
|
1380
1368
|
|
|
1381
|
-
module.exports.
|
|
1382
|
-
|
|
1369
|
+
module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
1370
|
+
let result;
|
|
1371
|
+
try {
|
|
1372
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
1373
|
+
} catch (_) {
|
|
1374
|
+
result = false;
|
|
1375
|
+
}
|
|
1376
|
+
const ret = result;
|
|
1383
1377
|
return ret;
|
|
1384
1378
|
};
|
|
1385
1379
|
|
|
1386
|
-
module.exports.
|
|
1380
|
+
module.exports.__wbg_instanceof_Error_e20bb56fd5591a93 = function(arg0) {
|
|
1387
1381
|
let result;
|
|
1388
1382
|
try {
|
|
1389
|
-
result = getObject(arg0) instanceof
|
|
1383
|
+
result = getObject(arg0) instanceof Error;
|
|
1390
1384
|
} catch (_) {
|
|
1391
1385
|
result = false;
|
|
1392
1386
|
}
|
|
@@ -1394,6 +1388,11 @@ module.exports.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
|
1394
1388
|
return ret;
|
|
1395
1389
|
};
|
|
1396
1390
|
|
|
1391
|
+
module.exports.__wbg_message_5bf28016c2b49cfb = function(arg0) {
|
|
1392
|
+
const ret = getObject(arg0).message;
|
|
1393
|
+
return addHeapObject(ret);
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1397
1396
|
module.exports.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1398
1397
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1399
1398
|
return addHeapObject(ret);
|
|
@@ -1415,6 +1414,11 @@ module.exports.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) {
|
|
|
1415
1414
|
return ret;
|
|
1416
1415
|
};
|
|
1417
1416
|
|
|
1417
|
+
module.exports.__wbg_set_8417257aaedc936b = function(arg0, arg1, arg2) {
|
|
1418
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1419
|
+
return addHeapObject(ret);
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1418
1422
|
module.exports.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
|
|
1419
1423
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
1420
1424
|
return ret;
|
|
@@ -1437,7 +1441,7 @@ module.exports.__wbg_new_81740750da40724f = function(arg0, arg1) {
|
|
|
1437
1441
|
const a = state0.a;
|
|
1438
1442
|
state0.a = 0;
|
|
1439
1443
|
try {
|
|
1440
|
-
return
|
|
1444
|
+
return __wbg_adapter_194(a, state0.b, arg0, arg1);
|
|
1441
1445
|
} finally {
|
|
1442
1446
|
state0.a = a;
|
|
1443
1447
|
}
|
|
@@ -1548,8 +1552,8 @@ module.exports.__wbindgen_memory = function() {
|
|
|
1548
1552
|
return addHeapObject(ret);
|
|
1549
1553
|
};
|
|
1550
1554
|
|
|
1551
|
-
module.exports.
|
|
1552
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1555
|
+
module.exports.__wbindgen_closure_wrapper908 = function(arg0, arg1, arg2) {
|
|
1556
|
+
const ret = makeMutClosure(arg0, arg1, 380, __wbg_adapter_52);
|
|
1553
1557
|
return addHeapObject(ret);
|
|
1554
1558
|
};
|
|
1555
1559
|
|