@alloy-js/csharp 0.21.0-dev.8 → 0.21.0

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 (817) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/scripts/components/library-interface.d.ts +9 -0
  3. package/dist/scripts/components/library-interface.d.ts.map +1 -0
  4. package/dist/scripts/components/library-interface.js +43 -0
  5. package/dist/scripts/components/library-interface.js.map +1 -0
  6. package/dist/scripts/components/namespace-directory.d.ts +7 -0
  7. package/dist/scripts/components/namespace-directory.d.ts.map +1 -0
  8. package/dist/scripts/components/namespace-directory.js +96 -0
  9. package/dist/scripts/components/namespace-directory.js.map +1 -0
  10. package/dist/scripts/generate-builtins.d.ts +11 -0
  11. package/dist/scripts/generate-builtins.d.ts.map +1 -0
  12. package/dist/scripts/generate-builtins.js +37 -0
  13. package/dist/scripts/generate-builtins.js.map +1 -0
  14. package/dist/scripts/process-docfx.d.ts +3 -0
  15. package/dist/scripts/process-docfx.d.ts.map +1 -0
  16. package/dist/scripts/process-docfx.js +300 -0
  17. package/dist/scripts/process-docfx.js.map +1 -0
  18. package/dist/src/access.d.ts +13 -0
  19. package/dist/src/access.d.ts.map +1 -0
  20. package/dist/src/access.js +65 -0
  21. package/dist/src/access.js.map +1 -0
  22. package/dist/src/access.test.d.ts +2 -0
  23. package/dist/src/access.test.d.ts.map +1 -0
  24. package/dist/src/access.test.js +43 -0
  25. package/dist/src/access.test.js.map +1 -0
  26. package/dist/src/builtins/Microsoft/CSharp/RuntimeBinder/index.d.ts +12 -0
  27. package/dist/src/builtins/Microsoft/CSharp/RuntimeBinder/index.d.ts.map +1 -0
  28. package/dist/src/builtins/Microsoft/CSharp/RuntimeBinder/index.js +23 -0
  29. package/dist/src/builtins/Microsoft/CSharp/RuntimeBinder/index.js.map +1 -0
  30. package/dist/src/builtins/Microsoft/CSharp/index.d.ts +6 -0
  31. package/dist/src/builtins/Microsoft/CSharp/index.d.ts.map +1 -0
  32. package/dist/src/builtins/Microsoft/CSharp/index.js +5 -0
  33. package/dist/src/builtins/Microsoft/CSharp/index.js.map +1 -0
  34. package/dist/src/builtins/Microsoft/VisualBasic/FileIO/index.d.ts +102 -0
  35. package/dist/src/builtins/Microsoft/VisualBasic/FileIO/index.d.ts.map +1 -0
  36. package/dist/src/builtins/Microsoft/VisualBasic/FileIO/index.js +473 -0
  37. package/dist/src/builtins/Microsoft/VisualBasic/FileIO/index.js.map +1 -0
  38. package/dist/src/builtins/Microsoft/VisualBasic/index.d.ts +491 -0
  39. package/dist/src/builtins/Microsoft/VisualBasic/index.d.ts.map +1 -0
  40. package/dist/src/builtins/Microsoft/VisualBasic/index.js +2534 -0
  41. package/dist/src/builtins/Microsoft/VisualBasic/index.js.map +1 -0
  42. package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.d.ts +82 -0
  43. package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.d.ts.map +1 -0
  44. package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.js +320 -0
  45. package/dist/src/builtins/Microsoft/Win32/SafeHandles/index.js.map +1 -0
  46. package/dist/src/builtins/Microsoft/Win32/index.d.ts +79 -0
  47. package/dist/src/builtins/Microsoft/Win32/index.d.ts.map +1 -0
  48. package/dist/src/builtins/Microsoft/Win32/index.js +362 -0
  49. package/dist/src/builtins/Microsoft/Win32/index.js.map +1 -0
  50. package/dist/src/builtins/Microsoft/index.d.ts +8 -0
  51. package/dist/src/builtins/Microsoft/index.d.ts.map +1 -0
  52. package/dist/src/builtins/Microsoft/index.js +7 -0
  53. package/dist/src/builtins/Microsoft/index.js.map +1 -0
  54. package/dist/src/builtins/System/Buffers/Binary/index.d.ts +113 -0
  55. package/dist/src/builtins/System/Buffers/Binary/index.d.ts.map +1 -0
  56. package/dist/src/builtins/System/Buffers/Binary/index.js +536 -0
  57. package/dist/src/builtins/System/Buffers/Binary/index.js.map +1 -0
  58. package/dist/src/builtins/System/Buffers/Text/index.d.ts +37 -0
  59. package/dist/src/builtins/System/Buffers/Text/index.d.ts.map +1 -0
  60. package/dist/src/builtins/System/Buffers/Text/index.js +144 -0
  61. package/dist/src/builtins/System/Buffers/Text/index.js.map +1 -0
  62. package/dist/src/builtins/System/Buffers/index.d.ts +142 -0
  63. package/dist/src/builtins/System/Buffers/index.d.ts.map +1 -0
  64. package/dist/src/builtins/System/Buffers/index.js +605 -0
  65. package/dist/src/builtins/System/Buffers/index.js.map +1 -0
  66. package/dist/src/builtins/System/CodeDom/Compiler/index.d.ts +31 -0
  67. package/dist/src/builtins/System/CodeDom/Compiler/index.d.ts.map +1 -0
  68. package/dist/src/builtins/System/CodeDom/Compiler/index.js +131 -0
  69. package/dist/src/builtins/System/CodeDom/Compiler/index.js.map +1 -0
  70. package/dist/src/builtins/System/CodeDom/index.d.ts +6 -0
  71. package/dist/src/builtins/System/CodeDom/index.d.ts.map +1 -0
  72. package/dist/src/builtins/System/CodeDom/index.js +5 -0
  73. package/dist/src/builtins/System/CodeDom/index.js.map +1 -0
  74. package/dist/src/builtins/System/Collections/Concurrent/index.d.ts +100 -0
  75. package/dist/src/builtins/System/Collections/Concurrent/index.d.ts.map +1 -0
  76. package/dist/src/builtins/System/Collections/Concurrent/index.js +399 -0
  77. package/dist/src/builtins/System/Collections/Concurrent/index.js.map +1 -0
  78. package/dist/src/builtins/System/Collections/Frozen/index.d.ts +29 -0
  79. package/dist/src/builtins/System/Collections/Frozen/index.d.ts.map +1 -0
  80. package/dist/src/builtins/System/Collections/Frozen/index.js +88 -0
  81. package/dist/src/builtins/System/Collections/Frozen/index.js.map +1 -0
  82. package/dist/src/builtins/System/Collections/Generic/index.d.ts +275 -0
  83. package/dist/src/builtins/System/Collections/Generic/index.d.ts.map +1 -0
  84. package/dist/src/builtins/System/Collections/Generic/index.js +978 -0
  85. package/dist/src/builtins/System/Collections/Generic/index.js.map +1 -0
  86. package/dist/src/builtins/System/Collections/Immutable/index.d.ts +273 -0
  87. package/dist/src/builtins/System/Collections/Immutable/index.d.ts.map +1 -0
  88. package/dist/src/builtins/System/Collections/Immutable/index.js +1049 -0
  89. package/dist/src/builtins/System/Collections/Immutable/index.js.map +1 -0
  90. package/dist/src/builtins/System/Collections/ObjectModel/index.d.ts +97 -0
  91. package/dist/src/builtins/System/Collections/ObjectModel/index.d.ts.map +1 -0
  92. package/dist/src/builtins/System/Collections/ObjectModel/index.js +394 -0
  93. package/dist/src/builtins/System/Collections/ObjectModel/index.js.map +1 -0
  94. package/dist/src/builtins/System/Collections/Specialized/index.d.ts +162 -0
  95. package/dist/src/builtins/System/Collections/Specialized/index.d.ts.map +1 -0
  96. package/dist/src/builtins/System/Collections/Specialized/index.js +716 -0
  97. package/dist/src/builtins/System/Collections/Specialized/index.js.map +1 -0
  98. package/dist/src/builtins/System/Collections/index.d.ts +293 -0
  99. package/dist/src/builtins/System/Collections/index.d.ts.map +1 -0
  100. package/dist/src/builtins/System/Collections/index.js +1355 -0
  101. package/dist/src/builtins/System/Collections/index.js.map +1 -0
  102. package/dist/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.d.ts +40 -0
  103. package/dist/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.d.ts.map +1 -0
  104. package/dist/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.js +143 -0
  105. package/dist/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.js.map +1 -0
  106. package/dist/src/builtins/System/ComponentModel/DataAnnotations/index.d.ts +274 -0
  107. package/dist/src/builtins/System/ComponentModel/DataAnnotations/index.d.ts.map +1 -0
  108. package/dist/src/builtins/System/ComponentModel/DataAnnotations/index.js +1237 -0
  109. package/dist/src/builtins/System/ComponentModel/DataAnnotations/index.js.map +1 -0
  110. package/dist/src/builtins/System/ComponentModel/Design/Serialization/index.d.ts +128 -0
  111. package/dist/src/builtins/System/ComponentModel/Design/Serialization/index.d.ts.map +1 -0
  112. package/dist/src/builtins/System/ComponentModel/Design/Serialization/index.js +535 -0
  113. package/dist/src/builtins/System/ComponentModel/Design/Serialization/index.js.map +1 -0
  114. package/dist/src/builtins/System/ComponentModel/Design/index.d.ts +428 -0
  115. package/dist/src/builtins/System/ComponentModel/Design/index.d.ts.map +1 -0
  116. package/dist/src/builtins/System/ComponentModel/Design/index.js +2008 -0
  117. package/dist/src/builtins/System/ComponentModel/Design/index.js.map +1 -0
  118. package/dist/src/builtins/System/ComponentModel/index.d.ts +1431 -0
  119. package/dist/src/builtins/System/ComponentModel/index.d.ts.map +1 -0
  120. package/dist/src/builtins/System/ComponentModel/index.js +6649 -0
  121. package/dist/src/builtins/System/ComponentModel/index.js.map +1 -0
  122. package/dist/src/builtins/System/Configuration/Assemblies/index.d.ts +19 -0
  123. package/dist/src/builtins/System/Configuration/Assemblies/index.d.ts.map +1 -0
  124. package/dist/src/builtins/System/Configuration/Assemblies/index.js +69 -0
  125. package/dist/src/builtins/System/Configuration/Assemblies/index.js.map +1 -0
  126. package/dist/src/builtins/System/Configuration/index.d.ts +6 -0
  127. package/dist/src/builtins/System/Configuration/index.d.ts.map +1 -0
  128. package/dist/src/builtins/System/Configuration/index.js +5 -0
  129. package/dist/src/builtins/System/Configuration/index.js.map +1 -0
  130. package/dist/src/builtins/System/Data/Common/index.d.ts +611 -0
  131. package/dist/src/builtins/System/Data/Common/index.d.ts.map +1 -0
  132. package/dist/src/builtins/System/Data/Common/index.js +3279 -0
  133. package/dist/src/builtins/System/Data/Common/index.js.map +1 -0
  134. package/dist/src/builtins/System/Data/SqlTypes/index.d.ts +541 -0
  135. package/dist/src/builtins/System/Data/SqlTypes/index.d.ts.map +1 -0
  136. package/dist/src/builtins/System/Data/SqlTypes/index.js +2655 -0
  137. package/dist/src/builtins/System/Data/SqlTypes/index.js.map +1 -0
  138. package/dist/src/builtins/System/Data/index.d.ts +967 -0
  139. package/dist/src/builtins/System/Data/index.d.ts.map +1 -0
  140. package/dist/src/builtins/System/Data/index.js +4504 -0
  141. package/dist/src/builtins/System/Data/index.js.map +1 -0
  142. package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.d.ts +155 -0
  143. package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.d.ts.map +1 -0
  144. package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.js +705 -0
  145. package/dist/src/builtins/System/Diagnostics/CodeAnalysis/index.js.map +1 -0
  146. package/dist/src/builtins/System/Diagnostics/Contracts/index.d.ts +76 -0
  147. package/dist/src/builtins/System/Diagnostics/Contracts/index.d.ts.map +1 -0
  148. package/dist/src/builtins/System/Diagnostics/Contracts/index.js +309 -0
  149. package/dist/src/builtins/System/Diagnostics/Contracts/index.js.map +1 -0
  150. package/dist/src/builtins/System/Diagnostics/Metrics/index.d.ts +83 -0
  151. package/dist/src/builtins/System/Diagnostics/Metrics/index.d.ts.map +1 -0
  152. package/dist/src/builtins/System/Diagnostics/Metrics/index.js +323 -0
  153. package/dist/src/builtins/System/Diagnostics/Metrics/index.js.map +1 -0
  154. package/dist/src/builtins/System/Diagnostics/SymbolStore/index.d.ts +138 -0
  155. package/dist/src/builtins/System/Diagnostics/SymbolStore/index.d.ts.map +1 -0
  156. package/dist/src/builtins/System/Diagnostics/SymbolStore/index.js +610 -0
  157. package/dist/src/builtins/System/Diagnostics/SymbolStore/index.js.map +1 -0
  158. package/dist/src/builtins/System/Diagnostics/Tracing/index.d.ts +206 -0
  159. package/dist/src/builtins/System/Diagnostics/Tracing/index.d.ts.map +1 -0
  160. package/dist/src/builtins/System/Diagnostics/Tracing/index.js +954 -0
  161. package/dist/src/builtins/System/Diagnostics/Tracing/index.js.map +1 -0
  162. package/dist/src/builtins/System/Diagnostics/index.d.ts +800 -0
  163. package/dist/src/builtins/System/Diagnostics/index.d.ts.map +1 -0
  164. package/dist/src/builtins/System/Diagnostics/index.js +3826 -0
  165. package/dist/src/builtins/System/Diagnostics/index.js.map +1 -0
  166. package/dist/src/builtins/System/Drawing/index.d.ts +558 -0
  167. package/dist/src/builtins/System/Drawing/index.d.ts.map +1 -0
  168. package/dist/src/builtins/System/Drawing/index.js +3305 -0
  169. package/dist/src/builtins/System/Drawing/index.js.map +1 -0
  170. package/dist/src/builtins/System/Dynamic/index.d.ts +170 -0
  171. package/dist/src/builtins/System/Dynamic/index.d.ts.map +1 -0
  172. package/dist/src/builtins/System/Dynamic/index.js +795 -0
  173. package/dist/src/builtins/System/Dynamic/index.js.map +1 -0
  174. package/dist/src/builtins/System/Formats/Asn1/index.d.ts +173 -0
  175. package/dist/src/builtins/System/Formats/Asn1/index.d.ts.map +1 -0
  176. package/dist/src/builtins/System/Formats/Asn1/index.js +843 -0
  177. package/dist/src/builtins/System/Formats/Asn1/index.js.map +1 -0
  178. package/dist/src/builtins/System/Formats/Tar/index.d.ts +96 -0
  179. package/dist/src/builtins/System/Formats/Tar/index.d.ts.map +1 -0
  180. package/dist/src/builtins/System/Formats/Tar/index.js +436 -0
  181. package/dist/src/builtins/System/Formats/Tar/index.js.map +1 -0
  182. package/dist/src/builtins/System/Formats/index.d.ts +7 -0
  183. package/dist/src/builtins/System/Formats/index.d.ts.map +1 -0
  184. package/dist/src/builtins/System/Formats/index.js +6 -0
  185. package/dist/src/builtins/System/Formats/index.js.map +1 -0
  186. package/dist/src/builtins/System/Globalization/index.d.ts +737 -0
  187. package/dist/src/builtins/System/Globalization/index.d.ts.map +1 -0
  188. package/dist/src/builtins/System/Globalization/index.js +3848 -0
  189. package/dist/src/builtins/System/Globalization/index.js.map +1 -0
  190. package/dist/src/builtins/System/IO/Compression/index.d.ts +186 -0
  191. package/dist/src/builtins/System/IO/Compression/index.d.ts.map +1 -0
  192. package/dist/src/builtins/System/IO/Compression/index.js +894 -0
  193. package/dist/src/builtins/System/IO/Compression/index.js.map +1 -0
  194. package/dist/src/builtins/System/IO/Enumeration/index.d.ts +53 -0
  195. package/dist/src/builtins/System/IO/Enumeration/index.d.ts.map +1 -0
  196. package/dist/src/builtins/System/IO/Enumeration/index.js +218 -0
  197. package/dist/src/builtins/System/IO/Enumeration/index.js.map +1 -0
  198. package/dist/src/builtins/System/IO/IsolatedStorage/index.d.ts +103 -0
  199. package/dist/src/builtins/System/IO/IsolatedStorage/index.d.ts.map +1 -0
  200. package/dist/src/builtins/System/IO/IsolatedStorage/index.js +495 -0
  201. package/dist/src/builtins/System/IO/IsolatedStorage/index.js.map +1 -0
  202. package/dist/src/builtins/System/IO/MemoryMappedFiles/index.d.ts +56 -0
  203. package/dist/src/builtins/System/IO/MemoryMappedFiles/index.d.ts.map +1 -0
  204. package/dist/src/builtins/System/IO/MemoryMappedFiles/index.js +251 -0
  205. package/dist/src/builtins/System/IO/MemoryMappedFiles/index.js.map +1 -0
  206. package/dist/src/builtins/System/IO/Pipelines/index.d.ts +93 -0
  207. package/dist/src/builtins/System/IO/Pipelines/index.d.ts.map +1 -0
  208. package/dist/src/builtins/System/IO/Pipelines/index.js +415 -0
  209. package/dist/src/builtins/System/IO/Pipelines/index.js.map +1 -0
  210. package/dist/src/builtins/System/IO/Pipes/index.d.ts +157 -0
  211. package/dist/src/builtins/System/IO/Pipes/index.d.ts.map +1 -0
  212. package/dist/src/builtins/System/IO/Pipes/index.js +723 -0
  213. package/dist/src/builtins/System/IO/Pipes/index.js.map +1 -0
  214. package/dist/src/builtins/System/IO/index.d.ts +762 -0
  215. package/dist/src/builtins/System/IO/index.d.ts.map +1 -0
  216. package/dist/src/builtins/System/IO/index.js +3713 -0
  217. package/dist/src/builtins/System/IO/index.js.map +1 -0
  218. package/dist/src/builtins/System/Linq/Expressions/index.d.ts +429 -0
  219. package/dist/src/builtins/System/Linq/Expressions/index.d.ts.map +1 -0
  220. package/dist/src/builtins/System/Linq/Expressions/index.js +2253 -0
  221. package/dist/src/builtins/System/Linq/Expressions/index.js.map +1 -0
  222. package/dist/src/builtins/System/Linq/index.d.ts +73 -0
  223. package/dist/src/builtins/System/Linq/index.d.ts.map +1 -0
  224. package/dist/src/builtins/System/Linq/index.js +275 -0
  225. package/dist/src/builtins/System/Linq/index.js.map +1 -0
  226. package/dist/src/builtins/System/Net/Cache/index.d.ts +48 -0
  227. package/dist/src/builtins/System/Net/Cache/index.d.ts.map +1 -0
  228. package/dist/src/builtins/System/Net/Cache/index.js +217 -0
  229. package/dist/src/builtins/System/Net/Cache/index.js.map +1 -0
  230. package/dist/src/builtins/System/Net/Http/Headers/index.d.ts +335 -0
  231. package/dist/src/builtins/System/Net/Http/Headers/index.d.ts.map +1 -0
  232. package/dist/src/builtins/System/Net/Http/Headers/index.js +1668 -0
  233. package/dist/src/builtins/System/Net/Http/Headers/index.js.map +1 -0
  234. package/dist/src/builtins/System/Net/Http/Json/index.d.ts +21 -0
  235. package/dist/src/builtins/System/Net/Http/Json/index.d.ts.map +1 -0
  236. package/dist/src/builtins/System/Net/Http/Json/index.js +72 -0
  237. package/dist/src/builtins/System/Net/Http/Json/index.js.map +1 -0
  238. package/dist/src/builtins/System/Net/Http/Metrics/index.d.ts +13 -0
  239. package/dist/src/builtins/System/Net/Http/Metrics/index.d.ts.map +1 -0
  240. package/dist/src/builtins/System/Net/Http/Metrics/index.js +40 -0
  241. package/dist/src/builtins/System/Net/Http/Metrics/index.js.map +1 -0
  242. package/dist/src/builtins/System/Net/Http/index.d.ts +305 -0
  243. package/dist/src/builtins/System/Net/Http/index.d.ts.map +1 -0
  244. package/dist/src/builtins/System/Net/Http/index.js +1458 -0
  245. package/dist/src/builtins/System/Net/Http/index.js.map +1 -0
  246. package/dist/src/builtins/System/Net/Mail/index.d.ts +182 -0
  247. package/dist/src/builtins/System/Net/Mail/index.d.ts.map +1 -0
  248. package/dist/src/builtins/System/Net/Mail/index.js +871 -0
  249. package/dist/src/builtins/System/Net/Mail/index.js.map +1 -0
  250. package/dist/src/builtins/System/Net/Mime/index.d.ts +100 -0
  251. package/dist/src/builtins/System/Net/Mime/index.d.ts.map +1 -0
  252. package/dist/src/builtins/System/Net/Mime/index.js +500 -0
  253. package/dist/src/builtins/System/Net/Mime/index.js.map +1 -0
  254. package/dist/src/builtins/System/Net/NetworkInformation/index.d.ts +506 -0
  255. package/dist/src/builtins/System/Net/NetworkInformation/index.d.ts.map +1 -0
  256. package/dist/src/builtins/System/Net/NetworkInformation/index.js +2776 -0
  257. package/dist/src/builtins/System/Net/NetworkInformation/index.js.map +1 -0
  258. package/dist/src/builtins/System/Net/Quic/index.d.ts +129 -0
  259. package/dist/src/builtins/System/Net/Quic/index.d.ts.map +1 -0
  260. package/dist/src/builtins/System/Net/Quic/index.js +635 -0
  261. package/dist/src/builtins/System/Net/Quic/index.js.map +1 -0
  262. package/dist/src/builtins/System/Net/Security/index.d.ts +277 -0
  263. package/dist/src/builtins/System/Net/Security/index.d.ts.map +1 -0
  264. package/dist/src/builtins/System/Net/Security/index.js +1432 -0
  265. package/dist/src/builtins/System/Net/Security/index.js.map +1 -0
  266. package/dist/src/builtins/System/Net/Sockets/index.d.ts +593 -0
  267. package/dist/src/builtins/System/Net/Sockets/index.d.ts.map +1 -0
  268. package/dist/src/builtins/System/Net/Sockets/index.js +3095 -0
  269. package/dist/src/builtins/System/Net/Sockets/index.js.map +1 -0
  270. package/dist/src/builtins/System/Net/WebSockets/index.d.ts +165 -0
  271. package/dist/src/builtins/System/Net/WebSockets/index.d.ts.map +1 -0
  272. package/dist/src/builtins/System/Net/WebSockets/index.js +876 -0
  273. package/dist/src/builtins/System/Net/WebSockets/index.js.map +1 -0
  274. package/dist/src/builtins/System/Net/index.d.ts +1066 -0
  275. package/dist/src/builtins/System/Net/index.d.ts.map +1 -0
  276. package/dist/src/builtins/System/Net/index.js +5481 -0
  277. package/dist/src/builtins/System/Net/index.js.map +1 -0
  278. package/dist/src/builtins/System/Numerics/index.d.ts +673 -0
  279. package/dist/src/builtins/System/Numerics/index.d.ts.map +1 -0
  280. package/dist/src/builtins/System/Numerics/index.js +3425 -0
  281. package/dist/src/builtins/System/Numerics/index.js.map +1 -0
  282. package/dist/src/builtins/System/Reflection/Emit/index.d.ts +769 -0
  283. package/dist/src/builtins/System/Reflection/Emit/index.d.ts.map +1 -0
  284. package/dist/src/builtins/System/Reflection/Emit/index.js +4293 -0
  285. package/dist/src/builtins/System/Reflection/Emit/index.js.map +1 -0
  286. package/dist/src/builtins/System/Reflection/Metadata/Ecma335/index.d.ts +513 -0
  287. package/dist/src/builtins/System/Reflection/Metadata/Ecma335/index.d.ts.map +1 -0
  288. package/dist/src/builtins/System/Reflection/Metadata/Ecma335/index.js +2218 -0
  289. package/dist/src/builtins/System/Reflection/Metadata/Ecma335/index.js.map +1 -0
  290. package/dist/src/builtins/System/Reflection/Metadata/index.d.ts +1333 -0
  291. package/dist/src/builtins/System/Reflection/Metadata/index.d.ts.map +1 -0
  292. package/dist/src/builtins/System/Reflection/Metadata/index.js +6045 -0
  293. package/dist/src/builtins/System/Reflection/Metadata/index.js.map +1 -0
  294. package/dist/src/builtins/System/Reflection/PortableExecutable/index.d.ts +383 -0
  295. package/dist/src/builtins/System/Reflection/PortableExecutable/index.d.ts.map +1 -0
  296. package/dist/src/builtins/System/Reflection/PortableExecutable/index.js +2020 -0
  297. package/dist/src/builtins/System/Reflection/PortableExecutable/index.js.map +1 -0
  298. package/dist/src/builtins/System/Reflection/index.d.ts +1038 -0
  299. package/dist/src/builtins/System/Reflection/index.d.ts.map +1 -0
  300. package/dist/src/builtins/System/Reflection/index.js +5244 -0
  301. package/dist/src/builtins/System/Reflection/index.js.map +1 -0
  302. package/dist/src/builtins/System/Resources/index.d.ts +70 -0
  303. package/dist/src/builtins/System/Resources/index.d.ts.map +1 -0
  304. package/dist/src/builtins/System/Resources/index.js +289 -0
  305. package/dist/src/builtins/System/Resources/index.js.map +1 -0
  306. package/dist/src/builtins/System/Runtime/CompilerServices/index.d.ts +486 -0
  307. package/dist/src/builtins/System/Runtime/CompilerServices/index.d.ts.map +1 -0
  308. package/dist/src/builtins/System/Runtime/CompilerServices/index.js +1896 -0
  309. package/dist/src/builtins/System/Runtime/CompilerServices/index.js.map +1 -0
  310. package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.d.ts +29 -0
  311. package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.d.ts.map +1 -0
  312. package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.js +103 -0
  313. package/dist/src/builtins/System/Runtime/ConstrainedExecution/index.js.map +1 -0
  314. package/dist/src/builtins/System/Runtime/ExceptionServices/index.d.ts +20 -0
  315. package/dist/src/builtins/System/Runtime/ExceptionServices/index.d.ts.map +1 -0
  316. package/dist/src/builtins/System/Runtime/ExceptionServices/index.js +62 -0
  317. package/dist/src/builtins/System/Runtime/ExceptionServices/index.js.map +1 -0
  318. package/dist/src/builtins/System/Runtime/InteropServices/ComTypes/index.d.ts +23 -0
  319. package/dist/src/builtins/System/Runtime/InteropServices/ComTypes/index.d.ts.map +1 -0
  320. package/dist/src/builtins/System/Runtime/InteropServices/ComTypes/index.js +67 -0
  321. package/dist/src/builtins/System/Runtime/InteropServices/ComTypes/index.js.map +1 -0
  322. package/dist/src/builtins/System/Runtime/InteropServices/JavaScript/index.d.ts +54 -0
  323. package/dist/src/builtins/System/Runtime/InteropServices/JavaScript/index.d.ts.map +1 -0
  324. package/dist/src/builtins/System/Runtime/InteropServices/JavaScript/index.js +210 -0
  325. package/dist/src/builtins/System/Runtime/InteropServices/JavaScript/index.js.map +1 -0
  326. package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.d.ts +259 -0
  327. package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.d.ts.map +1 -0
  328. package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.js +1012 -0
  329. package/dist/src/builtins/System/Runtime/InteropServices/Marshalling/index.js.map +1 -0
  330. package/dist/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.d.ts +24 -0
  331. package/dist/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.d.ts.map +1 -0
  332. package/dist/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.js +79 -0
  333. package/dist/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.js.map +1 -0
  334. package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.d.ts +18 -0
  335. package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.d.ts.map +1 -0
  336. package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.js +49 -0
  337. package/dist/src/builtins/System/Runtime/InteropServices/Swift/index.js.map +1 -0
  338. package/dist/src/builtins/System/Runtime/InteropServices/index.d.ts +781 -0
  339. package/dist/src/builtins/System/Runtime/InteropServices/index.d.ts.map +1 -0
  340. package/dist/src/builtins/System/Runtime/InteropServices/index.js +3626 -0
  341. package/dist/src/builtins/System/Runtime/InteropServices/index.js.map +1 -0
  342. package/dist/src/builtins/System/Runtime/Intrinsics/Arm/index.d.ts +273 -0
  343. package/dist/src/builtins/System/Runtime/Intrinsics/Arm/index.d.ts.map +1 -0
  344. package/dist/src/builtins/System/Runtime/Intrinsics/Arm/index.js +1297 -0
  345. package/dist/src/builtins/System/Runtime/Intrinsics/Arm/index.js.map +1 -0
  346. package/dist/src/builtins/System/Runtime/Intrinsics/Wasm/index.d.ts +73 -0
  347. package/dist/src/builtins/System/Runtime/Intrinsics/Wasm/index.d.ts.map +1 -0
  348. package/dist/src/builtins/System/Runtime/Intrinsics/Wasm/index.js +338 -0
  349. package/dist/src/builtins/System/Runtime/Intrinsics/Wasm/index.js.map +1 -0
  350. package/dist/src/builtins/System/Runtime/Intrinsics/X86/index.d.ts +311 -0
  351. package/dist/src/builtins/System/Runtime/Intrinsics/X86/index.d.ts.map +1 -0
  352. package/dist/src/builtins/System/Runtime/Intrinsics/X86/index.js +1372 -0
  353. package/dist/src/builtins/System/Runtime/Intrinsics/X86/index.js.map +1 -0
  354. package/dist/src/builtins/System/Runtime/Intrinsics/index.d.ts +57 -0
  355. package/dist/src/builtins/System/Runtime/Intrinsics/index.d.ts.map +1 -0
  356. package/dist/src/builtins/System/Runtime/Intrinsics/index.js +273 -0
  357. package/dist/src/builtins/System/Runtime/Intrinsics/index.js.map +1 -0
  358. package/dist/src/builtins/System/Runtime/Loader/index.d.ts +35 -0
  359. package/dist/src/builtins/System/Runtime/Loader/index.d.ts.map +1 -0
  360. package/dist/src/builtins/System/Runtime/Loader/index.js +140 -0
  361. package/dist/src/builtins/System/Runtime/Loader/index.js.map +1 -0
  362. package/dist/src/builtins/System/Runtime/Remoting/index.d.ts +10 -0
  363. package/dist/src/builtins/System/Runtime/Remoting/index.d.ts.map +1 -0
  364. package/dist/src/builtins/System/Runtime/Remoting/index.js +18 -0
  365. package/dist/src/builtins/System/Runtime/Remoting/index.js.map +1 -0
  366. package/dist/src/builtins/System/Runtime/Serialization/DataContracts/index.d.ts +51 -0
  367. package/dist/src/builtins/System/Runtime/Serialization/DataContracts/index.d.ts.map +1 -0
  368. package/dist/src/builtins/System/Runtime/Serialization/DataContracts/index.js +265 -0
  369. package/dist/src/builtins/System/Runtime/Serialization/DataContracts/index.js.map +1 -0
  370. package/dist/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.d.ts +17 -0
  371. package/dist/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.d.ts.map +1 -0
  372. package/dist/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.js +61 -0
  373. package/dist/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.js.map +1 -0
  374. package/dist/src/builtins/System/Runtime/Serialization/Formatters/index.d.ts +24 -0
  375. package/dist/src/builtins/System/Runtime/Serialization/Formatters/index.d.ts.map +1 -0
  376. package/dist/src/builtins/System/Runtime/Serialization/Formatters/index.js +83 -0
  377. package/dist/src/builtins/System/Runtime/Serialization/Formatters/index.js.map +1 -0
  378. package/dist/src/builtins/System/Runtime/Serialization/Json/index.d.ts +45 -0
  379. package/dist/src/builtins/System/Runtime/Serialization/Json/index.d.ts.map +1 -0
  380. package/dist/src/builtins/System/Runtime/Serialization/Json/index.js +192 -0
  381. package/dist/src/builtins/System/Runtime/Serialization/Json/index.js.map +1 -0
  382. package/dist/src/builtins/System/Runtime/Serialization/index.d.ts +374 -0
  383. package/dist/src/builtins/System/Runtime/Serialization/index.d.ts.map +1 -0
  384. package/dist/src/builtins/System/Runtime/Serialization/index.js +1611 -0
  385. package/dist/src/builtins/System/Runtime/Serialization/index.js.map +1 -0
  386. package/dist/src/builtins/System/Runtime/Versioning/index.d.ts +81 -0
  387. package/dist/src/builtins/System/Runtime/Versioning/index.d.ts.map +1 -0
  388. package/dist/src/builtins/System/Runtime/Versioning/index.js +336 -0
  389. package/dist/src/builtins/System/Runtime/Versioning/index.js.map +1 -0
  390. package/dist/src/builtins/System/Runtime/index.d.ts +67 -0
  391. package/dist/src/builtins/System/Runtime/index.d.ts.map +1 -0
  392. package/dist/src/builtins/System/Runtime/index.js +245 -0
  393. package/dist/src/builtins/System/Runtime/index.js.map +1 -0
  394. package/dist/src/builtins/System/Security/AccessControl/index.d.ts +485 -0
  395. package/dist/src/builtins/System/Security/AccessControl/index.d.ts.map +1 -0
  396. package/dist/src/builtins/System/Security/AccessControl/index.js +2343 -0
  397. package/dist/src/builtins/System/Security/AccessControl/index.js.map +1 -0
  398. package/dist/src/builtins/System/Security/Authentication/ExtendedProtection/index.d.ts +43 -0
  399. package/dist/src/builtins/System/Security/Authentication/ExtendedProtection/index.d.ts.map +1 -0
  400. package/dist/src/builtins/System/Security/Authentication/ExtendedProtection/index.js +169 -0
  401. package/dist/src/builtins/System/Security/Authentication/ExtendedProtection/index.js.map +1 -0
  402. package/dist/src/builtins/System/Security/Authentication/index.d.ts +49 -0
  403. package/dist/src/builtins/System/Security/Authentication/index.d.ts.map +1 -0
  404. package/dist/src/builtins/System/Security/Authentication/index.js +212 -0
  405. package/dist/src/builtins/System/Security/Authentication/index.js.map +1 -0
  406. package/dist/src/builtins/System/Security/Claims/index.d.ts +152 -0
  407. package/dist/src/builtins/System/Security/Claims/index.d.ts.map +1 -0
  408. package/dist/src/builtins/System/Security/Claims/index.js +844 -0
  409. package/dist/src/builtins/System/Security/Claims/index.js.map +1 -0
  410. package/dist/src/builtins/System/Security/Cryptography/X509Certificates/index.d.ts +551 -0
  411. package/dist/src/builtins/System/Security/Cryptography/X509Certificates/index.d.ts.map +1 -0
  412. package/dist/src/builtins/System/Security/Cryptography/X509Certificates/index.js +2633 -0
  413. package/dist/src/builtins/System/Security/Cryptography/X509Certificates/index.js.map +1 -0
  414. package/dist/src/builtins/System/Security/Cryptography/index.d.ts +1378 -0
  415. package/dist/src/builtins/System/Security/Cryptography/index.d.ts.map +1 -0
  416. package/dist/src/builtins/System/Security/Cryptography/index.js +6673 -0
  417. package/dist/src/builtins/System/Security/Cryptography/index.js.map +1 -0
  418. package/dist/src/builtins/System/Security/Permissions/index.d.ts +67 -0
  419. package/dist/src/builtins/System/Security/Permissions/index.d.ts.map +1 -0
  420. package/dist/src/builtins/System/Security/Permissions/index.js +325 -0
  421. package/dist/src/builtins/System/Security/Permissions/index.js.map +1 -0
  422. package/dist/src/builtins/System/Security/Policy/index.d.ts +28 -0
  423. package/dist/src/builtins/System/Security/Policy/index.d.ts.map +1 -0
  424. package/dist/src/builtins/System/Security/Policy/index.js +101 -0
  425. package/dist/src/builtins/System/Security/Policy/index.js.map +1 -0
  426. package/dist/src/builtins/System/Security/Principal/index.d.ts +252 -0
  427. package/dist/src/builtins/System/Security/Principal/index.d.ts.map +1 -0
  428. package/dist/src/builtins/System/Security/Principal/index.js +1338 -0
  429. package/dist/src/builtins/System/Security/Principal/index.js.map +1 -0
  430. package/dist/src/builtins/System/Security/index.d.ts +164 -0
  431. package/dist/src/builtins/System/Security/index.d.ts.map +1 -0
  432. package/dist/src/builtins/System/Security/index.js +672 -0
  433. package/dist/src/builtins/System/Security/index.js.map +1 -0
  434. package/dist/src/builtins/System/Text/Encodings/Web/index.d.ts +41 -0
  435. package/dist/src/builtins/System/Text/Encodings/Web/index.d.ts.map +1 -0
  436. package/dist/src/builtins/System/Text/Encodings/Web/index.js +162 -0
  437. package/dist/src/builtins/System/Text/Encodings/Web/index.js.map +1 -0
  438. package/dist/src/builtins/System/Text/Encodings/index.d.ts +6 -0
  439. package/dist/src/builtins/System/Text/Encodings/index.d.ts.map +1 -0
  440. package/dist/src/builtins/System/Text/Encodings/index.js +5 -0
  441. package/dist/src/builtins/System/Text/Encodings/index.js.map +1 -0
  442. package/dist/src/builtins/System/Text/Json/Nodes/index.d.ts +63 -0
  443. package/dist/src/builtins/System/Text/Json/Nodes/index.d.ts.map +1 -0
  444. package/dist/src/builtins/System/Text/Json/Nodes/index.js +250 -0
  445. package/dist/src/builtins/System/Text/Json/Nodes/index.js.map +1 -0
  446. package/dist/src/builtins/System/Text/Json/Schema/index.d.ts +21 -0
  447. package/dist/src/builtins/System/Text/Json/Schema/index.d.ts.map +1 -0
  448. package/dist/src/builtins/System/Text/Json/Schema/index.js +78 -0
  449. package/dist/src/builtins/System/Text/Json/Schema/index.js.map +1 -0
  450. package/dist/src/builtins/System/Text/Json/Serialization/Metadata/index.d.ts +69 -0
  451. package/dist/src/builtins/System/Text/Json/Serialization/Metadata/index.d.ts.map +1 -0
  452. package/dist/src/builtins/System/Text/Json/Serialization/Metadata/index.js +328 -0
  453. package/dist/src/builtins/System/Text/Json/Serialization/Metadata/index.js.map +1 -0
  454. package/dist/src/builtins/System/Text/Json/Serialization/index.d.ts +194 -0
  455. package/dist/src/builtins/System/Text/Json/Serialization/index.d.ts.map +1 -0
  456. package/dist/src/builtins/System/Text/Json/Serialization/index.js +840 -0
  457. package/dist/src/builtins/System/Text/Json/Serialization/index.js.map +1 -0
  458. package/dist/src/builtins/System/Text/Json/index.d.ts +251 -0
  459. package/dist/src/builtins/System/Text/Json/index.d.ts.map +1 -0
  460. package/dist/src/builtins/System/Text/Json/index.js +1185 -0
  461. package/dist/src/builtins/System/Text/Json/index.js.map +1 -0
  462. package/dist/src/builtins/System/Text/RegularExpressions/index.d.ts +152 -0
  463. package/dist/src/builtins/System/Text/RegularExpressions/index.d.ts.map +1 -0
  464. package/dist/src/builtins/System/Text/RegularExpressions/index.js +732 -0
  465. package/dist/src/builtins/System/Text/RegularExpressions/index.js.map +1 -0
  466. package/dist/src/builtins/System/Text/Unicode/index.d.ts +182 -0
  467. package/dist/src/builtins/System/Text/Unicode/index.d.ts.map +1 -0
  468. package/dist/src/builtins/System/Text/Unicode/index.js +1199 -0
  469. package/dist/src/builtins/System/Text/Unicode/index.js.map +1 -0
  470. package/dist/src/builtins/System/Text/index.d.ts +372 -0
  471. package/dist/src/builtins/System/Text/index.d.ts.map +1 -0
  472. package/dist/src/builtins/System/Text/index.js +1748 -0
  473. package/dist/src/builtins/System/Text/index.js.map +1 -0
  474. package/dist/src/builtins/System/Threading/Channels/index.d.ts +56 -0
  475. package/dist/src/builtins/System/Threading/Channels/index.d.ts.map +1 -0
  476. package/dist/src/builtins/System/Threading/Channels/index.js +229 -0
  477. package/dist/src/builtins/System/Threading/Channels/index.js.map +1 -0
  478. package/dist/src/builtins/System/Threading/Tasks/Dataflow/index.d.ts +159 -0
  479. package/dist/src/builtins/System/Threading/Tasks/Dataflow/index.d.ts.map +1 -0
  480. package/dist/src/builtins/System/Threading/Tasks/Dataflow/index.js +676 -0
  481. package/dist/src/builtins/System/Threading/Tasks/Dataflow/index.js.map +1 -0
  482. package/dist/src/builtins/System/Threading/Tasks/Sources/index.d.ts +32 -0
  483. package/dist/src/builtins/System/Threading/Tasks/Sources/index.d.ts.map +1 -0
  484. package/dist/src/builtins/System/Threading/Tasks/Sources/index.js +117 -0
  485. package/dist/src/builtins/System/Threading/Tasks/Sources/index.js.map +1 -0
  486. package/dist/src/builtins/System/Threading/Tasks/index.d.ts +163 -0
  487. package/dist/src/builtins/System/Threading/Tasks/index.d.ts.map +1 -0
  488. package/dist/src/builtins/System/Threading/Tasks/index.js +721 -0
  489. package/dist/src/builtins/System/Threading/Tasks/index.js.map +1 -0
  490. package/dist/src/builtins/System/Threading/index.d.ts +533 -0
  491. package/dist/src/builtins/System/Threading/index.d.ts.map +1 -0
  492. package/dist/src/builtins/System/Threading/index.js +2292 -0
  493. package/dist/src/builtins/System/Threading/index.js.map +1 -0
  494. package/dist/src/builtins/System/Timers/index.d.ts +34 -0
  495. package/dist/src/builtins/System/Timers/index.d.ts.map +1 -0
  496. package/dist/src/builtins/System/Timers/index.js +129 -0
  497. package/dist/src/builtins/System/Timers/index.js.map +1 -0
  498. package/dist/src/builtins/System/Transactions/index.d.ts +183 -0
  499. package/dist/src/builtins/System/Transactions/index.d.ts.map +1 -0
  500. package/dist/src/builtins/System/Transactions/index.js +727 -0
  501. package/dist/src/builtins/System/Transactions/index.js.map +1 -0
  502. package/dist/src/builtins/System/Web/index.d.ts +24 -0
  503. package/dist/src/builtins/System/Web/index.d.ts.map +1 -0
  504. package/dist/src/builtins/System/Web/index.js +84 -0
  505. package/dist/src/builtins/System/Web/index.js.map +1 -0
  506. package/dist/src/builtins/System/Windows/Input/index.d.ts +10 -0
  507. package/dist/src/builtins/System/Windows/Input/index.d.ts.map +1 -0
  508. package/dist/src/builtins/System/Windows/Input/index.js +18 -0
  509. package/dist/src/builtins/System/Windows/Input/index.js.map +1 -0
  510. package/dist/src/builtins/System/Windows/Markup/index.d.ts +11 -0
  511. package/dist/src/builtins/System/Windows/Markup/index.d.ts.map +1 -0
  512. package/dist/src/builtins/System/Windows/Markup/index.js +28 -0
  513. package/dist/src/builtins/System/Windows/Markup/index.js.map +1 -0
  514. package/dist/src/builtins/System/Windows/index.d.ts +7 -0
  515. package/dist/src/builtins/System/Windows/index.d.ts.map +1 -0
  516. package/dist/src/builtins/System/Windows/index.js +6 -0
  517. package/dist/src/builtins/System/Windows/index.js.map +1 -0
  518. package/dist/src/builtins/System/Xml/Linq/index.d.ts +234 -0
  519. package/dist/src/builtins/System/Xml/Linq/index.d.ts.map +1 -0
  520. package/dist/src/builtins/System/Xml/Linq/index.js +1086 -0
  521. package/dist/src/builtins/System/Xml/Linq/index.js.map +1 -0
  522. package/dist/src/builtins/System/Xml/Resolvers/index.d.ts +23 -0
  523. package/dist/src/builtins/System/Xml/Resolvers/index.d.ts.map +1 -0
  524. package/dist/src/builtins/System/Xml/Resolvers/index.js +86 -0
  525. package/dist/src/builtins/System/Xml/Resolvers/index.js.map +1 -0
  526. package/dist/src/builtins/System/Xml/Schema/index.d.ts +630 -0
  527. package/dist/src/builtins/System/Xml/Schema/index.d.ts.map +1 -0
  528. package/dist/src/builtins/System/Xml/Schema/index.js +2993 -0
  529. package/dist/src/builtins/System/Xml/Schema/index.js.map +1 -0
  530. package/dist/src/builtins/System/Xml/Serialization/index.d.ts +534 -0
  531. package/dist/src/builtins/System/Xml/Serialization/index.d.ts.map +1 -0
  532. package/dist/src/builtins/System/Xml/Serialization/index.js +2356 -0
  533. package/dist/src/builtins/System/Xml/Serialization/index.js.map +1 -0
  534. package/dist/src/builtins/System/Xml/XPath/index.d.ts +180 -0
  535. package/dist/src/builtins/System/Xml/XPath/index.d.ts.map +1 -0
  536. package/dist/src/builtins/System/Xml/XPath/index.js +917 -0
  537. package/dist/src/builtins/System/Xml/XPath/index.js.map +1 -0
  538. package/dist/src/builtins/System/Xml/Xsl/index.d.ts +76 -0
  539. package/dist/src/builtins/System/Xml/Xsl/index.d.ts.map +1 -0
  540. package/dist/src/builtins/System/Xml/Xsl/index.js +315 -0
  541. package/dist/src/builtins/System/Xml/Xsl/index.js.map +1 -0
  542. package/dist/src/builtins/System/Xml/index.d.ts +1114 -0
  543. package/dist/src/builtins/System/Xml/index.d.ts.map +1 -0
  544. package/dist/src/builtins/System/Xml/index.js +5736 -0
  545. package/dist/src/builtins/System/Xml/index.js.map +1 -0
  546. package/dist/src/builtins/System/index.d.ts +3029 -0
  547. package/dist/src/builtins/System/index.d.ts.map +1 -0
  548. package/dist/src/builtins/System/index.js +14587 -0
  549. package/dist/src/builtins/System/index.js.map +1 -0
  550. package/dist/src/builtins/index.d.ts +3 -0
  551. package/dist/src/builtins/index.d.ts.map +1 -0
  552. package/dist/src/builtins/index.js +3 -0
  553. package/dist/src/builtins/index.js.map +1 -0
  554. package/dist/src/components/access-expression/access-expression.d.ts +8 -3
  555. package/dist/src/components/access-expression/access-expression.d.ts.map +1 -1
  556. package/dist/src/components/access-expression/access-expression.js.map +1 -1
  557. package/dist/src/components/access-expression/part-descriptors.d.ts +8 -0
  558. package/dist/src/components/access-expression/part-descriptors.d.ts.map +1 -1
  559. package/dist/src/components/access-expression/part-descriptors.js +22 -2
  560. package/dist/src/components/access-expression/part-descriptors.js.map +1 -1
  561. package/dist/src/components/attributes/attributes.d.ts +2 -6
  562. package/dist/src/components/attributes/attributes.d.ts.map +1 -1
  563. package/dist/src/components/attributes/attributes.js +15 -1
  564. package/dist/src/components/attributes/attributes.js.map +1 -1
  565. package/dist/src/components/attributes/attributes.test.js +54 -1
  566. package/dist/src/components/attributes/attributes.test.js.map +1 -1
  567. package/dist/src/components/csproj-file/csproj-file.d.ts +15 -0
  568. package/dist/src/components/csproj-file/csproj-file.d.ts.map +1 -0
  569. package/dist/src/components/csproj-file/csproj-file.js +24 -0
  570. package/dist/src/components/csproj-file/csproj-file.js.map +1 -0
  571. package/dist/src/components/csproj-file/csproj-file.test.d.ts +2 -0
  572. package/dist/src/components/csproj-file/csproj-file.test.d.ts.map +1 -0
  573. package/dist/src/components/csproj-file/csproj-file.test.js +46 -0
  574. package/dist/src/components/csproj-file/csproj-file.test.js.map +1 -0
  575. package/dist/src/components/index.d.ts +3 -1
  576. package/dist/src/components/index.d.ts.map +1 -1
  577. package/dist/src/components/index.js +3 -1
  578. package/dist/src/components/index.js.map +1 -1
  579. package/dist/src/components/parameters/parameters.d.ts +35 -0
  580. package/dist/src/components/parameters/parameters.d.ts.map +1 -1
  581. package/dist/src/components/parameters/parameters.js +14 -1
  582. package/dist/src/components/parameters/parameters.js.map +1 -1
  583. package/dist/src/components/parameters/parameters.test.js +67 -0
  584. package/dist/src/components/parameters/parameters.test.js.map +1 -1
  585. package/dist/src/components/region/region.d.ts +7 -0
  586. package/dist/src/components/region/region.d.ts.map +1 -0
  587. package/dist/src/components/region/region.js +10 -0
  588. package/dist/src/components/region/region.js.map +1 -0
  589. package/dist/src/components/region/region.test.d.ts +2 -0
  590. package/dist/src/components/region/region.test.d.ts.map +1 -0
  591. package/dist/src/components/region/region.test.js +27 -0
  592. package/dist/src/components/region/region.test.js.map +1 -0
  593. package/dist/src/components/stc/index.d.ts +0 -1
  594. package/dist/src/components/stc/index.d.ts.map +1 -1
  595. package/dist/src/components/stc/index.js +0 -1
  596. package/dist/src/components/stc/index.js.map +1 -1
  597. package/dist/src/components/var/declaration.d.ts +6 -2
  598. package/dist/src/components/var/declaration.d.ts.map +1 -1
  599. package/dist/src/components/var/declaration.js +17 -3
  600. package/dist/src/components/var/declaration.js.map +1 -1
  601. package/dist/src/components/var/declaration.test.js +19 -2
  602. package/dist/src/components/var/declaration.test.js.map +1 -1
  603. package/dist/src/contexts/global-namespace.d.ts +1 -0
  604. package/dist/src/contexts/global-namespace.d.ts.map +1 -1
  605. package/dist/src/contexts/global-namespace.js +6 -1
  606. package/dist/src/contexts/global-namespace.js.map +1 -1
  607. package/dist/src/contexts/reference-context.d.ts +12 -0
  608. package/dist/src/contexts/reference-context.d.ts.map +1 -0
  609. package/dist/src/contexts/reference-context.js +15 -0
  610. package/dist/src/contexts/reference-context.js.map +1 -0
  611. package/dist/src/create-library.d.ts +62 -0
  612. package/dist/src/create-library.d.ts.map +1 -0
  613. package/dist/src/create-library.js +136 -0
  614. package/dist/src/create-library.js.map +1 -0
  615. package/dist/src/create-library.test.d.ts +2 -0
  616. package/dist/src/create-library.test.d.ts.map +1 -0
  617. package/dist/src/create-library.test.js +237 -0
  618. package/dist/src/create-library.test.js.map +1 -0
  619. package/dist/src/index.d.ts +2 -0
  620. package/dist/src/index.d.ts.map +1 -1
  621. package/dist/src/index.js +2 -0
  622. package/dist/src/index.js.map +1 -1
  623. package/dist/src/symbols/named-type.d.ts +3 -3
  624. package/dist/src/symbols/named-type.d.ts.map +1 -1
  625. package/dist/src/symbols/named-type.js.map +1 -1
  626. package/dist/src/symbols/reference.d.ts.map +1 -1
  627. package/dist/src/symbols/reference.js +7 -4
  628. package/dist/src/symbols/reference.js.map +1 -1
  629. package/dist/testing/create-wrapper.d.ts +3 -0
  630. package/dist/testing/create-wrapper.d.ts.map +1 -0
  631. package/dist/testing/create-wrapper.js +12 -0
  632. package/dist/testing/create-wrapper.js.map +1 -0
  633. package/dist/testing/create-wrapper.test.d.ts +2 -0
  634. package/dist/testing/create-wrapper.test.d.ts.map +1 -0
  635. package/dist/testing/create-wrapper.test.js +212 -0
  636. package/dist/testing/create-wrapper.test.js.map +1 -0
  637. package/dist/testing/index.d.ts +2 -0
  638. package/dist/testing/index.d.ts.map +1 -0
  639. package/dist/testing/index.js +2 -0
  640. package/dist/testing/index.js.map +1 -0
  641. package/dist/tsconfig.tsbuildinfo +1 -1
  642. package/package.json +22 -6
  643. package/scripts/components/library-interface.tsx +41 -0
  644. package/scripts/components/namespace-directory.tsx +104 -0
  645. package/scripts/generate-builtins.tsx +36 -0
  646. package/scripts/process-docfx.tsx +321 -0
  647. package/src/access.test.tsx +49 -0
  648. package/src/access.tsx +70 -0
  649. package/src/builtins/Microsoft/CSharp/RuntimeBinder/index.ts +32 -0
  650. package/src/builtins/Microsoft/CSharp/index.ts +8 -0
  651. package/src/builtins/Microsoft/VisualBasic/FileIO/index.ts +573 -0
  652. package/src/builtins/Microsoft/VisualBasic/index.ts +3021 -0
  653. package/src/builtins/Microsoft/Win32/SafeHandles/index.ts +400 -0
  654. package/src/builtins/Microsoft/Win32/index.ts +437 -0
  655. package/src/builtins/Microsoft/index.ts +10 -0
  656. package/src/builtins/System/Buffers/Binary/index.ts +646 -0
  657. package/src/builtins/System/Buffers/Text/index.ts +178 -0
  658. package/src/builtins/System/Buffers/index.ts +744 -0
  659. package/src/builtins/System/CodeDom/Compiler/index.ts +160 -0
  660. package/src/builtins/System/CodeDom/index.ts +8 -0
  661. package/src/builtins/System/Collections/Concurrent/index.ts +497 -0
  662. package/src/builtins/System/Collections/Frozen/index.ts +115 -0
  663. package/src/builtins/System/Collections/Generic/index.ts +1253 -0
  664. package/src/builtins/System/Collections/Immutable/index.ts +1322 -0
  665. package/src/builtins/System/Collections/ObjectModel/index.ts +489 -0
  666. package/src/builtins/System/Collections/Specialized/index.ts +878 -0
  667. package/src/builtins/System/Collections/index.ts +1639 -0
  668. package/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.ts +181 -0
  669. package/src/builtins/System/ComponentModel/DataAnnotations/index.ts +1507 -0
  670. package/src/builtins/System/ComponentModel/Design/Serialization/index.ts +661 -0
  671. package/src/builtins/System/ComponentModel/Design/index.ts +2432 -0
  672. package/src/builtins/System/ComponentModel/index.ts +8079 -0
  673. package/src/builtins/System/Configuration/Assemblies/index.ts +85 -0
  674. package/src/builtins/System/Configuration/index.ts +8 -0
  675. package/src/builtins/System/Data/Common/index.ts +3888 -0
  676. package/src/builtins/System/Data/SqlTypes/index.ts +3194 -0
  677. package/src/builtins/System/Data/index.ts +5476 -0
  678. package/src/builtins/System/Diagnostics/CodeAnalysis/index.ts +858 -0
  679. package/src/builtins/System/Diagnostics/Contracts/index.ts +383 -0
  680. package/src/builtins/System/Diagnostics/Metrics/index.ts +404 -0
  681. package/src/builtins/System/Diagnostics/SymbolStore/index.ts +746 -0
  682. package/src/builtins/System/Diagnostics/Tracing/index.ts +1160 -0
  683. package/src/builtins/System/Diagnostics/index.ts +4618 -0
  684. package/src/builtins/System/Drawing/index.ts +3861 -0
  685. package/src/builtins/System/Dynamic/index.ts +963 -0
  686. package/src/builtins/System/Formats/Asn1/index.ts +1014 -0
  687. package/src/builtins/System/Formats/Tar/index.ts +530 -0
  688. package/src/builtins/System/Formats/index.ts +9 -0
  689. package/src/builtins/System/Globalization/index.ts +4583 -0
  690. package/src/builtins/System/IO/Compression/index.ts +1078 -0
  691. package/src/builtins/System/IO/Enumeration/index.ts +269 -0
  692. package/src/builtins/System/IO/IsolatedStorage/index.ts +596 -0
  693. package/src/builtins/System/IO/MemoryMappedFiles/index.ts +305 -0
  694. package/src/builtins/System/IO/Pipelines/index.ts +506 -0
  695. package/src/builtins/System/IO/Pipes/index.ts +878 -0
  696. package/src/builtins/System/IO/index.ts +4466 -0
  697. package/src/builtins/System/Linq/Expressions/index.ts +2680 -0
  698. package/src/builtins/System/Linq/index.ts +352 -0
  699. package/src/builtins/System/Net/Cache/index.ts +263 -0
  700. package/src/builtins/System/Net/Http/Headers/index.ts +2001 -0
  701. package/src/builtins/System/Net/Http/Json/index.ts +91 -0
  702. package/src/builtins/System/Net/Http/Metrics/index.ts +51 -0
  703. package/src/builtins/System/Net/Http/index.ts +1757 -0
  704. package/src/builtins/System/Net/Mail/index.ts +1051 -0
  705. package/src/builtins/System/Net/Mime/index.ts +598 -0
  706. package/src/builtins/System/Net/NetworkInformation/index.ts +3282 -0
  707. package/src/builtins/System/Net/Quic/index.ts +762 -0
  708. package/src/builtins/System/Net/Security/index.ts +1709 -0
  709. package/src/builtins/System/Net/Sockets/index.ts +3686 -0
  710. package/src/builtins/System/Net/WebSockets/index.ts +1039 -0
  711. package/src/builtins/System/Net/index.ts +6535 -0
  712. package/src/builtins/System/Numerics/index.ts +4126 -0
  713. package/src/builtins/System/Reflection/Emit/index.ts +5060 -0
  714. package/src/builtins/System/Reflection/Metadata/Ecma335/index.ts +2729 -0
  715. package/src/builtins/System/Reflection/Metadata/index.ts +7374 -0
  716. package/src/builtins/System/Reflection/PortableExecutable/index.ts +2401 -0
  717. package/src/builtins/System/Reflection/index.ts +6276 -0
  718. package/src/builtins/System/Resources/index.ts +357 -0
  719. package/src/builtins/System/Runtime/CompilerServices/index.ts +2406 -0
  720. package/src/builtins/System/Runtime/ConstrainedExecution/index.ts +129 -0
  721. package/src/builtins/System/Runtime/ExceptionServices/index.ts +80 -0
  722. package/src/builtins/System/Runtime/InteropServices/ComTypes/index.ts +87 -0
  723. package/src/builtins/System/Runtime/InteropServices/JavaScript/index.ts +290 -0
  724. package/src/builtins/System/Runtime/InteropServices/Marshalling/index.ts +1271 -0
  725. package/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.ts +100 -0
  726. package/src/builtins/System/Runtime/InteropServices/Swift/index.ts +65 -0
  727. package/src/builtins/System/Runtime/InteropServices/index.ts +4405 -0
  728. package/src/builtins/System/Runtime/Intrinsics/Arm/index.ts +1568 -0
  729. package/src/builtins/System/Runtime/Intrinsics/Wasm/index.ts +409 -0
  730. package/src/builtins/System/Runtime/Intrinsics/X86/index.ts +1681 -0
  731. package/src/builtins/System/Runtime/Intrinsics/index.ts +324 -0
  732. package/src/builtins/System/Runtime/Loader/index.ts +173 -0
  733. package/src/builtins/System/Runtime/Remoting/index.ts +25 -0
  734. package/src/builtins/System/Runtime/Serialization/DataContracts/index.ts +314 -0
  735. package/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.ts +76 -0
  736. package/src/builtins/System/Runtime/Serialization/Formatters/index.ts +103 -0
  737. package/src/builtins/System/Runtime/Serialization/Json/index.ts +235 -0
  738. package/src/builtins/System/Runtime/Serialization/index.ts +1981 -0
  739. package/src/builtins/System/Runtime/Versioning/index.ts +415 -0
  740. package/src/builtins/System/Runtime/index.ts +300 -0
  741. package/src/builtins/System/Security/AccessControl/index.ts +2826 -0
  742. package/src/builtins/System/Security/Authentication/ExtendedProtection/index.ts +210 -0
  743. package/src/builtins/System/Security/Authentication/index.ts +256 -0
  744. package/src/builtins/System/Security/Claims/index.ts +994 -0
  745. package/src/builtins/System/Security/Cryptography/X509Certificates/index.ts +3182 -0
  746. package/src/builtins/System/Security/Cryptography/index.ts +8047 -0
  747. package/src/builtins/System/Security/Permissions/index.ts +390 -0
  748. package/src/builtins/System/Security/Policy/index.ts +127 -0
  749. package/src/builtins/System/Security/Principal/index.ts +1588 -0
  750. package/src/builtins/System/Security/index.ts +826 -0
  751. package/src/builtins/System/Text/Encodings/Web/index.ts +200 -0
  752. package/src/builtins/System/Text/Encodings/index.ts +8 -0
  753. package/src/builtins/System/Text/Json/Nodes/index.ts +311 -0
  754. package/src/builtins/System/Text/Json/Schema/index.ts +97 -0
  755. package/src/builtins/System/Text/Json/Serialization/Metadata/index.ts +395 -0
  756. package/src/builtins/System/Text/Json/Serialization/index.ts +1030 -0
  757. package/src/builtins/System/Text/Json/index.ts +1430 -0
  758. package/src/builtins/System/Text/RegularExpressions/index.ts +882 -0
  759. package/src/builtins/System/Text/Unicode/index.ts +1379 -0
  760. package/src/builtins/System/Text/index.ts +2113 -0
  761. package/src/builtins/System/Threading/Channels/index.ts +283 -0
  762. package/src/builtins/System/Threading/Tasks/Dataflow/index.ts +837 -0
  763. package/src/builtins/System/Threading/Tasks/Sources/index.ts +147 -0
  764. package/src/builtins/System/Threading/Tasks/index.ts +879 -0
  765. package/src/builtins/System/Threading/index.ts +2824 -0
  766. package/src/builtins/System/Timers/index.ts +161 -0
  767. package/src/builtins/System/Transactions/index.ts +908 -0
  768. package/src/builtins/System/Web/index.ts +105 -0
  769. package/src/builtins/System/Windows/Input/index.ts +25 -0
  770. package/src/builtins/System/Windows/Markup/index.ts +37 -0
  771. package/src/builtins/System/Windows/index.ts +9 -0
  772. package/src/builtins/System/Xml/Linq/index.ts +1318 -0
  773. package/src/builtins/System/Xml/Resolvers/index.ts +107 -0
  774. package/src/builtins/System/Xml/Schema/index.ts +3621 -0
  775. package/src/builtins/System/Xml/Serialization/index.ts +2890 -0
  776. package/src/builtins/System/Xml/XPath/index.ts +1095 -0
  777. package/src/builtins/System/Xml/Xsl/index.ts +389 -0
  778. package/src/builtins/System/Xml/index.ts +6841 -0
  779. package/src/builtins/System/index.ts +17593 -0
  780. package/src/builtins/index.ts +2 -0
  781. package/src/components/access-expression/access-expression.tsx +8 -2
  782. package/src/components/access-expression/part-descriptors.ts +26 -2
  783. package/src/components/attributes/attributes.test.tsx +43 -2
  784. package/src/components/attributes/attributes.tsx +14 -7
  785. package/src/components/csproj-file/csproj-file.test.tsx +38 -0
  786. package/src/components/csproj-file/csproj-file.tsx +32 -0
  787. package/src/components/index.ts +3 -1
  788. package/src/components/parameters/parameters.test.tsx +70 -0
  789. package/src/components/parameters/parameters.tsx +55 -0
  790. package/src/components/region/region.test.tsx +19 -0
  791. package/src/components/region/region.tsx +16 -0
  792. package/src/components/stc/index.ts +0 -1
  793. package/src/components/var/declaration.test.tsx +15 -1
  794. package/src/components/var/declaration.tsx +20 -4
  795. package/src/contexts/global-namespace.ts +8 -1
  796. package/src/contexts/reference-context.ts +18 -0
  797. package/src/create-library.test.tsx +213 -0
  798. package/src/create-library.ts +306 -0
  799. package/src/index.ts +2 -0
  800. package/src/symbols/named-type.ts +3 -3
  801. package/src/symbols/reference.tsx +19 -4
  802. package/temp/api.json +4219 -1416
  803. package/testing/create-wrapper.test.tsx +145 -0
  804. package/testing/create-wrapper.tsx +12 -0
  805. package/testing/index.ts +1 -0
  806. package/tsconfig.json +13 -2
  807. package/tsdoc.json +4 -0
  808. package/dist/src/components/ProjectDirectory.d.ts +0 -12
  809. package/dist/src/components/ProjectDirectory.d.ts.map +0 -1
  810. package/dist/src/components/ProjectDirectory.js +0 -47
  811. package/dist/src/components/ProjectDirectory.js.map +0 -1
  812. package/dist/test/project-directory.test.d.ts +0 -2
  813. package/dist/test/project-directory.test.d.ts.map +0 -1
  814. package/dist/test/project-directory.test.js +0 -133
  815. package/dist/test/project-directory.test.js.map +0 -1
  816. package/src/components/ProjectDirectory.tsx +0 -56
  817. package/test/project-directory.test.tsx +0 -121
