@tiqian/shared 0.0.0-stage.1 → 0.1.0-alpha.9

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.
Files changed (260) hide show
  1. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.d.ts +11 -0
  2. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.js +21 -0
  3. package/dist/org/tiqian/clreq/AutoSpaceMode.d.ts +16 -0
  4. package/dist/org/tiqian/clreq/AutoSpaceMode.js +17 -0
  5. package/dist/org/tiqian/clreq/AutoSpacePolicy.d.ts +13 -0
  6. package/dist/org/tiqian/clreq/AutoSpacePolicy.js +23 -0
  7. package/dist/org/tiqian/clreq/BopomofoReading.d.ts +12 -0
  8. package/dist/org/tiqian/clreq/BopomofoReading.js +86 -0
  9. package/dist/org/tiqian/clreq/BopomofoTone.d.ts +28 -0
  10. package/dist/org/tiqian/clreq/BopomofoTone.js +26 -0
  11. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.d.ts +16 -0
  12. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.js +17 -0
  13. package/dist/org/tiqian/clreq/ClreqProfile.d.ts +27 -0
  14. package/dist/org/tiqian/clreq/ClreqProfile.js +58 -0
  15. package/dist/org/tiqian/clreq/ClreqRegion.d.ts +20 -0
  16. package/dist/org/tiqian/clreq/ClreqRegion.js +20 -0
  17. package/dist/org/tiqian/clreq/ClreqStrictness.d.ts +16 -0
  18. package/dist/org/tiqian/clreq/ClreqStrictness.js +17 -0
  19. package/dist/org/tiqian/clreq/GlueSide.d.ts +16 -0
  20. package/dist/org/tiqian/clreq/GlueSide.js +17 -0
  21. package/dist/org/tiqian/clreq/HangingPunctuationStyle.d.ts +12 -0
  22. package/dist/org/tiqian/clreq/HangingPunctuationStyle.js +14 -0
  23. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.d.ts +12 -0
  24. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.js +14 -0
  25. package/dist/org/tiqian/clreq/KinsokuLevel.d.ts +20 -0
  26. package/dist/org/tiqian/clreq/KinsokuLevel.js +20 -0
  27. package/dist/org/tiqian/clreq/KinsokuMode.d.ts +14 -0
  28. package/dist/org/tiqian/clreq/KinsokuMode.js +2 -0
  29. package/dist/org/tiqian/clreq/KinsokuModes.d.ts +11 -0
  30. package/dist/org/tiqian/clreq/KinsokuModes.js +71 -0
  31. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.d.ts +16 -0
  32. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.js +17 -0
  33. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.d.ts +12 -0
  34. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.js +14 -0
  35. package/dist/org/tiqian/clreq/PunctuationClass.d.ts +44 -0
  36. package/dist/org/tiqian/clreq/PunctuationClass.js +38 -0
  37. package/dist/org/tiqian/clreq/PunctuationGluePlacement.d.ts +12 -0
  38. package/dist/org/tiqian/clreq/PunctuationGluePlacement.js +14 -0
  39. package/dist/org/tiqian/clreq/PunctuationGluePlacements.d.ts +9 -0
  40. package/dist/org/tiqian/clreq/PunctuationGluePlacements.js +49 -0
  41. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.d.ts +8 -0
  42. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.js +16 -0
  43. package/dist/org/tiqian/clreq/ResolvedKinsoku.d.ts +12 -0
  44. package/dist/org/tiqian/clreq/ResolvedKinsoku.js +43 -0
  45. package/dist/org/tiqian/core/Cluster.d.ts +13 -0
  46. package/dist/org/tiqian/core/Cluster.js +24 -0
  47. package/dist/org/tiqian/core/EastAsianSpacingData.d.ts +4 -0
  48. package/dist/org/tiqian/core/EastAsianSpacingData.js +399 -0
  49. package/dist/org/tiqian/core/EastAsianSpacingEdges.d.ts +8 -0
  50. package/dist/org/tiqian/core/EastAsianSpacingEdges.js +14 -0
  51. package/dist/org/tiqian/core/EastAsianSpacingValue.d.ts +20 -0
  52. package/dist/org/tiqian/core/EastAsianSpacingValue.js +20 -0
  53. package/dist/org/tiqian/core/Ic.d.ts +7 -0
  54. package/dist/org/tiqian/core/Ic.js +17 -0
  55. package/dist/org/tiqian/core/IllegalStateException.d.ts +4 -0
  56. package/dist/org/tiqian/core/IllegalStateException.js +8 -0
  57. package/dist/org/tiqian/core/IntRange.d.ts +12 -0
  58. package/dist/org/tiqian/core/IntRange.js +30 -0
  59. package/dist/org/tiqian/core/LineEndReason.d.ts +16 -0
  60. package/dist/org/tiqian/core/LineEndReason.js +17 -0
  61. package/dist/org/tiqian/core/SourceBoundaryBias.d.ts +16 -0
  62. package/dist/org/tiqian/core/SourceBoundaryBias.js +17 -0
  63. package/dist/org/tiqian/core/SourceInteractionBoundaries.d.ts +29 -0
  64. package/dist/org/tiqian/core/SourceInteractionBoundaries.js +193 -0
  65. package/dist/org/tiqian/core/TextRange.d.ts +11 -0
  66. package/dist/org/tiqian/core/TextRange.js +40 -0
  67. package/dist/org/tiqian/core/TextRangeError.d.ts +11 -0
  68. package/dist/org/tiqian/core/TextRangeError.js +2 -0
  69. package/dist/org/tiqian/core/TiqianIllegalArgumentException.d.ts +6 -0
  70. package/dist/org/tiqian/core/TiqianIllegalArgumentException.js +21 -0
  71. package/dist/org/tiqian/core/TiqianNoSuchElementException.d.ts +10 -0
  72. package/dist/org/tiqian/core/TiqianNoSuchElementException.js +16 -0
  73. package/dist/org/tiqian/core/UnicodeCombiningMarkData.d.ts +3 -0
  74. package/dist/org/tiqian/core/UnicodeCombiningMarkData.js +109 -0
  75. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.d.ts +16 -0
  76. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.js +88 -0
  77. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.d.ts +3 -0
  78. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.js +35 -0
  79. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.d.ts +3 -0
  80. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.js +64 -0
  81. package/dist/org/tiqian/core/UnicodeNumber.d.ts +3 -0
  82. package/dist/org/tiqian/core/UnicodeNumber.js +14 -0
  83. package/dist/org/tiqian/core/UnicodeNumberData.d.ts +3 -0
  84. package/dist/org/tiqian/core/UnicodeNumberData.js +64 -0
  85. package/dist/org/tiqian/core/UnicodeScriptEvidence.d.ts +16 -0
  86. package/dist/org/tiqian/core/UnicodeScriptEvidence.js +17 -0
  87. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.d.ts +7 -0
  88. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.js +17 -0
  89. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.d.ts +4 -0
  90. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.js +295 -0
  91. package/dist/org/tiqian/core/UnicodeWordCharacter.d.ts +6 -0
  92. package/dist/org/tiqian/core/UnicodeWordCharacter.js +17 -0
  93. package/dist/org/tiqian/core/UnicodeWordCharacterData.d.ts +3 -0
  94. package/dist/org/tiqian/core/UnicodeWordCharacterData.js +234 -0
  95. package/dist/org/tiqian/font/FontRole.d.ts +28 -0
  96. package/dist/org/tiqian/font/FontRole.js +26 -0
  97. package/dist/org/tiqian/font/FontRoleContext.d.ts +13 -0
  98. package/dist/org/tiqian/font/FontRoleContext.js +28 -0
  99. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.d.ts +51 -0
  100. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.js +305 -0
  101. package/dist/org/tiqian/layout/LineOptimization.d.ts +124 -0
  102. package/dist/org/tiqian/layout/LineOptimization.js +298 -0
  103. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.d.ts +86 -0
  104. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.js +415 -0
  105. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.d.ts +5 -0
  106. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.js +33 -0
  107. package/dist/org/tiqian/layout/QuotePairAnalyzer.d.ts +63 -0
  108. package/dist/org/tiqian/layout/QuotePairAnalyzer.js +251 -0
  109. package/dist/org/tiqian/linebreak/BreakKind.d.ts +20 -0
  110. package/dist/org/tiqian/linebreak/BreakKind.js +20 -0
  111. package/dist/org/tiqian/shared/SnapshotValueStyle.d.ts +11 -0
  112. package/dist/org/tiqian/shared/SnapshotValueStyle.js +64 -0
  113. package/dist/org/tiqian/shared/ValueStyleInterner.d.ts +7 -0
  114. package/dist/org/tiqian/shared/ValueStyleInterner.js +23 -0
  115. package/dist/org/tiqian/shared/html/CompoundSelector.d.ts +28 -0
  116. package/dist/org/tiqian/shared/html/CompoundSelector.js +247 -0
  117. package/dist/org/tiqian/shared/html/DomAttribute.d.ts +5 -0
  118. package/dist/org/tiqian/shared/html/DomAttribute.js +10 -0
  119. package/dist/org/tiqian/shared/html/DomNode.d.ts +10 -0
  120. package/dist/org/tiqian/shared/html/DomNode.js +2 -0
  121. package/dist/org/tiqian/shared/html/DomParser.d.ts +16 -0
  122. package/dist/org/tiqian/shared/html/DomParser.js +84 -0
  123. package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.d.ts +4 -0
  124. package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.js +2 -0
  125. package/dist/org/tiqian/shared/html/HtmlError.d.ts +16 -0
  126. package/dist/org/tiqian/shared/html/HtmlError.js +17 -0
  127. package/dist/org/tiqian/shared/html/HtmlNameCase.d.ts +3 -0
  128. package/dist/org/tiqian/shared/html/HtmlNameCase.js +20 -0
  129. package/dist/org/tiqian/shared/html/HtmlOpeningTag.d.ts +6 -0
  130. package/dist/org/tiqian/shared/html/HtmlOpeningTag.js +12 -0
  131. package/dist/org/tiqian/shared/html/HtmlParseException.d.ts +6 -0
  132. package/dist/org/tiqian/shared/html/HtmlParseException.js +19 -0
  133. package/dist/org/tiqian/shared/html/HtmlScan.d.ts +16 -0
  134. package/dist/org/tiqian/shared/html/HtmlScan.js +191 -0
  135. package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.d.ts +5 -0
  136. package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.js +10 -0
  137. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.d.ts +8 -0
  138. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.js +2 -0
  139. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.d.ts +6 -0
  140. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.js +2 -0
  141. package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.d.ts +7 -0
  142. package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.js +2 -0
  143. package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.d.ts +4 -0
  144. package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.js +2 -0
  145. package/dist/org/tiqian/shared/prepared_dom/Evidence.d.ts +33 -0
  146. package/dist/org/tiqian/shared/prepared_dom/Evidence.js +251 -0
  147. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.d.ts +12 -0
  148. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.js +14 -0
  149. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.d.ts +7 -0
  150. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.js +2 -0
  151. package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.d.ts +6 -0
  152. package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.js +2 -0
  153. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.d.ts +4 -0
  154. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.js +2 -0
  155. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.d.ts +9 -0
  156. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.js +2 -0
  157. package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.d.ts +5 -0
  158. package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.js +8 -0
  159. package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.d.ts +6 -0
  160. package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.js +2 -0
  161. package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.d.ts +5 -0
  162. package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.js +2 -0
  163. package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.d.ts +6 -0
  164. package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.js +2 -0
  165. package/dist/org/tiqian/shared/prepared_dom/Markup.d.ts +30 -0
  166. package/dist/org/tiqian/shared/prepared_dom/Markup.js +344 -0
  167. package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.d.ts +12 -0
  168. package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.js +2 -0
  169. package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.d.ts +7 -0
  170. package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.js +2 -0
  171. package/dist/org/tiqian/shared/prepared_dom/MarkupNode.d.ts +5 -0
  172. package/dist/org/tiqian/shared/prepared_dom/MarkupNode.js +2 -0
  173. package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.d.ts +8 -0
  174. package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.js +2 -0
  175. package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.d.ts +10 -0
  176. package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.js +2 -0
  177. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.d.ts +22 -0
  178. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.js +457 -0
  179. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.d.ts +15 -0
  180. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.js +2 -0
  181. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.d.ts +8 -0
  182. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.js +2 -0
  183. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.d.ts +11 -0
  184. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.js +2 -0
  185. package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.d.ts +5 -0
  186. package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.js +2 -0
  187. package/dist/org/tiqian/shared/prepared_dom/PreparedDom.d.ts +28 -0
  188. package/dist/org/tiqian/shared/prepared_dom/PreparedDom.js +184 -0
  189. package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.d.ts +15 -0
  190. package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.js +2 -0
  191. package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.d.ts +6 -0
  192. package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.js +25 -0
  193. package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.d.ts +11 -0
  194. package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.js +93 -0
  195. package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.d.ts +4 -0
  196. package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.js +2 -0
  197. package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.d.ts +16 -0
  198. package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.js +2 -0
  199. package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.d.ts +19 -0
  200. package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.js +2 -0
  201. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.d.ts +26 -0
  202. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.js +2 -0
  203. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.d.ts +13 -0
  204. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.js +2 -0
  205. package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.d.ts +6 -0
  206. package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.js +2 -0
  207. package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.d.ts +23 -0
  208. package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.js +2 -0
  209. package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.d.ts +19 -0
  210. package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.js +2 -0
  211. package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.d.ts +32 -0
  212. package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.js +2 -0
  213. package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.d.ts +10 -0
  214. package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.js +2 -0
  215. package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.d.ts +4 -0
  216. package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.js +2 -0
  217. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.d.ts +16 -0
  218. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.js +48 -0
  219. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.d.ts +11 -0
  220. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.js +21 -0
  221. package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.d.ts +9 -0
  222. package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.js +2 -0
  223. package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.d.ts +4 -0
  224. package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.js +2 -0
  225. package/dist/org/tiqian/shared/prepared_dom/StyleDelta.d.ts +5 -0
  226. package/dist/org/tiqian/shared/prepared_dom/StyleDelta.js +2 -0
  227. package/dist/org/tiqian/shared/snapshot/SnapshotSource.d.ts +24 -0
  228. package/dist/org/tiqian/shared/snapshot/SnapshotSource.js +135 -0
  229. package/dist/org/tiqian/test/TestHelpers.d.ts +5 -0
  230. package/dist/org/tiqian/test/TestHelpers.js +27 -0
  231. package/dist/org/tiqian/test/trace/TestTrace.d.ts +6 -0
  232. package/dist/org/tiqian/test/trace/TestTrace.js +8 -0
  233. package/dist/org/tiqian/test/trace/TestTracePlatform.d.ts +6 -0
  234. package/dist/org/tiqian/test/trace/TestTracePlatform.js +78 -0
  235. package/dist/org/tiqian/test/trace/TestTraceRecorder.d.ts +9 -0
  236. package/dist/org/tiqian/test/trace/TestTraceRecorder.js +36 -0
  237. package/dist/org/tiqian/test/trace/TestTraceRender.d.ts +47 -0
  238. package/dist/org/tiqian/test/trace/TestTraceRender.js +690 -0
  239. package/dist/org/tiqian/test/trace/TestTraceStore.d.ts +18 -0
  240. package/dist/org/tiqian/test/trace/TestTraceStore.js +149 -0
  241. package/dist/org/tiqian/test/trace/TraceAssertionError.d.ts +5 -0
  242. package/dist/org/tiqian/test/trace/TraceAssertionError.js +2 -0
  243. package/dist/org/tiqian/test/trace/TraceAssertionException.d.ts +6 -0
  244. package/dist/org/tiqian/test/trace/TraceAssertionException.js +16 -0
  245. package/dist/org/tiqian/test/trace/TraceField.d.ts +5 -0
  246. package/dist/org/tiqian/test/trace/TraceField.js +10 -0
  247. package/dist/org/tiqian/test/trace/TraceFormat.d.ts +21 -0
  248. package/dist/org/tiqian/test/trace/TraceFormat.js +184 -0
  249. package/dist/runtime.d.ts +96 -0
  250. package/dist/runtime.js +1612 -0
  251. package/dist/std/FsError.d.ts +48 -0
  252. package/dist/std/FsError.js +2 -0
  253. package/dist/std/FsException.d.ts +6 -0
  254. package/dist/std/FsException.js +45 -0
  255. package/dist/std/UStringException.d.ts +6 -0
  256. package/dist/std/UStringException.js +21 -0
  257. package/dist/std/UStringFault.d.ts +9 -0
  258. package/dist/std/UStringFault.js +2 -0
  259. package/package.json +22 -4
  260. package/README.md +0 -3
