@hxmc/source 0.0.0-stage → 0.1.0-nightly.20261016.4501bd3

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 (520) hide show
  1. package/COPYING +339 -0
  2. package/LICENSE +44 -0
  3. package/haxe/src/codegen/Codegen.hx +165 -0
  4. package/haxe/src/codegen/Dump.hx +267 -0
  5. package/haxe/src/codegen/FixOverrides.hx +174 -0
  6. package/haxe/src/codegen/Genxml.hx +318 -0
  7. package/haxe/src/codegen/JavaModern.hx +1322 -0
  8. package/haxe/src/codegen/Overloads.hx +287 -0
  9. package/haxe/src/codegen/SwfLoader.hx +956 -0
  10. package/haxe/src/compiler/Args.hx +903 -0
  11. package/haxe/src/compiler/CompilationCache.hx +610 -0
  12. package/haxe/src/compiler/Compiler.hx +623 -0
  13. package/haxe/src/compiler/DisplayOutput.hx +103 -0
  14. package/haxe/src/compiler/DisplayProcessing.hx +317 -0
  15. package/haxe/src/compiler/DisplayProcessingGlobals.hx +5 -0
  16. package/haxe/src/compiler/Generate.hx +248 -0
  17. package/haxe/src/compiler/Helper.hx +80 -0
  18. package/haxe/src/compiler/HighLevel.hx +158 -0
  19. package/haxe/src/compiler/MessageReporting.hx +388 -0
  20. package/haxe/src/compiler/ParsedArg.hx +168 -0
  21. package/haxe/src/compiler/PipeThings.hx +292 -0
  22. package/haxe/src/compiler/Tasks.hx +61 -0
  23. package/haxe/src/compiler/hxb/HxbData.hx +167 -0
  24. package/haxe/src/compiler/hxb/HxbLib.hx +95 -0
  25. package/haxe/src/compiler/hxb/HxbReader.hx +2435 -0
  26. package/haxe/src/compiler/hxb/HxbReaderApi.hx +37 -0
  27. package/haxe/src/compiler/hxb/HxbWriter.hx +2485 -0
  28. package/haxe/src/compiler/hxb/HxbWriterConfig.hx +141 -0
  29. package/haxe/src/compiler/io/CompilerIo.hx +184 -0
  30. package/haxe/src/compiler/io/CompilerMessage.hx +134 -0
  31. package/haxe/src/compiler/io/CompilerOutput.hx +139 -0
  32. package/haxe/src/compiler/server/Server.hx +540 -0
  33. package/haxe/src/compiler/server/ServerCache.hx +816 -0
  34. package/haxe/src/compiler/server/ServerCompilationContext.hx +107 -0
  35. package/haxe/src/compiler/server/ServerConfig.hx +20 -0
  36. package/haxe/src/compiler/server/ServerMessage.hx +283 -0
  37. package/haxe/src/context/AbstractCast.hx +504 -0
  38. package/haxe/src/context/Common.hx +1223 -0
  39. package/haxe/src/context/CommonCache.hx +189 -0
  40. package/haxe/src/context/CoreApiConfig.hx +96 -0
  41. package/haxe/src/context/DotGraph.hx +29 -0
  42. package/haxe/src/context/DumpConfig.hx +81 -0
  43. package/haxe/src/context/FormatString.hx +122 -0
  44. package/haxe/src/context/HxbReaderStats.hx +19 -0
  45. package/haxe/src/context/Lookup.hx +59 -0
  46. package/haxe/src/context/Memory.hx +169 -0
  47. package/haxe/src/context/NativeLibraries.hx +76 -0
  48. package/haxe/src/context/NativeLibraryHandler.hx +52 -0
  49. package/haxe/src/context/Parallel.hx +111 -0
  50. package/haxe/src/context/PlatformConfig.hx +200 -0
  51. package/haxe/src/context/PurityState.hx +77 -0
  52. package/haxe/src/context/Resolution.hx +250 -0
  53. package/haxe/src/context/SafeCom.hx +259 -0
  54. package/haxe/src/context/Sourcemaps.hx +333 -0
  55. package/haxe/src/context/Typecore.hx +1050 -0
  56. package/haxe/src/context/TyperPass.hx +24 -0
  57. package/haxe/src/context/display/DeprecationCheck.hx +150 -0
  58. package/haxe/src/context/display/Diagnostics.hx +217 -0
  59. package/haxe/src/context/display/DiagnosticsPrinter.hx +337 -0
  60. package/haxe/src/context/display/Display.hx +140 -0
  61. package/haxe/src/context/display/DisplayEmitter.hx +241 -0
  62. package/haxe/src/context/display/DisplayException.hx +268 -0
  63. package/haxe/src/context/display/DisplayFields.hx +527 -0
  64. package/haxe/src/context/display/DisplayJson.hx +837 -0
  65. package/haxe/src/context/display/DisplayMemory.hx +280 -0
  66. package/haxe/src/context/display/DisplayPath.hx +243 -0
  67. package/haxe/src/context/display/DisplayTexpr.hx +214 -0
  68. package/haxe/src/context/display/DisplayToplevel.hx +650 -0
  69. package/haxe/src/context/display/DocumentSymbols.hx +196 -0
  70. package/haxe/src/context/display/ExprPreprocessing.hx +254 -0
  71. package/haxe/src/context/display/FindReferences.hx +197 -0
  72. package/haxe/src/context/display/ImportHandling.hx +344 -0
  73. package/haxe/src/context/display/Statistics.hx +381 -0
  74. package/haxe/src/context/display/SyntaxExplorer.hx +215 -0
  75. package/haxe/src/core/Abstract.hx +174 -0
  76. package/haxe/src/core/Ast.hx +1333 -0
  77. package/haxe/src/core/AstExprMapper.hx +213 -0
  78. package/haxe/src/core/AstPrinter.hx +198 -0
  79. package/haxe/src/core/ClassPath.hx +103 -0
  80. package/haxe/src/core/ClassPaths.hx +237 -0
  81. package/haxe/src/core/Define.hx +423 -0
  82. package/haxe/src/core/DefineRegistry.hx +369 -0
  83. package/haxe/src/core/DisplayTypes.hx +423 -0
  84. package/haxe/src/core/Error.hx +438 -0
  85. package/haxe/src/core/Globals.hx +230 -0
  86. package/haxe/src/core/InheritDoc.hx +195 -0
  87. package/haxe/src/core/Json.hx +326 -0
  88. package/haxe/src/core/Message.hx +177 -0
  89. package/haxe/src/core/Meta.hx +423 -0
  90. package/haxe/src/core/MetaList.hx +1237 -0
  91. package/haxe/src/core/Naming.hx +60 -0
  92. package/haxe/src/core/Native.hx +95 -0
  93. package/haxe/src/core/Numeric.hx +126 -0
  94. package/haxe/src/core/OcamlFilename.hx +129 -0
  95. package/haxe/src/core/Path.hx +485 -0
  96. package/haxe/src/core/Socket.hx +82 -0
  97. package/haxe/src/core/StringError.hx +94 -0
  98. package/haxe/src/core/StringHelper.hx +202 -0
  99. package/haxe/src/core/TFunctions.hx +1016 -0
  100. package/haxe/src/core/TOther.hx +414 -0
  101. package/haxe/src/core/TPrinting.hx +693 -0
  102. package/haxe/src/core/TType.hx +1012 -0
  103. package/haxe/src/core/TUnification.hx +1598 -0
  104. package/haxe/src/core/Texpr.hx +1596 -0
  105. package/haxe/src/core/Timer.hx +267 -0
  106. package/haxe/src/core/Type.hx +39 -0
  107. package/haxe/src/core/Warning.hx +65 -0
  108. package/haxe/src/core/WarningList.hx +268 -0
  109. package/haxe/src/core/WithType.hx +85 -0
  110. package/haxe/src/core/ZipInput.hx +237 -0
  111. package/haxe/src/core/ZipOutput.hx +93 -0
  112. package/haxe/src/core/data/DataReaderApi.hx +30 -0
  113. package/haxe/src/core/data/DataWriterApi.hx +24 -0
  114. package/haxe/src/core/data/JsonDataApi.hx +69 -0
  115. package/haxe/src/core/data/MetaDataApi.hx +75 -0
  116. package/haxe/src/core/display/CompletionItem.hx +984 -0
  117. package/haxe/src/core/display/DisplayPosition.hx +108 -0
  118. package/haxe/src/core/display/Javadoc.hx +141 -0
  119. package/haxe/src/core/ds/ArgumentError.hx +4 -0
  120. package/haxe/src/core/ds/ArrayTools.hx +54 -0
  121. package/haxe/src/core/ds/AtomicLazy.hx +81 -0
  122. package/haxe/src/core/ds/Cancelled.hx +6 -0
  123. package/haxe/src/core/ds/ExceptionTools.hx +20 -0
  124. package/haxe/src/core/ds/Exit.hx +17 -0
  125. package/haxe/src/core/ds/Failure.hx +4 -0
  126. package/haxe/src/core/ds/FastThrow.hx +11 -0
  127. package/haxe/src/core/ds/GcPolicy.hx +56 -0
  128. package/haxe/src/core/ds/GlobalsIntMap.hx +82 -0
  129. package/haxe/src/core/ds/Hashtbl.hx +162 -0
  130. package/haxe/src/core/ds/InvalidArgument.hx +6 -0
  131. package/haxe/src/core/ds/Key.hx +177 -0
  132. package/haxe/src/core/ds/List.hx +79 -0
  133. package/haxe/src/core/ds/MapEntry.hx +13 -0
  134. package/haxe/src/core/ds/NotFound.hx +22 -0
  135. package/haxe/src/core/ds/NowOrLater.hx +47 -0
  136. package/haxe/src/core/ds/OcamlFloat.hx +66 -0
  137. package/haxe/src/core/ds/OcamlHash.hx +112 -0
  138. package/haxe/src/core/ds/OcamlHashtbl.hx +219 -0
  139. package/haxe/src/core/ds/OcamlInt.hx +64 -0
  140. package/haxe/src/core/ds/OcamlInt32.hx +6 -0
  141. package/haxe/src/core/ds/OcamlInt64.hx +55 -0
  142. package/haxe/src/core/ds/OcamlPrintf.hx +148 -0
  143. package/haxe/src/core/ds/OcamlStr.hx +768 -0
  144. package/haxe/src/core/ds/PMap.hx +58 -0
  145. package/haxe/src/core/ds/PersistentMap.hx +70 -0
  146. package/haxe/src/core/ds/PriorityQueue.hx +66 -0
  147. package/haxe/src/core/ds/Record.hx +52 -0
  148. package/haxe/src/core/ds/Ring.hx +51 -0
  149. package/haxe/src/core/ds/ScopedIntMap.hx +53 -0
  150. package/haxe/src/core/ds/StrTools.hx +62 -0
  151. package/haxe/src/core/ds/Stream.hx +82 -0
  152. package/haxe/src/core/ds/StringDynArray.hx +33 -0
  153. package/haxe/src/core/ds/StringPool.hx +61 -0
  154. package/haxe/src/core/ds/TaskPool.hx +184 -0
  155. package/haxe/src/core/ds/ThreadSafeHashtbl.hx +79 -0
  156. package/haxe/src/core/json/Genjson.hx +718 -0
  157. package/haxe/src/core/json/JsonRpc.hx +113 -0
  158. package/haxe/src/core/json/JsonRpcSocket.hx +13 -0
  159. package/haxe/src/core/json/JsonrpcHandler.hx +104 -0
  160. package/haxe/src/coro/ContTypes.hx +57 -0
  161. package/haxe/src/coro/Coro.hx +576 -0
  162. package/haxe/src/coro/CoroConfig.hx +139 -0
  163. package/haxe/src/coro/CoroControl.hx +3 -0
  164. package/haxe/src/coro/CoroDebug.hx +125 -0
  165. package/haxe/src/coro/CoroElsewhere.hx +86 -0
  166. package/haxe/src/coro/CoroFromTexpr.hx +744 -0
  167. package/haxe/src/coro/CoroFunctions.hx +155 -0
  168. package/haxe/src/coro/CoroInit.hx +43 -0
  169. package/haxe/src/coro/CoroScopeConfig.hx +52 -0
  170. package/haxe/src/coro/CoroToTexpr.hx +487 -0
  171. package/haxe/src/coro/CoroTypes.hx +184 -0
  172. package/haxe/src/filters/ES6Ctors.hx +317 -0
  173. package/haxe/src/filters/FilterContext.hx +36 -0
  174. package/haxe/src/filters/Filters.hx +592 -0
  175. package/haxe/src/filters/FiltersCommon.hx +57 -0
  176. package/haxe/src/filters/LocalUsage.hx +109 -0
  177. package/haxe/src/filters/RenameVars.hx +471 -0
  178. package/haxe/src/filters/Tre.hx +230 -0
  179. package/haxe/src/filters/exception/ExceptionFunctions.hx +61 -0
  180. package/haxe/src/filters/exception/ExceptionInit.hx +81 -0
  181. package/haxe/src/filters/exception/Exceptions.hx +479 -0
  182. package/haxe/src/filters/exception/SaveStacks.hx +121 -0
  183. package/haxe/src/filters/safe/AddFieldInits.hx +89 -0
  184. package/haxe/src/filters/safe/AddFinalReturn.hx +44 -0
  185. package/haxe/src/filters/safe/CapturedVars.hx +262 -0
  186. package/haxe/src/filters/safe/CheckVarInit.hx +155 -0
  187. package/haxe/src/filters/safe/LocalStatic.hx +118 -0
  188. package/haxe/src/filters/safe/SafeFilters.hx +106 -0
  189. package/haxe/src/filters/safe/Sanitize.hx +189 -0
  190. package/haxe/src/generators/FlashProps.hx +81 -0
  191. package/haxe/src/generators/Gctx.hx +149 -0
  192. package/haxe/src/generators/Gencpp.hx +555 -0
  193. package/haxe/src/generators/Genhl.hx +4944 -0
  194. package/haxe/src/generators/Genhxold.hx +349 -0
  195. package/haxe/src/generators/Genjs.hx +2214 -0
  196. package/haxe/src/generators/Genjvm.hx +3841 -0
  197. package/haxe/src/generators/Genlua.hx +2585 -0
  198. package/haxe/src/generators/Genneko.hx +978 -0
  199. package/haxe/src/generators/Genphp7.hx +1327 -0
  200. package/haxe/src/generators/Genpy.hx +2722 -0
  201. package/haxe/src/generators/Genshared.hx +479 -0
  202. package/haxe/src/generators/Genswf.hx +985 -0
  203. package/haxe/src/generators/Genswf9.hx +3393 -0
  204. package/haxe/src/generators/Hl2c.hx +2628 -0
  205. package/haxe/src/generators/Hlcode.hx +1365 -0
  206. package/haxe/src/generators/Hlinterp.hx +4111 -0
  207. package/haxe/src/generators/Hlopt.hx +1366 -0
  208. package/haxe/src/generators/JsSourcemap.hx +167 -0
  209. package/haxe/src/generators/cpp/CppAst.hx +448 -0
  210. package/haxe/src/generators/cpp/CppAstTools.hx +766 -0
  211. package/haxe/src/generators/cpp/CppContext.hx +130 -0
  212. package/haxe/src/generators/cpp/CppError.hx +43 -0
  213. package/haxe/src/generators/cpp/CppMarshalling.hx +61 -0
  214. package/haxe/src/generators/cpp/CppRetyper.hx +2239 -0
  215. package/haxe/src/generators/cpp/CppSourceWriter.hx +196 -0
  216. package/haxe/src/generators/cpp/CppStrings.hx +178 -0
  217. package/haxe/src/generators/cpp/CppTypeUtils.hx +333 -0
  218. package/haxe/src/generators/cpp/filters/CppFilterAutoCast.hx +186 -0
  219. package/haxe/src/generators/cpp/filters/CppFilterValueType.hx +82 -0
  220. package/haxe/src/generators/cpp/gen/CppCppia.hx +1719 -0
  221. package/haxe/src/generators/cpp/gen/CppGen.hx +1884 -0
  222. package/haxe/src/generators/cpp/gen/CppGenClassHeader.hx +350 -0
  223. package/haxe/src/generators/cpp/gen/CppGenClassImplementation.hx +1067 -0
  224. package/haxe/src/generators/cpp/gen/CppGenEnum.hx +202 -0
  225. package/haxe/src/generators/cpp/gen/CppGenInterfaceHeader.hx +191 -0
  226. package/haxe/src/generators/cpp/gen/CppGenInterfaceImplementation.hx +300 -0
  227. package/haxe/src/generators/cpp/gen/CppReferences.hx +324 -0
  228. package/haxe/src/generators/genphp7/CodeWriter.hx +2022 -0
  229. package/haxe/src/generators/genphp7/TypeBuilders.hx +1097 -0
  230. package/haxe/src/generators/genphp7/TypeWrappers.hx +226 -0
  231. package/haxe/src/generators/jvm/JvmAttribute.hx +283 -0
  232. package/haxe/src/generators/jvm/JvmBuilder.hx +119 -0
  233. package/haxe/src/generators/jvm/JvmClass.hx +273 -0
  234. package/haxe/src/generators/jvm/JvmCode.hx +670 -0
  235. package/haxe/src/generators/jvm/JvmConstantPool.hx +262 -0
  236. package/haxe/src/generators/jvm/JvmData.hx +306 -0
  237. package/haxe/src/generators/jvm/JvmFunctions.hx +479 -0
  238. package/haxe/src/generators/jvm/JvmGlobals.hx +228 -0
  239. package/haxe/src/generators/jvm/JvmMethod.hx +1457 -0
  240. package/haxe/src/generators/jvm/JvmSignature.hx +458 -0
  241. package/haxe/src/generators/jvm/JvmVerificationTypeInfo.hx +77 -0
  242. package/haxe/src/generators/jvm/JvmWriter.hx +535 -0
  243. package/haxe/src/haxe/Main.hx +296 -0
  244. package/haxe/src/libs/extc/Extc.hx +274 -0
  245. package/haxe/src/libs/extc/Zlib.hx +2034 -0
  246. package/haxe/src/libs/extlib/IO.hx +458 -0
  247. package/haxe/src/libs/neko/Binast.hx +310 -0
  248. package/haxe/src/libs/neko/IO.hx +61 -0
  249. package/haxe/src/libs/neko/Nast.hx +241 -0
  250. package/haxe/src/libs/neko/Nbytecode.hx +426 -0
  251. package/haxe/src/libs/neko/Ncompile.hx +1169 -0
  252. package/haxe/src/libs/neko/Nxml.hx +191 -0
  253. package/haxe/src/libs/swflib/ActionScript.hx +703 -0
  254. package/haxe/src/libs/swflib/As3.hx +340 -0
  255. package/haxe/src/libs/swflib/As3code.hx +690 -0
  256. package/haxe/src/libs/swflib/As3hl.hx +290 -0
  257. package/haxe/src/libs/swflib/As3hlparse.hx +1071 -0
  258. package/haxe/src/libs/swflib/As3parse.hx +905 -0
  259. package/haxe/src/libs/swflib/Png.hx +358 -0
  260. package/haxe/src/libs/swflib/Swf.hx +648 -0
  261. package/haxe/src/libs/swflib/SwfParser.hx +2314 -0
  262. package/haxe/src/libs/ziplib/Zip.hx +305 -0
  263. package/haxe/src/macros/MacroApi.hx +3389 -0
  264. package/haxe/src/macros/eval/EvalArray.hx +345 -0
  265. package/haxe/src/macros/eval/EvalAtomic.hx +205 -0
  266. package/haxe/src/macros/eval/EvalBytesUnicase.hx +125 -0
  267. package/haxe/src/macros/eval/EvalContext.hx +791 -0
  268. package/haxe/src/macros/eval/EvalDataApi.hx +61 -0
  269. package/haxe/src/macros/eval/EvalDebug.hx +154 -0
  270. package/haxe/src/macros/eval/EvalDebugMisc.hx +503 -0
  271. package/haxe/src/macros/eval/EvalDebugSocket.hx +1025 -0
  272. package/haxe/src/macros/eval/EvalDecode.hx +218 -0
  273. package/haxe/src/macros/eval/EvalEmitter.hx +1226 -0
  274. package/haxe/src/macros/eval/EvalEncode.hx +323 -0
  275. package/haxe/src/macros/eval/EvalExceptions.hx +324 -0
  276. package/haxe/src/macros/eval/EvalField.hx +94 -0
  277. package/haxe/src/macros/eval/EvalHash.hx +279 -0
  278. package/haxe/src/macros/eval/EvalHostNet.hx +157 -0
  279. package/haxe/src/macros/eval/EvalIntegers.hx +546 -0
  280. package/haxe/src/macros/eval/EvalJit.hx +853 -0
  281. package/haxe/src/macros/eval/EvalJitContext.hx +208 -0
  282. package/haxe/src/macros/eval/EvalLock.hx +161 -0
  283. package/haxe/src/macros/eval/EvalLuv.hx +3648 -0
  284. package/haxe/src/macros/eval/EvalMain.hx +741 -0
  285. package/haxe/src/macros/eval/EvalMisc.hx +443 -0
  286. package/haxe/src/macros/eval/EvalPrinting.hx +214 -0
  287. package/haxe/src/macros/eval/EvalProcess.hx +116 -0
  288. package/haxe/src/macros/eval/EvalPrototype.hx +573 -0
  289. package/haxe/src/macros/eval/EvalSsl.hx +407 -0
  290. package/haxe/src/macros/eval/EvalStackTrace.hx +59 -0
  291. package/haxe/src/macros/eval/EvalStdLib.hx +826 -0
  292. package/haxe/src/macros/eval/EvalStdLibA.hx +2048 -0
  293. package/haxe/src/macros/eval/EvalStdLibB.hx +2323 -0
  294. package/haxe/src/macros/eval/EvalString.hx +236 -0
  295. package/haxe/src/macros/eval/EvalThread.hx +129 -0
  296. package/haxe/src/macros/eval/EvalTypes.hx +10 -0
  297. package/haxe/src/macros/eval/EvalValue.hx +599 -0
  298. package/haxe/src/optimization/Analyzer.hx +1111 -0
  299. package/haxe/src/optimization/AnalyzerConfig.hx +167 -0
  300. package/haxe/src/optimization/AnalyzerTexpr.hx +1329 -0
  301. package/haxe/src/optimization/AnalyzerTexprTransformer.hx +795 -0
  302. package/haxe/src/optimization/AnalyzerTypes.hx +727 -0
  303. package/haxe/src/optimization/Dce.hx +1024 -0
  304. package/haxe/src/optimization/Inline.hx +967 -0
  305. package/haxe/src/optimization/InlineConstructors.hx +883 -0
  306. package/haxe/src/optimization/Optimizer.hx +223 -0
  307. package/haxe/src/optimization/OptimizerTexpr.hx +239 -0
  308. package/haxe/src/syntax/Grammar.hx +3216 -0
  309. package/haxe/src/syntax/Lexer.hx +1405 -0
  310. package/haxe/src/syntax/Parser.hx +634 -0
  311. package/haxe/src/syntax/ParserConfig.hx +22 -0
  312. package/haxe/src/syntax/ParserEntry.hx +472 -0
  313. package/haxe/src/syntax/Reification.hx +447 -0
  314. package/haxe/src/syntax/SemVer.hx +142 -0
  315. package/haxe/src/typing/CallUnification.hx +773 -0
  316. package/haxe/src/typing/Calls.hx +543 -0
  317. package/haxe/src/typing/FieldAccess.hx +192 -0
  318. package/haxe/src/typing/FieldCallCandidate.hx +58 -0
  319. package/haxe/src/typing/Fields.hx +712 -0
  320. package/haxe/src/typing/Finalization.hx +242 -0
  321. package/haxe/src/typing/ForLoop.hx +596 -0
  322. package/haxe/src/typing/FunctionArguments.hx +237 -0
  323. package/haxe/src/typing/Generic.hx +570 -0
  324. package/haxe/src/typing/InstanceBuilder.hx +155 -0
  325. package/haxe/src/typing/MacroContext.hx +1397 -0
  326. package/haxe/src/typing/Matcher.hx +171 -0
  327. package/haxe/src/typing/NullSafety.hx +1881 -0
  328. package/haxe/src/typing/Operators.hx +876 -0
  329. package/haxe/src/typing/OverloadResolution.hx +211 -0
  330. package/haxe/src/typing/StrictMeta.hx +205 -0
  331. package/haxe/src/typing/TanonIdentification.hx +246 -0
  332. package/haxe/src/typing/Typeload.hx +1007 -0
  333. package/haxe/src/typing/TypeloadCacheHook.hx +44 -0
  334. package/haxe/src/typing/TypeloadCheck.hx +876 -0
  335. package/haxe/src/typing/TypeloadFields.hx +1943 -0
  336. package/haxe/src/typing/TypeloadFunction.hx +318 -0
  337. package/haxe/src/typing/TypeloadModule.hx +930 -0
  338. package/haxe/src/typing/TypeloadParse.hx +442 -0
  339. package/haxe/src/typing/Typer.hx +2002 -0
  340. package/haxe/src/typing/TyperBase.hx +398 -0
  341. package/haxe/src/typing/TyperDisplay.hx +901 -0
  342. package/haxe/src/typing/TyperDotPath.hx +153 -0
  343. package/haxe/src/typing/TyperEntry.hx +332 -0
  344. package/haxe/src/typing/UnifyMin.hx +149 -0
  345. package/haxe/src/typing/matcher/Bind.hx +26 -0
  346. package/haxe/src/typing/matcher/Case.hx +235 -0
  347. package/haxe/src/typing/matcher/Compile.hx +454 -0
  348. package/haxe/src/typing/matcher/Constructor.hx +96 -0
  349. package/haxe/src/typing/matcher/DecisionTree.hx +168 -0
  350. package/haxe/src/typing/matcher/ExprToPattern.hx +475 -0
  351. package/haxe/src/typing/matcher/MatcherGlobals.hx +36 -0
  352. package/haxe/src/typing/matcher/Pattern.hx +42 -0
  353. package/haxe/src/typing/matcher/Subject.hx +50 -0
  354. package/haxe/src/typing/matcher/TexprConverter.hx +396 -0
  355. package/haxe/src/typing/matcher/Useless.hx +224 -0
  356. package/hxmc/bootstrap/hxmc-rebuild +5 -0
  357. package/hxmc/bootstrap/rebuild.mjs +125 -0
  358. package/hxmc/src/hxmc/A64Reloc.hx +69 -0
  359. package/hxmc/src/hxmc/Abi.hx +127 -0
  360. package/hxmc/src/hxmc/Buf.hx +114 -0
  361. package/hxmc/src/hxmc/CoffReader.hx +363 -0
  362. package/hxmc/src/hxmc/DataGen.hx +457 -0
  363. package/hxmc/src/hxmc/Driver.hx +485 -0
  364. package/hxmc/src/hxmc/ElfReader.hx +187 -0
  365. package/hxmc/src/hxmc/ElfWriter.hx +193 -0
  366. package/hxmc/src/hxmc/Fingerprint.hx +379 -0
  367. package/hxmc/src/hxmc/HaxeMain.hx +109 -0
  368. package/hxmc/src/hxmc/Inline.hx +317 -0
  369. package/hxmc/src/hxmc/Link.hx +400 -0
  370. package/hxmc/src/hxmc/LinkInputs.hx +109 -0
  371. package/hxmc/src/hxmc/LinkMachO.hx +768 -0
  372. package/hxmc/src/hxmc/LinkPE.hx +471 -0
  373. package/hxmc/src/hxmc/Lir.hx +166 -0
  374. package/hxmc/src/hxmc/LowerCache.hx +867 -0
  375. package/hxmc/src/hxmc/MachOReader.hx +282 -0
  376. package/hxmc/src/hxmc/Main.hx +130 -0
  377. package/hxmc/src/hxmc/Mir.hx +238 -0
  378. package/hxmc/src/hxmc/MirBuild.hx +2522 -0
  379. package/hxmc/src/hxmc/MkRt.hx +297 -0
  380. package/hxmc/src/hxmc/MkStd.hx +65 -0
  381. package/hxmc/src/hxmc/Obj.hx +161 -0
  382. package/hxmc/src/hxmc/Opt.hx +1126 -0
  383. package/hxmc/src/hxmc/Options.hx +73 -0
  384. package/hxmc/src/hxmc/Prep.hx +89 -0
  385. package/hxmc/src/hxmc/Regalloc.hx +1079 -0
  386. package/hxmc/src/hxmc/Roots.hx +542 -0
  387. package/hxmc/src/hxmc/Target.hx +31 -0
  388. package/hxmc/src/hxmc/TypesCache.hx +331 -0
  389. package/hxmc/src/hxmc/UpToDate.hx +114 -0
  390. package/hxmc/src/hxmc/a64/Asm.hx +490 -0
  391. package/hxmc/src/hxmc/a64/Emit.hx +373 -0
  392. package/hxmc/src/hxmc/a64/Isel.hx +1079 -0
  393. package/hxmc/src/hxmc/ir/CInterop.hx +308 -0
  394. package/hxmc/src/hxmc/ir/Facts.hx +661 -0
  395. package/hxmc/src/hxmc/ir/FnLower.hx +1851 -0
  396. package/hxmc/src/hxmc/ir/Ir.hx +389 -0
  397. package/hxmc/src/hxmc/ir/Lower.hx +933 -0
  398. package/hxmc/src/hxmc/wasm/Enc.hx +228 -0
  399. package/hxmc/src/hxmc/wasm/LinkWasm.hx +690 -0
  400. package/hxmc/src/hxmc/wasm/WasmEmitter.hx +60 -0
  401. package/hxmc/src/hxmc/wasm/WasmGen.hx +1412 -0
  402. package/hxmc/src/hxmc/x64/Asm.hx +776 -0
  403. package/hxmc/src/hxmc/x64/Emit.hx +407 -0
  404. package/hxmc/src/hxmc/x64/Isel.hx +1324 -0
  405. package/hxmc/std/EReg.hx +178 -0
  406. package/hxmc/std/LICENSE +22 -0
  407. package/hxmc/std/Math.hx +311 -0
  408. package/hxmc/std/Reflect.hx +205 -0
  409. package/hxmc/std/Std.hx +140 -0
  410. package/hxmc/std/StringBuf.hx +13 -0
  411. package/hxmc/std/StringTools.hx +664 -0
  412. package/hxmc/std/Sys.hx +230 -0
  413. package/hxmc/std/Type.hx +326 -0
  414. package/hxmc/std/haxe/Exception.hx +59 -0
  415. package/hxmc/std/haxe/Int64.hx +262 -0
  416. package/hxmc/std/haxe/NativeStackTrace.hx +20 -0
  417. package/hxmc/std/haxe/atomic/AtomicInt.hx +125 -0
  418. package/hxmc/std/haxe/atomic/AtomicObject.hx +89 -0
  419. package/hxmc/std/haxe/ds/IntMap.hx +234 -0
  420. package/hxmc/std/haxe/ds/ObjectMap.hx +236 -0
  421. package/hxmc/std/haxe/ds/StringMap.hx +233 -0
  422. package/hxmc/std/haxe/io/Bytes.hx +44 -0
  423. package/hxmc/std/haxe/io/BytesBuffer.hx +22 -0
  424. package/hxmc/std/haxe/io/BytesData.hx +19 -0
  425. package/hxmc/std/haxe/io/FPHelper.hx +14 -0
  426. package/hxmc/std/hxmc/I64.hx +67 -0
  427. package/hxmc/std/hxmc/Native.hx +6 -0
  428. package/hxmc/std/hxmc/NativeGc.hx +9 -0
  429. package/hxmc/std/hxmc/NativeNet.hx +95 -0
  430. package/hxmc/std/hxmc/NativeSsl.hx +9 -0
  431. package/hxmc/std/hxmc/NativeSys.hx +157 -0
  432. package/hxmc/std/hxmc/NativeThread.hx +10 -0
  433. package/hxmc/std/hxmc/NativeUv.hx +12 -0
  434. package/hxmc/std/hxmc/NativeZip.hx +322 -0
  435. package/hxmc/std/hxmc/Regex.hx +632 -0
  436. package/hxmc/std/hxmc/RegexUnicode.hx +44 -0
  437. package/hxmc/std/hxmc/rt/Arr.hx +351 -0
  438. package/hxmc/std/hxmc/rt/Boxes.hx +328 -0
  439. package/hxmc/std/hxmc/rt/Bytes.hx +262 -0
  440. package/hxmc/std/hxmc/rt/C.hx +41 -0
  441. package/hxmc/std/hxmc/rt/Census.hx +534 -0
  442. package/hxmc/std/hxmc/rt/Date.hx +201 -0
  443. package/hxmc/std/hxmc/rt/Dyn.hx +1068 -0
  444. package/hxmc/std/hxmc/rt/FloatText.hx +715 -0
  445. package/hxmc/std/hxmc/rt/Gc.hx +1236 -0
  446. package/hxmc/std/hxmc/rt/GcPaths.hx +24 -0
  447. package/hxmc/std/hxmc/rt/Layouts.hx +213 -0
  448. package/hxmc/std/hxmc/rt/LibM.hx +1138 -0
  449. package/hxmc/std/hxmc/rt/MemOps.hx +24 -0
  450. package/hxmc/std/hxmc/rt/Modules.hx +39 -0
  451. package/hxmc/std/hxmc/rt/Names.hx +288 -0
  452. package/hxmc/std/hxmc/rt/Os.hx +411 -0
  453. package/hxmc/std/hxmc/rt/PosixNet.hx +438 -0
  454. package/hxmc/std/hxmc/rt/PosixSys.hx +574 -0
  455. package/hxmc/std/hxmc/rt/Runtime.hx +41 -0
  456. package/hxmc/std/hxmc/rt/Ssl.hx +595 -0
  457. package/hxmc/std/hxmc/rt/Start.hx +138 -0
  458. package/hxmc/std/hxmc/rt/Str.hx +584 -0
  459. package/hxmc/std/hxmc/rt/ThreadApi.hx +290 -0
  460. package/hxmc/std/hxmc/rt/Threads.hx +550 -0
  461. package/hxmc/std/hxmc/rt/Types.hx +139 -0
  462. package/hxmc/std/hxmc/rt/Uv.hx +1777 -0
  463. package/hxmc/std/hxmc/rt/UvLayouts.hx +233 -0
  464. package/hxmc/std/hxmc/rt/WasiNet.hx +76 -0
  465. package/hxmc/std/hxmc/rt/WasiSys.hx +457 -0
  466. package/hxmc/std/hxmc/rt/WinNet.hx +451 -0
  467. package/hxmc/std/hxmc/rt/WinRt.hx +252 -0
  468. package/hxmc/std/hxmc/rt/WinSys.hx +836 -0
  469. package/hxmc/std/hxmc/rt/wasm/Exit.hx +26 -0
  470. package/hxmc/std/hxmc/rt/wasm/Gc.hx +691 -0
  471. package/hxmc/std/hxmc/rt/wasm/Heap.hx +280 -0
  472. package/hxmc/std/hxmc/rt/wasm/Libc.hx +124 -0
  473. package/hxmc/std/hxmc/rt/wasm/NoSsl.hx +47 -0
  474. package/hxmc/std/hxmc/rt/wasm/NoUv.hx +152 -0
  475. package/hxmc/std/hxmc/rt/wasm/Threads.hx +116 -0
  476. package/hxmc/std/hxmc/rt/wasm/Wasi.hx +395 -0
  477. package/hxmc/std/hxmc/rt/wasm/WasiApi.hx +33 -0
  478. package/hxmc/std/hxmc/rt/wasm/Wasm.hx +15 -0
  479. package/hxmc/std/hxmc/unsafe/Arena.hx +131 -0
  480. package/hxmc/std/hxmc/unsafe/Atomic.hx +21 -0
  481. package/hxmc/std/hxmc/unsafe/CString.hx +20 -0
  482. package/hxmc/std/hxmc/unsafe/Callback.hx +21 -0
  483. package/hxmc/std/hxmc/unsafe/Float32.hx +6 -0
  484. package/hxmc/std/hxmc/unsafe/Int16.hx +89 -0
  485. package/hxmc/std/hxmc/unsafe/Int32.hx +4 -0
  486. package/hxmc/std/hxmc/unsafe/Int64.hx +5 -0
  487. package/hxmc/std/hxmc/unsafe/Int8.hx +89 -0
  488. package/hxmc/std/hxmc/unsafe/LibC.hx +32 -0
  489. package/hxmc/std/hxmc/unsafe/Mem.hx +101 -0
  490. package/hxmc/std/hxmc/unsafe/Posix.hx +83 -0
  491. package/hxmc/std/hxmc/unsafe/Ptr.hx +85 -0
  492. package/hxmc/std/hxmc/unsafe/Struct.hx +12 -0
  493. package/hxmc/std/hxmc/unsafe/UInt16.hx +89 -0
  494. package/hxmc/std/hxmc/unsafe/UInt32.hx +4 -0
  495. package/hxmc/std/hxmc/unsafe/UInt64.hx +27 -0
  496. package/hxmc/std/hxmc/unsafe/UInt8.hx +89 -0
  497. package/hxmc/std/hxmc/unsafe/Win32.hx +63 -0
  498. package/hxmc/std/hxmc/unsafe/Winsock.hx +34 -0
  499. package/hxmc/std/sys/FileSystem.hx +128 -0
  500. package/hxmc/std/sys/io/File.hx +132 -0
  501. package/hxmc/std/sys/io/FileInput.hx +54 -0
  502. package/hxmc/std/sys/io/FileOutput.hx +43 -0
  503. package/hxmc/std/sys/io/Process.hx +84 -0
  504. package/hxmc/std/sys/net/Host.hx +34 -0
  505. package/hxmc/std/sys/net/Socket.hx +183 -0
  506. package/hxmc/std/sys/ssl/Certificate.hx +92 -0
  507. package/hxmc/std/sys/ssl/Key.hx +49 -0
  508. package/hxmc/std/sys/ssl/Mbedtls.hx +61 -0
  509. package/hxmc/std/sys/ssl/Socket.hx +218 -0
  510. package/hxmc/std/sys/thread/Condition.hx +109 -0
  511. package/hxmc/std/sys/thread/Deque.hx +68 -0
  512. package/hxmc/std/sys/thread/Lock.hx +65 -0
  513. package/hxmc/std/sys/thread/Mutex.hx +50 -0
  514. package/hxmc/std/sys/thread/Semaphore.hx +45 -0
  515. package/hxmc/std/sys/thread/Thread.hx +304 -0
  516. package/hxmc/std/sys/thread/ThreadCallback.hx +196 -0
  517. package/hxmc/std/sys/thread/ThreadImpl.hx +22 -0
  518. package/hxmc/std/sys/thread/Tls.hx +33 -0
  519. package/package.json +26 -4
  520. package/README.md +0 -3