@@ -0,0 +1,2 @@
1
+ export { default as Microsoft } from "./Microsoft/index.js";
2
+ export { default as System } from "./System/index.js";
@@ -5,7 +5,7 @@ import {
5
5
  computed,
6
6
  For,
7
7
  isComponentCreator,
8
- Refkey,
8
+ Refkeyable,
9
9
  Show,
10
10
  takeSymbols,
11
11
  } from "@alloy-js/core";
@@ -92,7 +92,7 @@ export interface AccessExpressionPartProps {
92
92
  * A refkey for the symbol whose name becomes this part's identifier. When a refkey is provided for the first
93
93
  * part, it will be fully resolved. Otherwise, just the symbol's name is used.
94
94
  */
95
- refkey?: Refkey;
95
+ refkey?: Refkeyable;
96
96
 
97
97
  /**
98
98
  * The symbol whose name becomes this part's identifier.
@@ -122,6 +122,12 @@ export interface AccessExpressionPartProps {
122
122
  * you provide a symbol or refkey and the symbol's nullable flag is set.
123
123
  */
124
124
  nullable?: boolean;
125
+
126
+ /**
127
+ * Wether this part is an attribute reference (used in an attribute context).
128
+ * In that case the "Attribute" suffix is trimmed from the name if present.
129
+ */
130
+ attribute?: boolean;
125
131
  }