@@ -0,0 +1,18 @@
1
+ export declare class TraceSectionState {
2
+ readonly name: string;
3
+ lines: string[];
4
+ constructor(name: string);
5
+ }
6
+ export declare class TraceClassState {
7
+ readonly className: string;
8
+ readonly sections: TraceSectionState[];
9
+ constructor(className: string);
10
+ }
11
+ export declare class TestTraceStore {
12
+ private static readonly classes;
13
+ static open(className: string, sectionName: string): void;
14
+ static append(className: string, sectionName: string, line: string): void;
15
+ static classText(className: string): string;
16
+ private static findClass;
17
+ private static findSection;
18
+ }
@@ -0,0 +1,149 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ import { UStringException } from "./../../../../std/UStringException.js";
3
+ export class TraceSectionState {
4
+ name;
5
+ lines;
6
+ constructor(name) {
7
+ this.name = name;
8
+ this.lines = [];
9
+ }
10
+ }
11
+ export class TraceClassState {
12
+ className;
13
+ sections;
14
+ constructor(className) {
15
+ this.className = className;
16
+ this.sections = [];
17
+ }
18
+ }
19
+ export class TestTraceStore {
20
+ static classes = [];
21
+ static open(className, sectionName) {
22
+ let classState = TestTraceStore.findClass(className);
23
+ if (classState === null) {
24
+ classState = new TraceClassState(className);
25
+ TestTraceStore.classes.push((classState));
26
+ }
27
+ const section = TestTraceStore.findSection((classState), sectionName);
28
+ if (section === null) {
29
+ classState.sections.push(new TraceSectionState(sectionName));
30
+ }
31
+ }
32
+ static append(className, sectionName, line) {
33
+ const classState = TestTraceStore.findClass(className);
34
+ if (classState === null) {
35
+ return;
36
+ }
37
+ const section = TestTraceStore.findSection((classState), sectionName);
38
+ if (section === null) {
39
+ return;
40
+ }
41
+ const tail = section.lines.length > 0 ? section.lines[section.lines.length - 1].charCodeAt(section.lines[section.lines.length - 1].length - 1) : NaN;
42
+ if (tail >= 55296 && tail <= 56319 && line.length > 0 && !(line.charCodeAt(0) >= 56320 && line.charCodeAt(0) <= 57343)) {
43
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail });
44
+ }
45
+ if (line.length > 0) {
46
+ section.lines.push(line);
47
+ }
48
+ const tail2 = section.lines.length > 0 ? section.lines[section.lines.length - 1].charCodeAt(section.lines[section.lines.length - 1].length - 1) : NaN;
49
+ if (tail2 >= 55296 && tail2 <= 56319) {
50
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail2 });
51
+ }
52
+ section.lines.push("\n");
53
+ }
54
+ static classText(className) {
55
+ const classState = TestTraceStore.findClass(className);
56
+ if (classState === null) {
57
+ return `class: ${className}\n`;
58
+ }
59
+ let output = [];
60
+ const tail3 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
61
+ if (tail3 >= 55296 && tail3 <= 56319) {
62
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail3 });
63
+ }
64
+ output.push("class: ");
65
+ const tail4 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
66
+ if (tail4 >= 55296 && tail4 <= 56319 && className.length > 0 && !(className.charCodeAt(0) >= 56320 && className.charCodeAt(0) <= 57343)) {
67
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail4 });
68
+ }
69
+ if (className.length > 0) {
70
+ output.push(className);
71
+ }
72
+ const tail5 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
73
+ if (tail5 >= 55296 && tail5 <= 56319) {
74
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail5 });
75
+ }
76
+ output.push("\n");
77
+ const order = new Array();
78
+ let index = 0;
79
+ while (index < classState.sections.length) {
80
+ let insertion = order.length;
81
+ while (insertion > 0 && classState.sections[order[insertion - 1]].name > classState.sections[index].name) {
82
+ insertion -= 1;
83
+ }
84
+ order.splice(insertion, 0, index);
85
+ index += 1;
86
+ }
87
+ index = 0;
88
+ while (index < order.length) {
89
+ const section = classState.sections[order[index]];
90
+ const tail6 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
91
+ if (tail6 >= 55296 && tail6 <= 56319) {
92
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail6 });
93
+ }
94
+ output.push("test: ");
95
+ const tail7 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
96
+ if (tail7 >= 55296 && tail7 <= 56319 && section.name.length > 0 && !(section.name.charCodeAt(0) >= 56320 && section.name.charCodeAt(0) <= 57343)) {
97
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail7 });
98
+ }
99
+ if (section.name.length > 0) {
100
+ output.push(section.name);
101
+ }
102
+ const tail8 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
103
+ if (tail8 >= 55296 && tail8 <= 56319) {
104
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail8 });
105
+ }
106
+ output.push("\n");
107
+ const tail9 = section.lines.length > 0 ? section.lines[section.lines.length - 1].charCodeAt(section.lines[section.lines.length - 1].length - 1) : NaN;
108
+ if (tail9 >= 55296 && tail9 <= 56319) {
109
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail9 });
110
+ }
111
+ const sectionText = section.lines.join("");
112
+ if (sectionText.length > 0) {
113
+ const tail10 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
114
+ if (tail10 >= 55296 && tail10 <= 56319 && sectionText.length > 0 && !(sectionText.charCodeAt(0) >= 56320 && sectionText.charCodeAt(0) <= 57343)) {
115
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail10 });
116
+ }
117
+ if (sectionText.length > 0) {
118
+ output.push(sectionText);
119
+ }
120
+ }
121
+ index += 1;
122
+ }
123
+ const tail11 = output.length > 0 ? output[output.length - 1].charCodeAt(output[output.length - 1].length - 1) : NaN;
124
+ if (tail11 >= 55296 && tail11 <= 56319) {
125
+ throw new UStringException({ kind: "UnpairedSurrogate", unit: tail11 });
126
+ }
127
+ return output.join("");
128
+ }
129
+ static findClass(className) {
130
+ let index = 0;
131
+ while (index < TestTraceStore.classes.length) {
132
+ if (TestTraceStore.classes[index].className === className) {
133
+ return TestTraceStore.classes[index];
134
+ }
135
+ index += 1;
136
+ }
137
+ return null;
138
+ }
139
+ static findSection(classState, sectionName) {
140
+ let index = 0;
141
+ while (index < classState.sections.length) {
142
+ if (classState.sections[index].name === sectionName) {
143
+ return classState.sections[index];
144
+ }
145
+ index += 1;
146
+ }
147
+ return null;
148
+ }
149
+ }
@@ -0,0 +1,5 @@
1
+ export interface AssertionFailed {
2
+ readonly kind: "AssertionFailed";
3
+ readonly message: string;
4
+ }
5
+ export type TraceAssertionError = AssertionFailed;
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import { type TraceAssertionError } from "./TraceAssertionError.js";
2
+ export declare class TraceAssertionException extends Error {
3
+ readonly error: TraceAssertionError;
4
+ constructor(error: TraceAssertionError);
5
+ static describe(value: TraceAssertionError): string;
6
+ }
@@ -0,0 +1,16 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class TraceAssertionException extends Error {
3
+ error;
4
+ constructor(error) {
5
+ super(TraceAssertionException.describe(error));
6
+ this.name = "TraceAssertionException";
7
+ this.error = error;
8
+ }
9
+ static describe(value) {
10
+ return (() => {
11
+ const _g = value.message;
12
+ const message = _g;
13
+ return message;
14
+ })();
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ export interface TraceField {
2
+ key: string;
3
+ value: string;
4
+ }
5
+ export declare function compareTraceField(a: TraceField, b: TraceField): number;
@@ -0,0 +1,10 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export function compareTraceField(a, b) {
3
+ if (a === b)
4
+ return 0;
5
+ if (a.key !== b.key)
6
+ return a.key < b.key ? -1 : 1;
7
+ if (a.value !== b.value)
8
+ return a.value < b.value ? -1 : 1;
9
+ return 0;
10
+ }
@@ -0,0 +1,21 @@
1
+ export declare class TraceFormat {
2
+ static i(value: number): string;
3
+ static f(value: number): string;
4
+ static fd(value: number, decimals: number): string;
5
+ static d(value: number): string;
6
+ static valueString(value: string): string;
7
+ static valueInt(value: number): string;
8
+ static valueLong(value: number): string;
9
+ static valueFloat(value: number): string;
10
+ static valueDouble(value: number): string;
11
+ static valueBool(value: boolean): string;
12
+ static valueNull(): string;
13
+ static escapeText(value: string): string;
14
+ private static fixedDecimalText;
15
+ private static isNegative;
16
+ private static pow10;
17
+ private static scaledMagnitude;
18
+ private static integerPartOf;
19
+ private static multiply;
20
+ private static f32Mirror;
21
+ }
@@ -0,0 +1,184 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ import { floatToI32, formatFloatRuntime, i32ToFloat } from "../../../../runtime.js";
3
+ export class TraceFormat {
4
+ static i(value) {
5
+ return `${value}`;
6
+ }
7
+ static f(value) {
8
+ const rounded = TraceFormat.f32Mirror(value);
9
+ if (rounded !== rounded) {
10
+ return "NaN";
11
+ }
12
+ if (rounded === Infinity) {
13
+ return "Infinity";
14
+ }
15
+ if (rounded === -Infinity) {
16
+ return "-Infinity";
17
+ }
18
+ return TraceFormat.fixedDecimalText(rounded, 1);
19
+ }
20
+ static fd(value, decimals) {
21
+ const rounded = TraceFormat.f32Mirror(value);
22
+ if (rounded !== rounded) {
23
+ return "NaN";
24
+ }
25
+ if (rounded === Infinity) {
26
+ return "Infinity";
27
+ }
28
+ if (rounded === -Infinity) {
29
+ return "-Infinity";
30
+ }
31
+ return TraceFormat.fixedDecimalText(rounded, decimals);
32
+ }
33
+ static d(value) {
34
+ if (value !== value) {
35
+ return "NaN";
36
+ }
37
+ if (value === Infinity) {
38
+ return "Infinity";
39
+ }
40
+ if (value === -Infinity) {
41
+ return "-Infinity";
42
+ }
43
+ return TraceFormat.fixedDecimalText(value, 1);
44
+ }
45
+ static valueString(value) {
46
+ return `'${TraceFormat.escapeText(value)}'`;
47
+ }
48
+ static valueInt(value) {
49
+ return TraceFormat.i(value);
50
+ }
51
+ static valueLong(value) {
52
+ return `${value}`;
53
+ }
54
+ static valueFloat(value) {
55
+ return TraceFormat.fd(value, 1);
56
+ }
57
+ static valueDouble(value) {
58
+ return TraceFormat.d(value);
59
+ }
60
+ static valueBool(value) {
61
+ return (value ? "true" : "false");
62
+ }
63
+ static valueNull() {
64
+ return "-";
65
+ }
66
+ static escapeText(value) {
67
+ let output = "";
68
+ let index = 0;
69
+ while (index < value.length) {
70
+ const codeUnit = (Number.isNaN(value.charCodeAt(index)) ? null : value.charCodeAt(index));
71
+ if (codeUnit === 10) {
72
+ output += "\\n";
73
+ }
74
+ else {
75
+ if (codeUnit === 13) {
76
+ output += "\\r";
77
+ }
78
+ else {
79
+ if (codeUnit === 11) {
80
+ output += "\\v";
81
+ }
82
+ else {
83
+ if (codeUnit === 12) {
84
+ output += "\\f";
85
+ }
86
+ else {
87
+ if (codeUnit === 133) {
88
+ output += "\\u0085";
89
+ }
90
+ else {
91
+ if (codeUnit === 8232) {
92
+ output += "\\u2028";
93
+ }
94
+ else {
95
+ if (codeUnit === 8233) {
96
+ output += "\\u2029";
97
+ }
98
+ else {
99
+ if (codeUnit === 8203) {
100
+ output += "\\u200B";
101
+ }
102
+ else {
103
+ output += value.substring(index, index + 1);
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ index += 1;
113
+ }
114
+ return output;
115
+ }
116
+ static fixedDecimalText(value, decimals) {
117
+ const negative = TraceFormat.isNegative(value);
118
+ const magnitude = Math.abs(value);
119
+ if (magnitude !== magnitude) {
120
+ return "NaN";
121
+ }
122
+ if (magnitude >= 2147483648.0) {
123
+ return formatFloatRuntime(value);
124
+ }
125
+ const scale = TraceFormat.pow10(decimals);
126
+ const rounded = TraceFormat.scaledMagnitude(magnitude, scale);
127
+ const integerPart = TraceFormat.integerPartOf(magnitude, rounded, scale);
128
+ const fractionPart = Number(BigInt.asIntN(32, BigInt.asIntN(64, rounded - TraceFormat.multiply(integerPart, scale))));
129
+ let fractionText = `${fractionPart}`;
130
+ while (fractionText.length < decimals) {
131
+ fractionText = `0${fractionText}`;
132
+ }
133
+ return (negative ? "-" : "") + integerPart + "." + fractionText;
134
+ }
135
+ static isNegative(value) {
136
+ return value < 0 || value === 0 && 1 / value < 0;
137
+ }
138
+ static pow10(decimals) {
139
+ let scale = 1;
140
+ for (let index = 0; index < decimals; index += 1) {
141
+ scale *= 10;
142
+ }
143
+ return scale;
144
+ }
145
+ static scaledMagnitude(magnitude, scale) {
146
+ const bits = floatToI32(magnitude);
147
+ const exponentField = (bits >>> 23) & 255;
148
+ const mantissaBits = bits & 8388607;
149
+ const mantissa = (exponentField === 0 ? mantissaBits : mantissaBits | 8388608);
150
+ const exponent = (exponentField === 0 ? -149 : exponentField - 150);
151
+ const product = TraceFormat.multiply(mantissa, scale);
152
+ if (exponent >= 0) {
153
+ return BigInt.asIntN(64, product << BigInt(exponent));
154
+ }
155
+ const divisorShift = -exponent;
156
+ if (divisorShift >= 64) {
157
+ return 0n;
158
+ }
159
+ return BigInt.asIntN(64, BigInt.asUintN(64, BigInt.asIntN(64, product + BigInt.asIntN(64, 1n << BigInt(divisorShift - 1)))) >> BigInt(divisorShift));
160
+ }
161
+ static integerPartOf(magnitude, rounded, scale) {
162
+ let whole = Math.trunc(Math.floor(magnitude));
163
+ if (rounded >= TraceFormat.multiply(whole + 1, scale)) {
164
+ whole += 1;
165
+ }
166
+ return whole;
167
+ }
168
+ static multiply(left, right) {
169
+ let product = 0n;
170
+ let factor = right;
171
+ let shift = 0;
172
+ while (factor > 0) {
173
+ if ((factor & 1) !== 0) {
174
+ product = BigInt.asIntN(64, product + BigInt.asIntN(64, BigInt(left) << BigInt(shift)));
175
+ }
176
+ factor = factor >> 1;
177
+ shift += 1;
178
+ }
179
+ return product;
180
+ }
181
+ static f32Mirror(value) {
182
+ return i32ToFloat(floatToI32(value));
183
+ }
184
+ }
@@ -0,0 +1,96 @@
1
+ export interface Int64Halves {
2
+ readonly high: number;
3
+ readonly low: number;
4
+ }
5
+ export declare function doubleToI64(value: number): Int64Halves;
6
+ export declare function i64ToDouble(low: number, high: number): number;
7
+ export declare function floatToI32(value: number): number;
8
+ export declare function i32ToFloat(bits: number): number;
9
+ export declare function formatFloatRuntime(v: number): string;
10
+ export declare function readUnit(text: string, index: number): number | null;
11
+ export declare class BytesBuffer {
12
+ private bytes;
13
+ private length;
14
+ constructor();
15
+ addByte(byte: number): void;
16
+ add(bytes: Uint8Array): void;
17
+ getBytes(): Uint8Array;
18
+ }
19
+ export declare function dictKey(k: any): any;
20
+ export declare class StringTools {
21
+ static isSpace(s: string, pos: number): boolean;
22
+ static ltrim(s: string): string;
23
+ static rtrim(s: string): string;
24
+ static lpad(s: string, c: string, l: number): string;
25
+ static rpad(s: string, c: string, l: number): string;
26
+ static replace(s: string, sub: string, by: string): string;
27
+ }
28
+ export declare class UString {
29
+ static count(s: string): number;
30
+ static at(s: string, index: number): number | null;
31
+ static slice(s: string, from: number, to: number): string;
32
+ static toCodePoints(s: string): number[];
33
+ static fromCodePoint(code: number): string;
34
+ static fromCodePoints(codes: number[]): string;
35
+ }
36
+ export declare class GraphemeWalk {
37
+ static lookup(table: readonly number[], code: number): number;
38
+ static breaksBefore(prev: number, cur: number, state: number): boolean;
39
+ static advanceState(cur: number, state: number): number;
40
+ static boundaryFlags(table: readonly number[], codes: readonly number[]): boolean[];
41
+ }
42
+ export declare class Graphemes {
43
+ static count(s: string): number;
44
+ static at(s: string, index: number): string | null;
45
+ static slice(s: string, from: number, to: number): string;
46
+ static boundaries(s: string): number[];
47
+ static parts(s: string): string[];
48
+ }
49
+ export declare class SortedTable {
50
+ static compareInts(a: number, b: number): number;
51
+ static compareStrings(a: string, b: string): number;
52
+ static mapBuilder<K, V>(compare: SortedTableCompare<K>): SortedMapTableBuilder<K, V>;
53
+ static setBuilder<K>(compare: SortedTableCompare<K>): SortedSetTableBuilder<K>;
54
+ }
55
+ export declare class SortedMapTable<K, V> {
56
+ private readonly keys;
57
+ private readonly values;
58
+ private readonly compare;
59
+ constructor(keys: K[], values: V[], compare: SortedTableCompare<K>);
60
+ get(key: K): V | null;
61
+ has(key: K): boolean;
62
+ size(): number;
63
+ keyAt(index: number): K;
64
+ valueAt(index: number): V;
65
+ contentEquals(other: SortedMapTable<K, V>): boolean;
66
+ toString(): string;
67
+ private locate;
68
+ }
69
+ export declare class SortedMapTableBuilder<K, V> {
70
+ private readonly keys;
71
+ private readonly values;
72
+ private readonly compare;
73
+ constructor(keys: K[], values: V[], compare: SortedTableCompare<K>);
74
+ put(key: K, value: V): void;
75
+ get(key: K): V | null;
76
+ build(): SortedMapTable<K, V>;
77
+ }
78
+ export declare class SortedSetTable<K> {
79
+ private readonly keys;
80
+ private readonly compare;
81
+ constructor(keys: K[], compare: SortedTableCompare<K>);
82
+ has(key: K): boolean;
83
+ size(): number;
84
+ at(index: number): K;
85
+ contentEquals(other: SortedSetTable<K>): boolean;
86
+ toString(): string;
87
+ private locate;
88
+ }
89
+ export declare class SortedSetTableBuilder<K> {
90
+ private readonly keys;
91
+ private readonly compare;
92
+ constructor(keys: K[], compare: SortedTableCompare<K>);
93
+ put(key: K): void;
94
+ build(): SortedSetTable<K>;
95
+ }
96
+ export type SortedTableCompare<K> = (left: K, right: K) => number;