@@ -0,0 +1,192 @@
1
+ package typing;
2
+
3
+ import core.TType;
4
+ import core.Globals.Pos;
5
+ import core.TFunctions.*;
6
+ import core.TOther.*;
7
+ import core.TOther;
8
+ import core.TOther.TClassTools;
9
+ import core.Abstract;
10
+ import core.Texpr.Builder;
11
+ import core.Error.*;
12
+ import core.Error;
13
+ import context.Typecore;
14
+ import context.Typecore.FieldHost as FieldAccessHost;
15
+ import context.Typecore.FieldAccess as FieldAccessData;
16
+ import core.ds.NotFound;
17
+
18
+ enum FieldHost {
19
+ // Get the plain expression with applied field type parameters.
20
+ FGet;
21
+ // Does not apply field type parameters.
22
+ FCall;
23
+ // Actual reading, for FClosure and such.
24
+ FRead;
25
+ // Used as lhs, no semantic difference to FGet.
26
+ FWrite;
27
+ }
28
+
29
+ enum AccessorResolution<A> {
30
+ // Accessor was found.
31
+ AccessorFound(value:A);
32
+ // Accessor was not found, but access was made on anonymous structure.
33
+ AccessorAnon;
34
+ // Accessor was not found.
35
+ AccessorNotFound;
36
+ // Accessor resolution was attempted on a non-property.
37
+ AccessorInvalid;
38
+ }
39
+
40
+ class FieldAccess {
41
+ public static function create(e:TExpr, cf:TClassField, fh:FieldAccessHost, doInline:Bool, p:Pos, ?fieldPos:Pos):FieldAccessData {
42
+ return {
43
+ faOn: e,
44
+ faField: cf,
45
+ faHost: fh,
46
+ faInline: doInline,
47
+ faPos: p,
48
+ faFieldPos: fieldPos
49
+ };
50
+ }
51
+
52
+ // Creates the `tfield_access` corresponding to this field access, using the provided field.
53
+ public static function applyFa(cf:TClassField, host:FieldAccessHost):TFieldAccess return switch host {
54
+ case FHStatic(c): FStatic(c, cf);
55
+ case FHInstance(c, tl): FInstance(c, tl, cf);
56
+ case FHAbstract(a, tl, c): FStatic(c, cf);
57
+ case FHAnon: FAnon(cf);
58
+ };
59
+
60
+ public static function getHost(c:TClass, cf:TClassField):FieldAccessHost {
61
+ if (hasClassFieldFlag(cf, CfStatic)) return FHStatic(c);
62
+ return switch c.clKind {
63
+ case KAbstractImpl(a): FHAbstract(a, extractParamTypes(a.aParams), c);
64
+ case _: FHInstance(c, extractParamTypes(c.clParams));
65
+ };
66
+ }
67
+
68
+ public static function getHostClassRaise(host:FieldAccessHost):TClass return switch host {
69
+ case FHStatic(c) | FHInstance(c, _) | FHAbstract(_, _, c): c;
70
+ case FHAnon: throw NotFound.raise();
71
+ };
72
+
73
+ // Returns the mapping function to apply type parameters.
74
+ public static function getMapFunction(fa:FieldAccessData):T->T return switch fa.faHost {
75
+ case FHStatic(_) | FHAnon: function(t) return t;
76
+ case FHInstance(c, tl): TClassTools.getMapFunction(c, tl);
77
+ case FHAbstract(a, tl, _): function(t) return applyParams(a.aParams, tl, t);
78
+ };
79
+
80
+ // Converts the field access to a `TField` node, using the provided `mode`.
81
+ public static function getFieldExpr(fa:FieldAccessData, mode:FieldHost):TExpr {
82
+ var cf = fa.faField;
83
+ var t = mode == FCall ? cf.cfType : fieldType(cf);
84
+ var access:TFieldAccess = switch fa.faHost {
85
+ case FHStatic(c): FStatic(c, cf);
86
+ case FHInstance(c, tl):
87
+ t = TClassTools.getMapFunction(c, tl)(t);
88
+ switch cf.cfKind {
89
+ case Method(_) if (mode == FRead): FClosure({cls: c, params: tl}, cf);
90
+ case _: FInstance(c, tl, cf);
91
+ }
92
+ case FHAbstract(a, tl, c):
93
+ t = applyParams(a.aParams, tl, t);
94
+ FStatic(c, cf);
95
+ case FHAnon:
96
+ switch cf.cfKind {
97
+ case Method(_) if (mode == FRead): FClosure(null, cf);
98
+ case _: FAnon(cf);
99
+ }
100
+ };
101
+ return mk(TField(fa.faOn, access), t, fa.faPos);
102
+ }
103
+
104
+ public static function findAccessorForField(host:FieldAccessHost, cf:TClassField, t:T,
105
+ mode:AccessMode):AccessorResolution<{field:TClassField, host:FieldAccessHost}> {
106
+ return switch cf.cfKind {
107
+ case Var(v):
108
+ var writing = switch mode {
109
+ case MSet(_): true;
110
+ case _: false;
111
+ };
112
+ switch (writing ? v.vWrite : v.vRead) {
113
+ case AccCall | AccPrivateCall:
114
+ var name = (writing ? "set_" : "get_") + cf.cfName;
115
+ switch host {
116
+ case FHStatic(c):
117
+ var accessor = c.clStatics.get(name);
118
+ // TODO: Check if this is correct, there's a case in hxcpp's VirtualArray
119
+ accessor == null ? AccessorAnon : AccessorFound({field: accessor, host: host});
120
+ case FHInstance(c, tl):
121
+ try {
122
+ // Accessors can be overridden, so we have to check the actual type.
123
+ var actual = switch follow(t) {
124
+ case TInst(c, tl): {cls: c, params: tl};
125
+ case _: {cls: c, params: tl};
126
+ };
127
+ var found = rawClassField(function(f) return f.cfType, actual.cls, actual.params, name);
128
+ var newHost = found.owner == null ? FHAnon : FHInstance(found.owner.cls, found.owner.params);
129
+ AccessorFound({field: found.field, host: newHost});
130
+ } catch (error:NotFound) {
131
+ hasClassFlag(c, CExtern) ? AccessorAnon : AccessorNotFound;
132
+ }
133
+ case FHAbstract(a, tl, c):
134
+ var accessor = c.clStatics.get(name);
135
+ accessor == null ? AccessorAnon : AccessorFound({field: accessor, host: host});
136
+ case FHAnon: AccessorAnon;
137
+ }
138
+ case _: AccessorInvalid;
139
+ }
140
+ case _: AccessorInvalid;
141
+ };
142
+ }
143
+
144
+ // Resolves the accessor on the field access, using the provided `mode`.
145
+ public static function resolveAccessor(fa:FieldAccessData, mode:AccessMode):AccessorResolution<FieldAccessData> {
146
+ return switch findAccessorForField(fa.faHost, fa.faField, fa.faOn.etype, mode) {
147
+ case AccessorFound(found): AccessorFound(create(fa.faOn, found.field, found.host, fa.faInline, fa.faPos, fa.faFieldPos));
148
+ case AccessorInvalid: AccessorInvalid;
149
+ case AccessorAnon: AccessorAnon;
150
+ case AccessorNotFound: AccessorNotFound;
151
+ };
152
+ }
153
+
154
+ public static function getConstructorAccess(c:TClass, tl:TParams, p:Pos):FieldAccessData {
155
+ try {
156
+ var eStatic = Builder.makeStaticThis(c, p);
157
+ var actual = switch c.clKind {
158
+ case KAbstractImpl(a): switch Abstract.followWithForwardCtor(TAbstract(a, tl)) {
159
+ case TInst(c, tl): {cls: c, params: tl};
160
+ case TAbstract(a, tl) if (a.aImpl != null): {cls: a.aImpl, params: tl};
161
+ case _: {cls: c, params: tl};
162
+ }
163
+ case _: {cls: c, params: tl};
164
+ };
165
+ var host:FieldAccessHost;
166
+ var cf = switch actual.cls.clKind {
167
+ case KAbstractImpl(a):
168
+ if (a.aConstructor == null) throw NotFound.raise();
169
+ host = FHAbstract(a, actual.params, actual.cls);
170
+ a.aConstructor;
171
+ case _:
172
+ host = FHInstance(actual.cls, actual.params);
173
+ getConstructor(actual.cls);
174
+ };
175
+ return create(eStatic, cf, host, false, p);
176
+ } catch (error:NotFound) {
177
+ return raiseTypingErrorExt(makeError(NoConstructor(switch c.clKind {
178
+ case KAbstractImpl(a): TAbstractDecl(a);
179
+ case _: TClassDecl(c);
180
+ }), p));
181
+ }
182
+ }
183
+
184
+ public static function makeStaticExtensionAccess(c:TClass, cf:TClassField, eThis:TExpr, doInline:Bool, p:Pos):StaticExtensionAccess {
185
+ return {seThis: eThis, seAccess: create(Builder.makeStaticThis(c, p), cf, FHStatic(c), doInline, p)};
186
+ }
187
+
188
+ public static function makeAbstractStaticExtensionAccess(a:TAbstract, tl:TParams, c:TClass, cf:TClassField, eThis:TExpr,
189
+ doInline:Bool, p:Pos):StaticExtensionAccess {
190
+ return {seThis: eThis, seAccess: create(Builder.makeStaticThis(c, p), cf, FHAbstract(a, tl, c), doInline, p)};
191
+ }
192
+ }
@@ -0,0 +1,58 @@
1
+ package typing;
2
+
3
+ import core.TType;
4
+ import core.TPrinting;
5
+
6
+ // This record holds transient information about an (attempted) call on a field. It is created when resolving
7
+ // field calls and is passed to overload filters.
8
+ @:structInit class FieldCallCandidateData<A> {
9
+ // The argument expressions for this call and whether or not the argument is optional on the
10
+ // target function.
11
+ public var fcArgs:Array<TExpr>;
12
+ // The applied return type.
13
+ public var fcRet:T;
14
+ // The applied function type.
15
+ public var fcType:T;
16
+ // The class field being called.
17
+ public var fcField:TClassField;
18
+ // The field monomorphs that were created for this call.
19
+ public var fcMonos:Array<T>;
20
+ // The custom data associated with this call.
21
+ public var fcData:A;
22
+
23
+ public inline function new(fcArgs:Array<TExpr>, fcRet:T, fcType:T, fcField:TClassField, fcMonos:Array<T>, fcData:A) {
24
+ this.fcArgs = fcArgs;
25
+ this.fcRet = fcRet;
26
+ this.fcType = fcType;
27
+ this.fcField = fcField;
28
+ this.fcMonos = fcMonos;
29
+ this.fcData = fcData;
30
+ }
31
+
32
+ public inline function clone():FieldCallCandidateData<A> return new FieldCallCandidateData(fcArgs, fcRet, fcType, fcField, fcMonos,
33
+ fcData);
34
+ }
35
+
36
+ class FieldCallCandidate {
37
+ public static function makeFieldCallCandidate<A>(args:Array<TExpr>, ret:T, monos:Array<T>, t:T, cf:TClassField,
38
+ data:A):FieldCallCandidateData<A> {
39
+ return {
40
+ fcArgs: args,
41
+ fcType: t,
42
+ fcField: cf,
43
+ fcData: data,
44
+ fcRet: ret,
45
+ fcMonos: monos
46
+ };
47
+ }
48
+
49
+ public static function sFieldCallCandidate<A>(fcc:FieldCallCandidateData<A>):String {
50
+ var pctx = TPrinting.printContext();
51
+ var se = function(e) return TPrinting.sExprPretty(false, "", false, function(t) return TPrinting.sType(pctx, t), e);
52
+ return Printer.sRecordFields("", [
53
+ {name: "fc_args", value: fcc.fcArgs.map(se).join(", ")},
54
+ {name: "fc_type", value: TPrinting.sType(pctx, fcc.fcType)},
55
+ {name: "fc_field", value: fcc.fcField.cfName + ": " + TPrinting.sType(pctx, fcc.fcField.cfType)}
56
+ ]);
57
+ }
58
+ }