126
132
 
127
133
  AccessExpression.Part = function (props: AccessExpressionPartProps) {
@@ -128,9 +128,12 @@ function createPartDescriptorFromProps(
128
128
  } else if (first && partProps.refkey) {
129
129
  return partProps.refkey;
130
130
  } else if (partProps.id !== undefined) {
131
- return partProps.id;
131
+ return normalizeIfAttribute(partProps.id, partProps.attribute);
132
132
  } else if (symbolSource.value) {
133
- return escapeId(symbolSource.value.name);
133
+ return normalizeIfAttribute(
134
+ escapeId(symbolSource.value.name),
135
+ partProps.attribute,
136
+ );
134
137
  } else {
135
138
  return "<unresolved symbol>";
136
139
  }
@@ -173,3 +176,24 @@ function createPartDescriptorFromProps(
173
176
  function escapeId(id: string) {
174
177
  return id.replace(/"/g, '\\"');
175
178
  }
179
+
180
+ function normalizeIfAttribute(id: string, isAttribute?: boolean) {
181
+ if (isAttribute) {
182
+ return normalizeAttributeName(id);
183
+ }
184
+ return id;
185
+ }
186
+
187
+ /**
188
+ * Normalize attribute name by removing the "Attribute" suffix if present.
189
+ * @example
190
+ * ```ts
191
+ * normalizeAttributeName("TestAttribute") // returns "Test"
192
+ * ```
193
+ */
194
+ export function normalizeAttributeName(name: string) {
195
+ if (name !== undefined && name.endsWith("Attribute")) {
196
+ return name.substring(0, name.length - "Attribute".length);
197
+ }
198
+ return name;
199
+ }
@@ -1,12 +1,53 @@
1
- import { expect, it } from "vitest";
1
+ import { ClassDeclaration } from "#components/class/declaration.jsx";
2
+ import { createLibrary } from "#createLibrary";
3
+ import { TestNamespace } from "#test/utils.jsx";
4
+ import { List, namekey } from "@alloy-js/core";
5
+ import { describe, expect, it } from "vitest";
2
6
  import { Attribute, AttributeList } from "./attributes.jsx";
3
-
4
7
  it("define attribute", () => {
5
8
  expect(<Attribute name="Test" />).toRenderTo(`
6
9
  [Test]
7
10
  `);
8
11
  });
9
12
 
13
+ describe("Attribute suffix trimming", () => {
14
+ it("define attribute whose name ending with 'Attribute'", () => {
15
+ expect(<Attribute name="TestAttribute" />).toRenderTo(`
16
+ [Test]
17
+ `);
18
+ });
19
+
20
+ it("when using namekey", () => {
21
+ const key = namekey("TestAttribute");
22
+ expect(
23
+ <TestNamespace>
24
+ <List>
25
+ <Attribute name={key} />
26
+ <ClassDeclaration name={key} />
27
+ </List>
28
+ </TestNamespace>,
29
+ ).toRenderTo(`
30
+ [Test]
31
+ class TestAttribute;
32
+ `);
33
+ });
34
+
35
+ it("when referenced from library", () => {
36
+ const TestLib = createLibrary("TestLib", {
37
+ TestAttribute: { kind: "method", methodKind: "ordinary" },
38
+ });
39
+ expect(
40
+ <TestNamespace>
41
+ <Attribute name={TestLib.TestAttribute} />
42
+ </TestNamespace>,
43
+ ).toRenderTo(`
44
+ using TestLib;
45
+
46
+ [Test]
47
+ `);
48
+ });
49
+ });
50
+
10
51
  it("define attribute with single arg", () => {
11
52
  expect(<Attribute name="Test" args={[`"abc"`]} />).toRenderTo(`
12
53
  [Test("abc")]
@@ -1,15 +1,13 @@
1
+ import { normalizeAttributeName } from "#components/access-expression/part-descriptors.js";
1
2
  import {
2
3
  Children,
3
4
  findKeyedChildren,
4
5
  For,
5
6
  Indent,
7
+ Refkeyable,
6
8
  taggedComponent,
7
9
  } from "@alloy-js/core";
8
-
9
- export interface AttributeItem {
10
- name: string;
11
- args?: string[];
12
- }
10
+ import { ReferenceContext } from "../../contexts/reference-context.js";
13
11
 
14
12
  export type AttributesProp = Array<string | AttributeProps | Children>;
15
13
 
@@ -54,7 +52,7 @@ function renderAttribute(attr: string | AttributeProps | Children): Children {
54
52
 
55
53
  export interface AttributeProps {
56
54
  /** Attribute name */
57
- name: Children;
55
+ name: string | Refkeyable;
58
56
 
59
57
  /** Argument */
60
58
  args?: Children[];
@@ -81,7 +79,8 @@ export const Attribute = taggedComponent(
81
79
  (props: AttributeProps) => {
82
80
  return (
83
81
  <group>
84
- [{props.name}
82
+ [
83
+ <AttributeName name={props.name} />
85
84
  {props.args && props.args.length > 0 && (
86
85
  <>
87
86
  (
@@ -98,3 +97,11 @@ export const Attribute = taggedComponent(
98
97
  );
99
98
  },
100
99
  );
100
+
101
+ function AttributeName(props: Pick<AttributeProps, "name">) {
102
+ return typeof props.name === "string" ?
103
+ normalizeAttributeName(props.name)
104
+ : <ReferenceContext.Provider value={"attribute"}>
105
+ {props.name}
106
+ </ReferenceContext.Provider>;
107
+ }
@@ -0,0 +1,38 @@
1
+ import { Compile, ItemGroup } from "@alloy-js/msbuild/components";
2
+ import { expect, it } from "vitest";
3
+ import { CsprojFile } from "./csproj-file.jsx";
4
+
5
+ it("create empty .csproj file", () => {
6
+ expect(<CsprojFile path={"foo.csproj"}>{"<!-- content -->"}</CsprojFile>)
7
+ .toRenderTo(`
8
+ <Project Sdk="Microsoft.NET.Sdk"><!-- content --></Project>
9
+ `);
10
+ });
11
+
12
+ it("set different sdk", () => {
13
+ expect(
14
+ <CsprojFile path={"foo.csproj"} sdk="Microsoft.NET.Sdk.Web">
15
+ {"<!-- content -->"}
16
+ </CsprojFile>,
17
+ ).toRenderTo(`
18
+ <Project Sdk="Microsoft.NET.Sdk.Web"><!-- content --></Project>
19
+ `);
20
+ });
21
+
22
+ it("can use msbuild components", () => {
23
+ expect(
24
+ <CsprojFile path={"foo.csproj"} sdk="Microsoft.NET.Sdk.Web">
25
+ <ItemGroup>
26
+ <Compile Include="Program.cs" />
27
+ <Compile Include="Other.cs" />
28
+ </ItemGroup>
29
+ </CsprojFile>,
30
+ ).toRenderTo(`
31
+ <Project Sdk="Microsoft.NET.Sdk.Web">
32
+ <ItemGroup>
33
+ <Compile Include="Program.cs" />
34
+ <Compile Include="Other.cs" />
35
+ </ItemGroup>
36
+ </Project>
37
+ `);
38
+ });
@@ -0,0 +1,32 @@
1
+ import { Children, SourceFile } from "@alloy-js/core";
2
+ import { Project } from "@alloy-js/msbuild/components";
3
+
4
+ export type CSharpProjectSdk =
5
+ | "Microsoft.NET.Sdk"
6
+ | "Microsoft.NET.Sdk.Web"
7
+ | "Microsoft.NET.Sdk.Worker"
8
+ | "Microsoft.NET.Sdk.Razor"
9
+ | "Microsoft.NET.Sdk.BlazorWebAssembly"
10
+ | "Aspire.AppHost.Sdk"
11
+ | "MSTest.Sdk";
12
+
13
+ export interface CsprojProps {
14
+ path: `${string}.csproj`;
15
+ /**
16
+ * Project SDK https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview
17
+ * @default "Microsoft.NET.Sdk"
18
+ */
19
+ sdk?: CSharpProjectSdk;
20
+
21
+ /** Content inside <project> */
22
+ children?: Children;
23
+ }
24
+
25
+ /** Create a .csproj file */
26
+ export function CsprojFile(props: CsprojProps) {
27
+ return (
28
+ <SourceFile path={props.path} filetype="xml" tabWidth={2}>
29
+ <Project Sdk={props.sdk ?? "Microsoft.NET.Sdk"}>{props.children}</Project>
30
+ </SourceFile>
31
+ );
32
+ }
@@ -1,6 +1,8 @@
1
+ export * from "./access-expression/access-expression.jsx";
1
2
  export * from "./attributes/attributes.jsx";
2
3
  export * from "./class/declaration.jsx";
3
4
  export * from "./constructor/constructor.jsx";
5
+ export * from "./csproj-file/csproj-file.jsx";
4
6
  export * from "./Declaration.js";
5
7
  export * from "./doc/comment.jsx";
6
8
  export * from "./doc/from-markdown.jsx";
@@ -18,10 +20,10 @@ export * from "./method/method.jsx";
18
20
  export * from "./Name.js";
19
21
  export { Namespace, type NamespaceProps } from "./namespace/namespace.jsx";
20
22
  export * from "./parameters/parameters.jsx";
21
- export * from "./ProjectDirectory.js";
22
23
  export * from "./property/property.jsx";
23
24
  export * from "./record/declaration.js";
24
25
  export * from "./Reference.js";
26
+ export * from "./region/region.jsx";
25
27
  export * from "./source-file/source-file.jsx";
26
28
  export * from "./struct/declaration.jsx";
27
29
  export type { TypeParameterProps } from "./type-parameters/type-parameter.jsx";
@@ -1,3 +1,4 @@
1
+ import { Attribute } from "#components/attributes/attributes.jsx";
1
2
  import { ClassDeclaration } from "#components/class/declaration.jsx";
2
3
  import { Method } from "#components/method/method.jsx";
3
4
  import { Property } from "#components/property/property.jsx";
@@ -115,3 +116,72 @@ it("members can be referenced when the parameter is nullable", () => {
115
116
  }
116
117
  `);
117
118
  });
119
+
120
+ it("can attach attributes", () => {
121
+ expect(
122
+ <Wrapper>
123
+ <Method
124
+ name="MethodOne"
125
+ parameters={[
126
+ {
127
+ name: "param1",
128
+ type: "T1",
129
+ attributes: [<Attribute name="Test" />],
130
+ },
131
+ {
132
+ name: "param2",
133
+ type: "T2",
134
+ attributes: [<Attribute name="Test2" args={["arg1", "arg2"]} />],
135
+ },
136
+ ]}
137
+ />
138
+ </Wrapper>,
139
+ ).toRenderTo(`
140
+ public class TestClass
141
+ {
142
+ void MethodOne(
143
+ [Test]
144
+ T1 param1,
145
+ [Test2(arg1, arg2)]
146
+ T2 param2
147
+ ) {}
148
+ }
149
+ `);
150
+ });
151
+
152
+ it("can add modifiers: in | out | ref", () => {
153
+ expect(
154
+ <Wrapper>
155
+ <Method
156
+ name="MethodOne"
157
+ parameters={[
158
+ {
159
+ name: "param1",
160
+ type: "T1",
161
+ ref: true,
162
+ },
163
+ {
164
+ name: "param2",
165
+ type: "T2",
166
+ in: true,
167
+ },
168
+ {
169
+ name: "param3",
170
+ type: "T3",
171
+ out: true,
172
+ },
173
+ {
174
+ name: "param4",
175
+ type: "T4",
176
+ refReadonly: true,
177
+ },
178
+ ]}
179
+ />
180
+ </Wrapper>,
181
+ ).toRenderTo(`
182
+ public class TestClass
183
+ {
184
+ void MethodOne(ref T1 param1, in T2 param2, out T3 param3, ref readonly T4 param4) {}
185
+ }
186
+ `);
187
+ });
@@ -9,6 +9,7 @@ import {
9
9
  Refkey,
10
10
  } from "@alloy-js/core";
11
11
  import { createParameterSymbol } from "../../symbols/factories.js";
12
+ import { AttributeList, AttributesProp } from "../attributes/attributes.jsx";
12
13
  import { Name } from "../Name.jsx";
13
14
 
14
15
  export interface ParameterProps {
@@ -20,6 +21,42 @@ export interface ParameterProps {
20
21
  default?: Children;
21
22
 
22
23
  refkey?: Refkey;
24
+
25
+ /**
26
+ * Parameter modifier: The argument must be initialized before calling the method. The method can't assign a new value to the parameter. The compiler might create a temporary variable to hold a copy of the argument to in parameters.
27
+ * @see https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#in-parameter-modifier
28
+ * */
29
+ in?: boolean;
30
+ /**
31
+ * Parameter modifier: The calling method isn't required to initialize the argument before calling the method. The method must assign a value to the parameter.
32
+ * @see https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#out-parameter-modifier
33
+ * */
34
+ out?: boolean;
35
+ /**
36
+ * Parameter modifier: The argument must be initialized before calling the method. The method can assign a new value to the parameter, but isn't required to do so.
37
+ * @see https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#ref-parameter-modifier
38
+ */
39
+ ref?: boolean;
40
+ /**
41
+ * Parameter modifier: The argument must be initialized before calling the method. The method can't assign a new value to the parameter.
42
+ * @see https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/method-parameters#ref-readonly-modifier
43
+ */
44
+ refReadonly?: boolean;
45
+
46
+ /**
47
+ * Define attributes to attach
48
+ * @example
49
+ * ```tsx
50
+ * <Parameter name="foo" type="string" attributes={[
51
+ * <Attribute name="Test" />
52
+ * ]}>
53
+ * ```
54
+ * This will produce:
55
+ * ```csharp
56
+ * [Test] string foo
57
+ * ```
58
+ */
59
+ attributes?: AttributesProp;
23
60
  }
24
61
 
25
62
  /** Define a parameter to be used in class or interface method. */
@@ -32,8 +69,26 @@ export function Parameter(props: ParameterProps) {
32
69
  isNullable: props.optional,
33
70
  });
34
71
 
72
+ // Only one of in, out, ref, ref readonly can be specified
73
+ const modifiers: (keyof ParameterProps)[] = (
74
+ ["in", "out", "ref", "refReadonly"] as (keyof ParameterProps)[]
75
+ ).filter((k) => props[k]);
76
+
77
+ if (modifiers.length > 1) {
78
+ throw new Error(
79
+ `Only one of 'in', 'out', 'ref', 'ref readonly' can be specified for parameter '${
80
+ typeof props.name === "string" ? props.name : props.name.name
81
+ }'`,
82
+ );
83
+ }
84
+ const modifier =
85
+ modifiers.length === 0 ? ""
86
+ : modifiers[0] === "refReadonly" ? "ref readonly "
87
+ : modifiers[0] + " ";
35
88
  return (
36
89
  <Declaration symbol={memberSymbol}>
90
+ <AttributeList attributes={props.attributes} endline />
91
+ <>{modifier}</>
37
92
  <TypeSlot>{props.type}</TypeSlot>
38
93
  {props.optional ? "?" : ""} <Name />
39
94
  {props.default ? code` = ${props.default}` : ""}
@@ -0,0 +1,19 @@
1
+ import { Children } from "@alloy-js/core/jsx-runtime";
2
+ import { expect, it } from "vitest";
3
+ import { TestNamespace } from "../../../test/utils.jsx";
4
+ import { Region } from "./region.jsx";
5
+
6
+ const Wrapper = (props: { name: string; children: Children }) => (
7
+ <TestNamespace>
8
+ <Region name={props.name}>{props.children}</Region>
9
+ </TestNamespace>
10
+ );
11
+
12
+ it("region test", () => {
13
+ expect(<Wrapper name="Test Region">// This is inside region</Wrapper>)
14
+ .toRenderTo(`
15
+ #region Test Region
16
+ // This is inside region
17
+ #endregion
18
+ `);
19
+ });
@@ -0,0 +1,16 @@
1
+ import { Children, code, List } from "@alloy-js/core";
2
+
3
+ export interface RegionProps {
4
+ name: string;
5
+ children: Children;
6
+ }
7
+
8
+ export function Region(props: RegionProps) {
9
+ return (
10
+ <List>
11
+ {code`#region ${props.name}`}
12
+ {props.children}
13
+ {code`#endregion`}
14
+ </List>
15
+ );
16
+ }
@@ -9,6 +9,5 @@ export const EnumDeclaration = core.stc(base.EnumDeclaration);
9
9
  export const EnumMember = core.stc(base.EnumMember);
10
10
  export const Parameter = core.stc(base.Parameter);
11
11
  export const Parameters = core.stc(base.Parameters);
12
- export const ProjectDirectory = core.stc(base.ProjectDirectory);
13
12
  export const UsingDirective = core.stc(base.Usings);
14
13
  export const StructDeclaration = core.stc(base.StructDeclaration);
@@ -1,5 +1,5 @@
1
1
  import { List, namekey, refkey } from "@alloy-js/core";
2
- import { expect, it } from "vitest";
2
+ import { describe, expect, it } from "vitest";
3
3
  import { TestNamespace } from "../../../test/utils.jsx";
4
4
  import { VarDeclaration } from "./declaration.jsx";
5
5
 
@@ -66,3 +66,17 @@ it("links namekey", () => {
66
66
  var testVar2 = testVar;
67
67
  `);
68
68
  });
69
+
70
+ describe("modifiers", () => {
71
+ it.each(["const", "using"])("%s", (mod) => {
72
+ expect(
73
+ <TestNamespace>
74
+ <VarDeclaration {...{ [mod]: true }} name="test" type="object">
75
+ a
76
+ </VarDeclaration>
77
+ </TestNamespace>,
78
+ ).toRenderTo(`
79
+ ${mod} object test = a;
80
+ `);
81
+ });
82
+ });
@@ -1,16 +1,19 @@
1
1
  import {
2
2
  Children,
3
+ createSymbolSlot,
3
4
  Declaration,
4
5
  DeclarationProps,
5
6
  Name,
6
7
  Namekey,
7
8
  Refkey,
8
9
  } from "@alloy-js/core";
10
+ import { computeModifiersPrefix, makeModifiers } from "../../modifiers.js";
9
11
  import { createVariableSymbol } from "../../symbols/factories.js";
10
12
 
11
13
  /** Props for {@link VarDeclaration} component */
12
14
  export interface VarDeclarationProps
13
- extends Omit<DeclarationProps, "nameKind"> {
15
+ extends Omit<DeclarationProps, "nameKind">,
16
+ VarModifiers {
14
17
  /** Variable name */
15
18
  name: string | Namekey;
16
19
  /** Type of the variable declaration. If not specified, defaults to "var" */
@@ -19,11 +22,18 @@ export interface VarDeclarationProps
19
22
  refkey?: Refkey;
20
23
  /** Variable value */
21
24
  children?: Children;
25
+ }
22
26
 
27
+ export interface VarModifiers {
23
28
  /** Constant variable. Add the const modifier. */
24
- const?: boolean;
29
+ readonly const?: boolean;
30
+
31
+ /** Disposable variable. Add the using modifier. */
32
+ readonly using?: boolean;
25
33
  }
26
34
 
35
+ const getModifiers = makeModifiers<VarModifiers>(["const", "using"]);
36
+
27
37
  /**
28
38
  * Render a variable declaration
29
39
  *
@@ -46,16 +56,22 @@ export interface VarDeclarationProps
46
56
  * ```
47
57
  */
48
58
  export function VarDeclaration(props: VarDeclarationProps) {
59
+ const TypeSlot = createSymbolSlot();
60
+ const ValueSlot = createSymbolSlot();
61
+
49
62
  const sym = createVariableSymbol(props.name, {
50
63
  refkeys: props.refkey,
64
+ type: props.type ? TypeSlot.firstSymbol : ValueSlot.firstSymbol,
51
65
  });
66
+
52
67
  if (props.const && !props.type) {
53
68
  throw new Error("Implicitly-typed variables cannot be constant");
54
69
  }
55
70
  return (
56
71
  <Declaration symbol={sym}>
57
- {props.const ? "const " : ""}
58
- {props.type ?? "var"} <Name /> = {props.children};
72
+ {computeModifiersPrefix([getModifiers(props)])}
73
+ <TypeSlot>{props.type ?? "var"}</TypeSlot> <Name /> ={" "}
74
+ <ValueSlot>{props.children}</ValueSlot>;
59
75
  </Declaration>
60
76
  );
61
77
  }
@@ -7,9 +7,16 @@ export function useGlobalNamespace() {
7
7
  }
8
8
 
9
9
  const globalNamespaces = new WeakMap<Binder, NamespaceSymbol>();
10
- const defaultGlobalNamespace = new NamespaceSymbol("global", undefined, {
10
+ let defaultGlobalNamespace = new NamespaceSymbol("global", undefined, {
11
11
  isGlobal: true,
12
12
  });
13
+
14
+ export function resetGlobalNamespace() {
15
+ defaultGlobalNamespace = new NamespaceSymbol("global", undefined, {
16
+ isGlobal: true,
17
+ });
18
+ }
19
+
13
20
  export function getGlobalNamespace(binder: Binder | undefined) {
14
21
  if (!binder) {
15
22
  return defaultGlobalNamespace;
@@ -0,0 +1,18 @@
1
+ import { ComponentContext, createContext, useContext } from "@alloy-js/core";
2
+
3
+ /** What kind of reference.
4
+ * - 'standard' Default reference nothing special.
5
+ * - 'attribute' means we are referencing an attribute and so the name should be trimmed of "Attribute" suffix.
6
+ */
7
+
8
+ export type ReferenceContext = "standard" | "attribute";
9
+
10
+ /**
11
+ * Provides scopes for instance and static private members.
12
+ */
13
+ export const ReferenceContext: ComponentContext<ReferenceContext> =
14
+ createContext<ReferenceContext>();
15
+
16
+ export function useReferenceContext(): "standard" | "attribute" {
17
+ return useContext(ReferenceContext) ?? "standard";
18
+ }