@alloy-js/csharp 0.20.0-dev.0 → 0.20.0-dev.10

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 (399) hide show
  1. package/dist/src/components/Declaration.d.ts +2 -2
  2. package/dist/src/components/Declaration.d.ts.map +1 -1
  3. package/dist/src/components/Declaration.js +5 -14
  4. package/dist/src/components/Declaration.js.map +1 -0
  5. package/dist/src/components/Name.js +2 -1
  6. package/dist/src/components/Name.js.map +1 -0
  7. package/dist/src/components/ProjectDirectory.js +2 -1
  8. package/dist/src/components/ProjectDirectory.js.map +1 -0
  9. package/dist/src/components/Reference.d.ts.map +1 -1
  10. package/dist/src/components/Reference.js +7 -2
  11. package/dist/src/components/Reference.js.map +1 -0
  12. package/dist/src/components/UsingDirective.d.ts +5 -1
  13. package/dist/src/components/UsingDirective.d.ts.map +1 -1
  14. package/dist/src/components/UsingDirective.js +5 -2
  15. package/dist/src/components/UsingDirective.js.map +1 -0
  16. package/dist/src/components/access-expression/access-expression.d.ts +54 -0
  17. package/dist/src/components/access-expression/access-expression.d.ts.map +1 -0
  18. package/dist/src/components/access-expression/access-expression.js +277 -0
  19. package/dist/src/components/access-expression/access-expression.js.map +1 -0
  20. package/dist/src/components/access-expression/access-expression.test.d.ts +2 -0
  21. package/dist/src/components/access-expression/access-expression.test.d.ts.map +1 -0
  22. package/dist/src/components/access-expression/access-expression.test.js +336 -0
  23. package/dist/src/components/access-expression/access-expression.test.js.map +1 -0
  24. package/dist/src/components/access-expression/part-descriptors.d.ts +32 -0
  25. package/dist/src/components/access-expression/part-descriptors.d.ts.map +1 -0
  26. package/dist/src/components/access-expression/part-descriptors.js +99 -0
  27. package/dist/src/components/access-expression/part-descriptors.js.map +1 -0
  28. package/dist/src/components/attributes/attributes.js +2 -1
  29. package/dist/src/components/attributes/attributes.js.map +1 -0
  30. package/dist/src/components/attributes/attributes.test.js +2 -1
  31. package/dist/src/components/attributes/attributes.test.js.map +1 -0
  32. package/dist/src/components/{ClassDeclaration.d.ts → class/declaration.d.ts} +30 -12
  33. package/dist/src/components/class/declaration.d.ts.map +1 -0
  34. package/dist/src/components/class/declaration.js +87 -0
  35. package/dist/src/components/class/declaration.js.map +1 -0
  36. package/dist/src/components/class/declaration.test.d.ts +2 -0
  37. package/dist/src/components/class/declaration.test.d.ts.map +1 -0
  38. package/dist/src/components/class/declaration.test.js +573 -0
  39. package/dist/src/components/class/declaration.test.js.map +1 -0
  40. package/dist/src/components/constructor/constructor.d.ts.map +1 -1
  41. package/dist/src/components/constructor/constructor.js +13 -20
  42. package/dist/src/components/constructor/constructor.js.map +1 -0
  43. package/dist/src/components/constructor/constructor.test.js +13 -21
  44. package/dist/src/components/constructor/constructor.test.js.map +1 -0
  45. package/dist/src/components/doc/comment.js +2 -1
  46. package/dist/src/components/doc/comment.js.map +1 -0
  47. package/dist/src/components/doc/comment.test.js +2 -1
  48. package/dist/src/components/doc/comment.test.js.map +1 -0
  49. package/dist/src/components/doc/from-markdown.js +2 -1
  50. package/dist/src/components/doc/from-markdown.js.map +1 -0
  51. package/dist/src/components/doc/from-markdown.test.js +2 -1
  52. package/dist/src/components/doc/from-markdown.test.js.map +1 -0
  53. package/dist/src/components/{EnumDeclaration.d.ts → enum/declaration.d.ts} +6 -11
  54. package/dist/src/components/enum/declaration.d.ts.map +1 -0
  55. package/dist/src/components/enum/declaration.js +55 -0
  56. package/dist/src/components/enum/declaration.js.map +1 -0
  57. package/dist/src/components/enum/declaration.ref.test.d.ts +2 -0
  58. package/dist/src/components/enum/declaration.ref.test.d.ts.map +1 -0
  59. package/dist/src/components/enum/declaration.ref.test.js +121 -0
  60. package/dist/src/components/enum/declaration.ref.test.js.map +1 -0
  61. package/dist/src/components/enum/declaration.test.d.ts +2 -0
  62. package/dist/src/components/enum/declaration.test.d.ts.map +1 -0
  63. package/dist/src/components/enum/declaration.test.js +40 -0
  64. package/dist/src/components/enum/declaration.test.js.map +1 -0
  65. package/dist/src/components/enum/member.d.ts +7 -0
  66. package/dist/src/components/enum/member.d.ts.map +1 -0
  67. package/dist/src/components/enum/member.js +30 -0
  68. package/dist/src/components/enum/member.js.map +1 -0
  69. package/dist/src/components/enum/member.test.d.ts +2 -0
  70. package/dist/src/components/enum/member.test.d.ts.map +1 -0
  71. package/dist/src/components/enum/member.test.js +29 -0
  72. package/dist/src/components/enum/member.test.js.map +1 -0
  73. package/dist/src/components/field/field.d.ts.map +1 -1
  74. package/dist/src/components/field/field.js +11 -18
  75. package/dist/src/components/field/field.js.map +1 -0
  76. package/dist/src/components/field/field.test.js +10 -9
  77. package/dist/src/components/field/field.test.js.map +1 -0
  78. package/dist/src/components/index.d.ts +8 -4
  79. package/dist/src/components/index.d.ts.map +1 -1
  80. package/dist/src/components/index.js +10 -5
  81. package/dist/src/components/index.js.map +1 -0
  82. package/dist/src/components/interface/declaration.d.ts.map +1 -1
  83. package/dist/src/components/interface/declaration.js +21 -22
  84. package/dist/src/components/interface/declaration.js.map +1 -0
  85. package/dist/src/components/interface/declaration.test.js +28 -36
  86. package/dist/src/components/interface/declaration.test.js.map +1 -0
  87. package/dist/src/components/interface/method.d.ts.map +1 -1
  88. package/dist/src/components/interface/method.js +9 -19
  89. package/dist/src/components/interface/method.js.map +1 -0
  90. package/dist/src/components/interface/method.test.js +40 -48
  91. package/dist/src/components/interface/method.test.js.map +1 -0
  92. package/dist/src/components/interface/property.d.ts.map +1 -1
  93. package/dist/src/components/interface/property.js +23 -40
  94. package/dist/src/components/interface/property.js.map +1 -0
  95. package/dist/src/components/interface/property.test.js +13 -12
  96. package/dist/src/components/interface/property.test.js.map +1 -0
  97. package/dist/src/components/invocation-expression/invocation-expression.d.ts +29 -0
  98. package/dist/src/components/invocation-expression/invocation-expression.d.ts.map +1 -0
  99. package/dist/src/components/invocation-expression/invocation-expression.js +70 -0
  100. package/dist/src/components/invocation-expression/invocation-expression.js.map +1 -0
  101. package/dist/src/components/invocation-expression/invocation-expression.test.d.ts +2 -0
  102. package/dist/src/components/invocation-expression/invocation-expression.test.d.ts.map +1 -0
  103. package/dist/src/components/invocation-expression/invocation-expression.test.js +105 -0
  104. package/dist/src/components/invocation-expression/invocation-expression.test.js.map +1 -0
  105. package/dist/src/components/lexical-scope.d.ts +8 -0
  106. package/dist/src/components/lexical-scope.d.ts.map +1 -0
  107. package/dist/src/components/lexical-scope.js +25 -0
  108. package/dist/src/components/lexical-scope.js.map +1 -0
  109. package/dist/src/components/method/method.d.ts +5 -2
  110. package/dist/src/components/method/method.d.ts.map +1 -1
  111. package/dist/src/components/method/method.js +9 -17
  112. package/dist/src/components/method/method.js.map +1 -0
  113. package/dist/src/components/method/method.test.js +13 -12
  114. package/dist/src/components/method/method.test.js.map +1 -0
  115. package/dist/src/components/method-scope.d.ts +8 -0
  116. package/dist/src/components/method-scope.d.ts.map +1 -0
  117. package/dist/src/components/method-scope.js +25 -0
  118. package/dist/src/components/method-scope.js.map +1 -0
  119. package/dist/src/components/namespace-scopes.d.ts +13 -0
  120. package/dist/src/components/namespace-scopes.d.ts.map +1 -0
  121. package/dist/src/components/namespace-scopes.js +45 -0
  122. package/dist/src/components/namespace-scopes.js.map +1 -0
  123. package/dist/src/components/namespace.d.ts +7 -0
  124. package/dist/src/components/namespace.d.ts.map +1 -0
  125. package/dist/src/components/namespace.js +47 -0
  126. package/dist/src/components/namespace.js.map +1 -0
  127. package/dist/src/components/namespace.ref.test.d.ts +2 -0
  128. package/dist/src/components/namespace.ref.test.d.ts.map +1 -0
  129. package/dist/src/components/namespace.ref.test.js +182 -0
  130. package/dist/src/components/namespace.ref.test.js.map +1 -0
  131. package/dist/src/components/namespace.test.d.ts.map +1 -0
  132. package/dist/src/components/namespace.test.js +79 -0
  133. package/dist/src/components/namespace.test.js.map +1 -0
  134. package/dist/src/components/parameters/parameters.d.ts +2 -3
  135. package/dist/src/components/parameters/parameters.d.ts.map +1 -1
  136. package/dist/src/components/parameters/parameters.js +15 -15
  137. package/dist/src/components/parameters/parameters.js.map +1 -0
  138. package/dist/src/components/parameters/parameters.test.d.ts +2 -0
  139. package/dist/src/components/parameters/parameters.test.d.ts.map +1 -0
  140. package/dist/src/components/parameters/parameters.test.js +154 -0
  141. package/dist/src/components/parameters/parameters.test.js.map +1 -0
  142. package/dist/src/components/property/property.d.ts +2 -2
  143. package/dist/src/components/property/property.d.ts.map +1 -1
  144. package/dist/src/components/property/property.js +30 -40
  145. package/dist/src/components/property/property.js.map +1 -0
  146. package/dist/src/components/property/property.test.js +17 -16
  147. package/dist/src/components/property/property.test.js.map +1 -0
  148. package/dist/src/components/record/declaration.d.ts +18 -0
  149. package/dist/src/components/record/declaration.d.ts.map +1 -1
  150. package/dist/src/components/record/declaration.js +21 -14
  151. package/dist/src/components/record/declaration.js.map +1 -0
  152. package/dist/src/components/record/declaration.test.js +52 -4
  153. package/dist/src/components/record/declaration.test.js.map +1 -0
  154. package/dist/src/components/source-file/source-file.d.ts +19 -0
  155. package/dist/src/components/source-file/source-file.d.ts.map +1 -0
  156. package/dist/src/components/source-file/source-file.js +59 -0
  157. package/dist/src/components/source-file/source-file.js.map +1 -0
  158. package/dist/src/components/source-file/source-file.test.d.ts +2 -0
  159. package/dist/src/components/source-file/source-file.test.d.ts.map +1 -0
  160. package/dist/src/components/source-file/source-file.test.js +136 -0
  161. package/dist/src/components/source-file/source-file.test.js.map +1 -0
  162. package/dist/src/components/stc/index.js +2 -1
  163. package/dist/src/components/stc/index.js.map +1 -0
  164. package/dist/src/components/struct/declaration.d.ts.map +1 -1
  165. package/dist/src/components/struct/declaration.js +6 -7
  166. package/dist/src/components/struct/declaration.js.map +1 -0
  167. package/dist/src/components/struct/declaration.test.js +32 -40
  168. package/dist/src/components/struct/declaration.test.js.map +1 -0
  169. package/dist/src/components/type-parameters/type-parameter-constraints.js +2 -1
  170. package/dist/src/components/type-parameters/type-parameter-constraints.js.map +1 -0
  171. package/dist/src/components/type-parameters/type-parameter-constraints.test.js +2 -1
  172. package/dist/src/components/type-parameters/type-parameter-constraints.test.js.map +1 -0
  173. package/dist/src/components/type-parameters/type-parameter.d.ts.map +1 -1
  174. package/dist/src/components/type-parameters/type-parameter.js +9 -11
  175. package/dist/src/components/type-parameters/type-parameter.js.map +1 -0
  176. package/dist/src/components/type-parameters/type-parameters.js +2 -1
  177. package/dist/src/components/type-parameters/type-parameters.js.map +1 -0
  178. package/dist/src/components/type-parameters/type-parameters.test.js +5 -4
  179. package/dist/src/components/type-parameters/type-parameters.test.js.map +1 -0
  180. package/dist/src/components/var/declaration.d.ts.map +1 -1
  181. package/dist/src/components/var/declaration.js +8 -9
  182. package/dist/src/components/var/declaration.js.map +1 -0
  183. package/dist/src/components/var/declaration.test.js +13 -21
  184. package/dist/src/components/var/declaration.test.js.map +1 -0
  185. package/dist/src/contexts/format-options.d.ts +5 -0
  186. package/dist/src/contexts/format-options.d.ts.map +1 -0
  187. package/dist/src/contexts/format-options.js +9 -0
  188. package/dist/src/contexts/format-options.js.map +1 -0
  189. package/dist/src/contexts/global-namespace.d.ts +5 -0
  190. package/dist/src/contexts/global-namespace.d.ts.map +1 -0
  191. package/dist/src/contexts/global-namespace.js +25 -0
  192. package/dist/src/contexts/global-namespace.js.map +1 -0
  193. package/dist/src/contexts/namespace.d.ts +8 -0
  194. package/dist/src/contexts/namespace.d.ts.map +1 -0
  195. package/dist/src/contexts/namespace.js +6 -0
  196. package/dist/src/contexts/namespace.js.map +1 -0
  197. package/dist/src/index.d.ts +2 -0
  198. package/dist/src/index.d.ts.map +1 -1
  199. package/dist/src/index.js +4 -1
  200. package/dist/src/index.js.map +1 -0
  201. package/dist/src/modifiers.d.ts +11 -0
  202. package/dist/src/modifiers.d.ts.map +1 -1
  203. package/dist/src/modifiers.js +2 -1
  204. package/dist/src/modifiers.js.map +1 -0
  205. package/dist/src/name-policy.js +2 -1
  206. package/dist/src/name-policy.js.map +1 -0
  207. package/dist/src/scopes/class.d.ts +10 -0
  208. package/dist/src/scopes/class.d.ts.map +1 -0
  209. package/dist/src/scopes/class.js +11 -0
  210. package/dist/src/scopes/class.js.map +1 -0
  211. package/dist/src/scopes/contexts.d.ts +9 -0
  212. package/dist/src/scopes/contexts.d.ts.map +1 -0
  213. package/dist/src/scopes/contexts.js +34 -0
  214. package/dist/src/scopes/contexts.js.map +1 -0
  215. package/dist/src/scopes/csharp.d.ts +10 -0
  216. package/dist/src/scopes/csharp.d.ts.map +1 -0
  217. package/dist/src/scopes/csharp.js +15 -0
  218. package/dist/src/scopes/csharp.js.map +1 -0
  219. package/dist/src/scopes/factories.d.ts +9 -0
  220. package/dist/src/scopes/factories.d.ts.map +1 -0
  221. package/dist/src/scopes/factories.js +24 -0
  222. package/dist/src/scopes/factories.js.map +1 -0
  223. package/dist/src/scopes/index.d.ts +10 -0
  224. package/dist/src/scopes/index.d.ts.map +1 -0
  225. package/dist/src/scopes/index.js +10 -0
  226. package/dist/src/scopes/index.js.map +1 -0
  227. package/dist/src/scopes/lexical.d.ts +7 -0
  228. package/dist/src/scopes/lexical.d.ts.map +1 -0
  229. package/dist/src/scopes/lexical.js +8 -0
  230. package/dist/src/scopes/lexical.js.map +1 -0
  231. package/dist/src/scopes/method.d.ts +9 -0
  232. package/dist/src/scopes/method.d.ts.map +1 -0
  233. package/dist/src/scopes/method.js +14 -0
  234. package/dist/src/scopes/method.js.map +1 -0
  235. package/dist/src/scopes/named-type.d.ts +22 -0
  236. package/dist/src/scopes/named-type.d.ts.map +1 -0
  237. package/dist/src/scopes/named-type.js +33 -0
  238. package/dist/src/scopes/named-type.js.map +1 -0
  239. package/dist/src/scopes/namespace.d.ts +11 -0
  240. package/dist/src/scopes/namespace.d.ts.map +1 -0
  241. package/dist/src/scopes/namespace.js +39 -0
  242. package/dist/src/scopes/namespace.js.map +1 -0
  243. package/dist/src/scopes/source-file.d.ts +16 -0
  244. package/dist/src/scopes/source-file.d.ts.map +1 -0
  245. package/dist/src/scopes/source-file.js +44 -0
  246. package/dist/src/scopes/source-file.js.map +1 -0
  247. package/dist/src/symbols/csharp.d.ts +87 -0
  248. package/dist/src/symbols/csharp.d.ts.map +1 -0
  249. package/dist/src/symbols/csharp.js +246 -0
  250. package/dist/src/symbols/csharp.js.map +1 -0
  251. package/dist/src/symbols/factories.d.ts +25 -0
  252. package/dist/src/symbols/factories.d.ts.map +1 -0
  253. package/dist/src/symbols/factories.js +93 -0
  254. package/dist/src/symbols/factories.js.map +1 -0
  255. package/dist/src/symbols/index.d.ts +5 -2
  256. package/dist/src/symbols/index.d.ts.map +1 -1
  257. package/dist/src/symbols/index.js +6 -2
  258. package/dist/src/symbols/index.js.map +1 -0
  259. package/dist/src/symbols/method.d.ts +13 -0
  260. package/dist/src/symbols/method.d.ts.map +1 -0
  261. package/dist/src/symbols/method.js +16 -0
  262. package/dist/src/symbols/method.js.map +1 -0
  263. package/dist/src/symbols/named-type.d.ts +19 -0
  264. package/dist/src/symbols/named-type.d.ts.map +1 -0
  265. package/dist/src/symbols/named-type.js +31 -0
  266. package/dist/src/symbols/named-type.js.map +1 -0
  267. package/dist/src/symbols/namespace.d.ts +22 -0
  268. package/dist/src/symbols/namespace.d.ts.map +1 -0
  269. package/dist/src/symbols/namespace.js +45 -0
  270. package/dist/src/symbols/namespace.js.map +1 -0
  271. package/dist/src/symbols/reference.d.ts +2 -2
  272. package/dist/src/symbols/reference.d.ts.map +1 -1
  273. package/dist/src/symbols/reference.js +50 -44
  274. package/dist/src/symbols/reference.js.map +1 -0
  275. package/dist/test/project-directory.test.js +20 -19
  276. package/dist/test/project-directory.test.js.map +1 -0
  277. package/dist/test/using.test.js +23 -21
  278. package/dist/test/using.test.js.map +1 -0
  279. package/dist/test/utils.d.ts.map +1 -1
  280. package/dist/test/utils.js +7 -4
  281. package/dist/test/utils.js.map +1 -0
  282. package/dist/test/vitest.setup.js +2 -1
  283. package/dist/test/vitest.setup.js.map +1 -0
  284. package/dist/tsconfig.tsbuildinfo +1 -1
  285. package/package.json +12 -6
  286. package/src/components/Declaration.tsx +3 -6
  287. package/src/components/Reference.tsx +3 -1
  288. package/src/components/UsingDirective.tsx +12 -2
  289. package/src/components/access-expression/access-expression.test.tsx +284 -0
  290. package/src/components/access-expression/access-expression.tsx +375 -0
  291. package/src/components/access-expression/part-descriptors.ts +175 -0
  292. package/src/components/class/declaration.test.tsx +484 -0
  293. package/src/components/{ClassDeclaration.tsx → class/declaration.tsx} +63 -44
  294. package/src/components/constructor/constructor.test.tsx +11 -17
  295. package/src/components/constructor/constructor.tsx +13 -32
  296. package/src/components/enum/declaration.ref.test.tsx +93 -0
  297. package/src/components/enum/declaration.test.tsx +34 -0
  298. package/src/components/enum/declaration.tsx +65 -0
  299. package/src/components/enum/member.test.tsx +24 -0
  300. package/src/components/enum/member.tsx +36 -0
  301. package/src/components/field/field.test.tsx +8 -8
  302. package/src/components/field/field.tsx +12 -22
  303. package/src/components/index.ts +8 -4
  304. package/src/components/interface/declaration.test.tsx +26 -32
  305. package/src/components/interface/declaration.tsx +16 -18
  306. package/src/components/interface/method.test.tsx +38 -44
  307. package/src/components/interface/method.tsx +7 -20
  308. package/src/components/interface/property.test.tsx +11 -11
  309. package/src/components/interface/property.tsx +15 -34
  310. package/src/components/invocation-expression/invocation-expression.test.tsx +101 -0
  311. package/src/components/invocation-expression/invocation-expression.tsx +60 -0
  312. package/src/components/lexical-scope.tsx +29 -0
  313. package/src/components/method/method.test.tsx +11 -11
  314. package/src/components/method/method.tsx +12 -23
  315. package/src/components/method-scope.tsx +27 -0
  316. package/src/components/namespace-scopes.tsx +44 -0
  317. package/src/components/namespace.ref.test.tsx +139 -0
  318. package/src/components/namespace.test.tsx +52 -0
  319. package/src/components/namespace.tsx +45 -0
  320. package/src/components/parameters/parameters.test.tsx +117 -0
  321. package/src/components/parameters/parameters.tsx +11 -21
  322. package/src/components/property/property.test.tsx +15 -15
  323. package/src/components/property/property.tsx +23 -41
  324. package/src/components/record/declaration.test.tsx +47 -3
  325. package/src/components/record/declaration.tsx +34 -11
  326. package/src/components/source-file/source-file.test.tsx +96 -0
  327. package/src/components/source-file/source-file.tsx +98 -0
  328. package/src/components/struct/declaration.test.tsx +16 -22
  329. package/src/components/struct/declaration.tsx +4 -6
  330. package/src/components/type-parameters/type-parameter.tsx +14 -11
  331. package/src/components/type-parameters/type-parameters.test.tsx +4 -4
  332. package/src/components/var/declaration.test.tsx +8 -14
  333. package/src/components/var/declaration.tsx +12 -6
  334. package/src/contexts/format-options.ts +14 -0
  335. package/src/contexts/global-namespace.ts +29 -0
  336. package/src/contexts/namespace.ts +13 -0
  337. package/src/index.ts +2 -0
  338. package/src/modifiers.ts +14 -0
  339. package/src/scopes/class.ts +12 -0
  340. package/src/scopes/contexts.ts +45 -0
  341. package/src/scopes/csharp.ts +23 -0
  342. package/src/scopes/factories.ts +45 -0
  343. package/src/scopes/index.ts +9 -0
  344. package/src/scopes/lexical.ts +10 -0
  345. package/src/scopes/method.ts +22 -0
  346. package/src/scopes/named-type.ts +44 -0
  347. package/src/scopes/namespace.ts +59 -0
  348. package/src/scopes/source-file.ts +67 -0
  349. package/src/symbols/csharp.ts +339 -0
  350. package/src/symbols/factories.ts +215 -0
  351. package/src/symbols/index.ts +5 -2
  352. package/src/symbols/method.ts +26 -0
  353. package/src/symbols/named-type.ts +54 -0
  354. package/src/symbols/namespace.ts +62 -0
  355. package/src/symbols/reference.tsx +64 -0
  356. package/temp/api.json +6910 -2491
  357. package/test/project-directory.test.tsx +14 -16
  358. package/test/using.test.tsx +21 -21
  359. package/test/utils.tsx +2 -1
  360. package/tsconfig.json +4 -1
  361. package/tsdoc-metadata.json +1 -1
  362. package/dist/src/components/ClassDeclaration.d.ts.map +0 -1
  363. package/dist/src/components/ClassDeclaration.js +0 -92
  364. package/dist/src/components/EnumDeclaration.d.ts.map +0 -1
  365. package/dist/src/components/EnumDeclaration.js +0 -85
  366. package/dist/src/components/Namespace.d.ts +0 -11
  367. package/dist/src/components/Namespace.d.ts.map +0 -1
  368. package/dist/src/components/Namespace.js +0 -33
  369. package/dist/src/components/SourceFile.d.ts +0 -14
  370. package/dist/src/components/SourceFile.d.ts.map +0 -1
  371. package/dist/src/components/SourceFile.js +0 -69
  372. package/dist/src/symbols/csharp-output-symbol.d.ts +0 -8
  373. package/dist/src/symbols/csharp-output-symbol.d.ts.map +0 -1
  374. package/dist/src/symbols/csharp-output-symbol.js +0 -19
  375. package/dist/src/symbols/scopes.d.ts +0 -14
  376. package/dist/src/symbols/scopes.d.ts.map +0 -1
  377. package/dist/src/symbols/scopes.js +0 -31
  378. package/dist/test/class-declaration.test.d.ts +0 -2
  379. package/dist/test/class-declaration.test.d.ts.map +0 -1
  380. package/dist/test/class-declaration.test.js +0 -484
  381. package/dist/test/enum.test.d.ts +0 -2
  382. package/dist/test/enum.test.d.ts.map +0 -1
  383. package/dist/test/enum.test.js +0 -178
  384. package/dist/test/namespace.test.d.ts.map +0 -1
  385. package/dist/test/namespace.test.js +0 -81
  386. package/dist/test/sourcefile.test.d.ts +0 -2
  387. package/dist/test/sourcefile.test.d.ts.map +0 -1
  388. package/dist/test/sourcefile.test.js +0 -58
  389. package/src/components/EnumDeclaration.tsx +0 -99
  390. package/src/components/Namespace.tsx +0 -35
  391. package/src/components/SourceFile.tsx +0 -78
  392. package/src/symbols/csharp-output-symbol.ts +0 -22
  393. package/src/symbols/reference.ts +0 -65
  394. package/src/symbols/scopes.ts +0 -41
  395. package/test/class-declaration.test.tsx +0 -413
  396. package/test/enum.test.tsx +0 -149
  397. package/test/namespace.test.tsx +0 -55
  398. package/test/sourcefile.test.tsx +0 -47
  399. /package/dist/{test → src/components}/namespace.test.d.ts +0 -0
@@ -2,10 +2,11 @@ import { createComponent as _$createComponent, createIntrinsic as _$createIntrin
2
2
  import * as core from "@alloy-js/core";
3
3
  import { computeModifiersPrefix, getAccessModifier, makeModifiers } from "../../modifiers.js";
4
4
  import { useCSharpNamePolicy } from "../../name-policy.js";
5
- import { CSharpOutputSymbol } from "../../symbols/csharp-output-symbol.js";
6
- import { CSharpMemberScope } from "../../symbols/scopes.js";
5
+ import { createClassScope } from "../../scopes/factories.js";
6
+ import { createNamedTypeSymbol, createTypeParameterSymbol } from "../../symbols/factories.js";
7
7
  import { DocWhen } from "../doc/comment.js";
8
8
  import { Name } from "../Name.js";
9
+ import { Parameters } from "../parameters/parameters.js";
9
10
  const getRecordModifiers = makeModifiers(["partial"]);
10
11
 
11
12
  /** Props to use the {@link RecordDeclaration} component */
@@ -32,17 +33,13 @@ const getRecordModifiers = makeModifiers(["partial"]);
32
33
  */
33
34
  export function RecordDeclaration(props) {
34
35
  const name = useCSharpNamePolicy().getName(props.name, "record");
35
- const thisRecordSymbol = new CSharpOutputSymbol(name, {
36
- refkeys: props.refkey
37
- });
38
36
 
39
- // this creates a new scope for the record definition.
40
- // members will automatically "inherit" this scope so
41
- // that refkeys to them will produce the fully-qualified
42
- // name e.g. Foo.Bar.
43
- const thisRecordScope = new CSharpMemberScope("record-decl", {
44
- owner: thisRecordSymbol
37
+ // records don't have their own type kind but instead use class or struct
38
+ // depending on what kind of record we have.
39
+ const thisRecordSymbol = createNamedTypeSymbol(name, "record", {
40
+ refkeys: props.refkey
45
41
  });
42
+ const thisRecordScope = createClassScope(thisRecordSymbol);
46
43
  let typeParams;
47
44
  if (props.typeParameters) {
48
45
  const typeParamNames = new Array();
@@ -50,7 +47,7 @@ export function RecordDeclaration(props) {
50
47
  typeParamNames.push(useCSharpNamePolicy().getName(entry[0], "type-parameter"));
51
48
  // create a symbol for each type param so its
52
49
  // refkey resolves to the type param's name
53
- new CSharpOutputSymbol(entry[0], {
50
+ createTypeParameterSymbol(entry[0], {
54
51
  scope: thisRecordScope,
55
52
  refkeys: entry[1]
56
53
  });
@@ -74,7 +71,16 @@ export function RecordDeclaration(props) {
74
71
  get doc() {
75
72
  return props.doc;
76
73
  }
77
- }), modifiers, "record ", _$createComponent(Name, {}), typeParams, _$memo(() => _$memo(() => !!props.children)() ? _$createComponent(core.Block, {
74
+ }), modifiers, "record ", _$createComponent(Name, {}), typeParams, _$memo(() => _$memo(() => !!props.primaryConstructor)() && _$createComponent(core.Scope, {
75
+ value: thisRecordScope,
76
+ get children() {
77
+ return _$createComponent(Parameters, {
78
+ get parameters() {
79
+ return props.primaryConstructor;
80
+ }
81
+ });
82
+ }
83
+ })), _$memo(() => _$memo(() => !!props.children)() ? _$createComponent(core.Block, {
78
84
  newline: true,
79
85
  get children() {
80
86
  return _$createComponent(core.Scope, {
@@ -87,4 +93,5 @@ export function RecordDeclaration(props) {
87
93
  }) : ";")];
88
94
  }
89
95
  });
90
- }
96
+ }
97
+ //# sourceMappingURL=declaration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["core","computeModifiersPrefix","getAccessModifier","makeModifiers","useCSharpNamePolicy","createClassScope","createNamedTypeSymbol","createTypeParameterSymbol","DocWhen","Name","Parameters","getRecordModifiers","RecordDeclaration","props","name","getName","thisRecordSymbol","refkeys","refkey","thisRecordScope","typeParams","typeParameters","typeParamNames","Array","entry","Object","entries","push","scope","_$createIntrinsic","children","_$createComponent","For","each","comma","line","modifiers","Declaration","symbol","doc","_$memo","primaryConstructor","Scope","value","parameters","Block","newline"],"sources":["../../../../src/components/record/declaration.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAEEC,sBAAsB,EACtBC,iBAAiB,EACjBC,aAAa,QACR,oBAAoB;AAC3B,SAASC,mBAAmB,QAAQ,sBAAsB;AAC1D,SAASC,gBAAgB,QAAQ,2BAA2B;AAC5D,SACEC,qBAAqB,EACrBC,yBAAyB,QACpB,4BAA4B;AACnC,SAASC,OAAO;AAChB,SAASC,IAAI;AACb,SAAyBC,UAAU;AAMnC,MAAMC,kBAAkB,GAAGR,aAAa,CAAkB,CAAC,SAAS,CAAC,CAAC;;AAEtE;;AA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASS,iBAAiBA,CAACC,KAA6B,EAAE;EAC/D,MAAMC,IAAI,GAAGV,mBAAmB,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AAGA,CAAA;UAAA,OAAE1B,KAAK,CAAC0B,GAAG;QAAA;MAAA,IACtBH,SAAS,aAAAL,iBAAA,CAAStB,IAAI,OACtBW,UAAU,EAAAoB,MAAA,OACVA,MAAA,SAAA3B,KAAK,CAAC4B,kBAAkB,OAAAV,iBAAA,CACtB/B,IAAI,CAAC0C,KAAK;QAACC,KAAK,EAAExB,eAAe;QAAA,IAAAW,SAAA;UAAA,OAAAC,iBAAA,CAC/BrB,UAAU;YAAA,IAACkC,UAAUA,CAAA;cAAA,OAAE/B,KAAK,CAAC4B,kBAAkB;YAAA;UAAA;QAAA;MAAA,EAEnD,GAAAD,MAAA,OACAA,MAAA,SAAA3B,KAAK,CAACiB,QAAQ,MAAAC,iBAAA,CACZ/B,IAAI,CAAC6C,KAAK;QAACC,OAAO;QAAA,IAAAhB,SAAA;UAAA,OAAAC,iBAAA,CAChB/B,IAAI,CAAC0C,KAAK;YAACC,KAAK,EAAExB,eAAe;YAAA,IAAAW,SAAA;cAAA,OAAGjB,KAAK,CAACiB,QAAQ;YAAA;UAAA;QAAA;MAAA,KAErD,GAAG;IAAA;EAAA;AAGX","ignoreList":[]}
@@ -1,9 +1,19 @@
1
1
  import { createComponent as _$createComponent, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
2
+ import { code, refkey } from "@alloy-js/core";
2
3
  import { describe, expect, it } from "vitest";
3
4
  import { TestNamespace } from "../../../test/utils.js";
4
5
  import { Property } from "../property/property.js";
5
6
  import { RecordDeclaration } from "./declaration.js";
6
- it("declares class with no members", () => {
7
+
8
+ // Remove Wrapper that added <SourceFile> because TestNamespace already does
9
+ function Wrapper({
10
+ children
11
+ }) {
12
+ return _$createComponent(TestNamespace, {
13
+ children: children
14
+ });
15
+ }
16
+ it("declares record with no members", () => {
7
17
  expect(_$createComponent(TestNamespace, {
8
18
  get children() {
9
19
  return _$createComponent(RecordDeclaration, {
@@ -68,7 +78,7 @@ it("specify doc comment", () => {
68
78
  record TestRecord;
69
79
  `);
70
80
  });
71
- it("specify class property inside", () => {
81
+ it("specify record property inside", () => {
72
82
  expect(_$createComponent(TestNamespace, {
73
83
  get children() {
74
84
  return _$createComponent(RecordDeclaration, {
@@ -88,7 +98,45 @@ it("specify class property inside", () => {
88
98
  /// This is a test
89
99
  record TestRecord
90
100
  {
91
- string Prop { get; set; }
101
+ string Prop { get; set; }
92
102
  }
93
103
  `);
94
- });
104
+ });
105
+ describe("constructor", () => {
106
+ it("declares primary constructor with args", () => {
107
+ const paramNameRefkey = refkey();
108
+ const paramSizeRefkey = refkey();
109
+ const ctorParams = [{
110
+ name: "name",
111
+ type: "string",
112
+ refkey: paramNameRefkey
113
+ }, {
114
+ name: "size",
115
+ type: "int",
116
+ refkey: paramSizeRefkey
117
+ }];
118
+ expect(_$createComponent(Wrapper, {
119
+ get children() {
120
+ return _$createComponent(RecordDeclaration, {
121
+ "public": true,
122
+ name: "Test",
123
+ primaryConstructor: ctorParams,
124
+ get children() {
125
+ return _$createComponent(Property, {
126
+ name: "PrettyName",
127
+ type: "string",
128
+ get: true,
129
+ initializer: code`$"{${paramNameRefkey}} {${paramSizeRefkey}}"`
130
+ });
131
+ }
132
+ });
133
+ }
134
+ })).toRenderTo(`
135
+ public record Test(string name, int size)
136
+ {
137
+ string PrettyName { get; } = $"{name} {size}";
138
+ }
139
+ `);
140
+ });
141
+ });
142
+ //# sourceMappingURL=declaration.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["code","refkey","describe","expect","it","TestNamespace","Property","RecordDeclaration","Wrapper","children","_$createComponent","name","toRenderTo","each","mod","_$mergeProps","partial","doc","get","set","type","paramNameRefkey","paramSizeRefkey","ctorParams","primaryConstructor","initializer"],"sources":["../../../../src/components/record/declaration.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAAmBA,IAAI,EAAEC,MAAM,QAAQ,gBAAgB;AACvD,SAASC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,SAASC,aAAa;AACtB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EDnB,MAAM,CAAAO,iBAAA,CACHF,OAAO;MAAA,IAAAC,SAAA;QAAA,OAAAC,iBAAA,CACLH,iBAAiB;UAAA;UAAQI,IAAI;UAAQa,kBAAkB,EAAED,UAAU;UAAA,IAAAd,SAAA;YAAA,OAAAC,iBAAA,CACjEJ,QAAQ;cACPK,IAAI;cACJS,IAAI;cACJF,GAAG;cACHO,WAAW,EAAEzB,IAAI,MAAMqB,eAAe,MAAMC,eAAe;YAAI;UAAA;QAAA;MAAA;IAAA,EAIvE,CAAC,CAACV,UAAU,CAAC;AACjB;AACA;AACA;AACA;AACA,GAAG,CAAC;EACF,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ import { Children } from "@alloy-js/core";
2
+ import { CSharpFormatOptions } from "../../contexts/format-options.js";
3
+ /**
4
+ * Props for {@link SourceFile} component
5
+ */
6
+ export interface SourceFileProps extends CSharpFormatOptions {
7
+ /** Path of the source file */
8
+ path: string;
9
+ /** Source file content */
10
+ children?: Children;
11
+ /**
12
+ * A list of using directives to explicitly include. Note that providing
13
+ * explicit usings is not necessary when referencing symbols via refkeys.
14
+ */
15
+ using?: string[];
16
+ }
17
+ /** A C# source file exists within the context of a namespace contains using statements and declarations */
18
+ export declare function SourceFile(props: SourceFileProps): Children;
19
+ //# sourceMappingURL=source-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.d.ts","sourceRoot":"","sources":["../../../../src/components/source-file/source-file.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,QAAQ,EAKT,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EAEpB,MAAM,kCAAkC,CAAC;AAM1C;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,YA2DhD"}
@@ -0,0 +1,59 @@
1
+ import { createComponent as _$createComponent, memo as _$memo, mergeProps as _$mergeProps, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
+ import { NamespaceScopes } from "#components/namespace-scopes.js";
3
+ import { Reference } from "#components/Reference.js";
4
+ import { UsingDirective } from "#components/UsingDirective.js";
5
+ import { Block, computed, SourceFile as CoreSourceFile, Scope, useBinder } from "@alloy-js/core";
6
+ import { useCsharpFormatOptions } from "../../contexts/format-options.js";
7
+ import { getGlobalNamespace } from "../../contexts/global-namespace.js";
8
+ import { useNamespaceContext } from "../../contexts/namespace.js";
9
+ import { CSharpSourceFileScope } from "../../scopes/source-file.js";
10
+
11
+ /**
12
+ * Props for {@link SourceFile} component
13
+ */
14
+
15
+ /** A C# source file exists within the context of a namespace contains using statements and declarations */
16
+ export function SourceFile(props) {
17
+ const sourceFileScope = new CSharpSourceFileScope(props.path);
18
+ const nsContext = useNamespaceContext();
19
+ const globalNs = getGlobalNamespace(useBinder());
20
+ const nsSymbol = nsContext ? nsContext.symbol : globalNs;
21
+ const nsRef = nsContext ? nsContext.symbol.name : undefined;
22
+ const usings = computed(() => {
23
+ return Array.from(sourceFileScope.usings).concat(props.using ?? []);
24
+ });
25
+ const content = computed(() => _$createComponent(NamespaceScopes, {
26
+ symbol: nsSymbol,
27
+ get children() {
28
+ return props.children;
29
+ }
30
+ }));
31
+ const opts = useCsharpFormatOptions({
32
+ printWidth: props.printWidth,
33
+ tabWidth: props.tabWidth,
34
+ useTabs: props.useTabs
35
+ });
36
+ return _$createComponent(CoreSourceFile, _$mergeProps({
37
+ get path() {
38
+ return props.path;
39
+ },
40
+ filetype: "cs",
41
+ reference: Reference
42
+ }, opts, {
43
+ get children() {
44
+ return _$createComponent(Scope, {
45
+ value: sourceFileScope,
46
+ get children() {
47
+ return [_$memo(() => _$memo(() => !!(sourceFileScope.usings.size > 0 || props.using && props.using.length > 0))() && [_$createComponent(UsingDirective, {
48
+ get namespaces() {
49
+ return usings.value;
50
+ }
51
+ }), _$createIntrinsic("hbr", {}), _$createIntrinsic("hbr", {})]), _$memo(() => nsSymbol === globalNs ? content : ["namespace ", nsRef, _$memo(() => _$memo(() => !!sourceFileScope.hasBlockNamespace)() ? [" ", _$createComponent(Block, {
52
+ children: content
53
+ })] : [";", _$createIntrinsic("hbr", {}), _$createIntrinsic("hbr", {}), content])])];
54
+ }
55
+ });
56
+ }
57
+ }));
58
+ }
59
+ //# sourceMappingURL=source-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NamespaceScopes","Reference","UsingDirective","Block","computed","SourceFile","CoreSourceFile","Scope","useBinder","useCsharpFormatOptions","getGlobalNamespace","useNamespaceContext","CSharpSourceFileScope","props","sourceFileScope","path","nsContext","globalNs","nsSymbol","symbol","nsRef","name","undefined","usings","Array","from","concat","using","content","_$createComponent","children","opts","printWidth","tabWidth","useTabs","_$mergeProps","filetype","reference","value","_$memo","size","length","namespaces","_$createIntrinsic","hasBlockNamespace"],"sources":["../../../../src/components/source-file/source-file.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,eAAe;AACxB,SAASC,SAAS;AAClB,SAASC,cAAc;AACvB,SACEC,KAAK,EAELC,QAAQ,EACRC,UAAU,IAAIC,cAAc,EAC5BC,KAAK,EACLC,SAAS,QACJ,gBAAgB;AACvB,SAEEC,sBAAsB,QACjB,kCAAkC;AACzC,SAASC,kBAAkB,QAAQ,oCAAoC;AACvE,SAASC,mBAAmB,QAAQ,6BAA6B;AACjE,SAASC,qBAAqB,QAAQ,6BAA6B;;AAGnE;AACA;AACA;;AAeA;AACA,OAAO,SAASP,UAAUA,CAACQ,KAAsB,EAAE;EACjD,MAAMC,eAAe,GAAG,IAAIF,qBAAqB,CAACC,KAAK,CAACE,IAAI,CAAC;EAE7D,MAAMC,SAAS,GAAGL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,CAEpC3B,cAAc;YAAA,IAACwC,UAAUA,CAAA;cAAA,OAAEnB,MAAM,CAACe,KAAK;YAAA;UAAA,IAAAK,iBAAA,aAAAA,iBAAA,YAI3C,GAAAJ,MAAA,OACArB,QAAQ,KAAKD,QAAQ,GACpBW,OAAO,kBAEMR,KAAK,EAAAmB,MAAA,OACfA,MAAA,SAAAzB,eAAe,CAAC8B,iBAAiB,OAE7B,GAAG,EAAAf,iBAAA,CACH1B,KAAK;YAAA2B,QAAA,EAAEF;UAAO,YAAAe,iBAAA,aAAAA,iBAAA,aAKdf,OAAO,CACP,EAEJ;QAAA;MAAA;IAAA;EAAA;AAKb","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=source-file.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-file.test.d.ts","sourceRoot":"","sources":["../../../../src/components/source-file/source-file.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,136 @@
1
+ import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
+ import { ClassDeclaration } from "#components/class/declaration.js";
3
+ import { Namespace } from "#components/namespace.js";
4
+ import { FormatOptions, Indent, Output, Prose } from "@alloy-js/core";
5
+ import { describe, expect, it } from "vitest";
6
+ import { CSharpFormatOptions } from "../../contexts/format-options.js";
7
+ import { SourceFile } from "./source-file.js";
8
+ it("defines multiple source files with unique content", () => {
9
+ expect(_$createComponent(Output, {
10
+ get children() {
11
+ return _$createComponent(Namespace, {
12
+ name: "TestCode",
13
+ get children() {
14
+ return [_$createComponent(SourceFile, {
15
+ path: "Test1.cs",
16
+ get children() {
17
+ return _$createComponent(ClassDeclaration, {
18
+ "public": true,
19
+ name: "TestClass1"
20
+ });
21
+ }
22
+ }), _$createComponent(SourceFile, {
23
+ path: "Test2.cs",
24
+ get children() {
25
+ return _$createComponent(ClassDeclaration, {
26
+ "public": true,
27
+ name: "TestClass2"
28
+ });
29
+ }
30
+ })];
31
+ }
32
+ });
33
+ }
34
+ })).toRenderTo({
35
+ "Test1.cs": `
36
+ namespace TestCode;
37
+
38
+ public class TestClass1;
39
+ `,
40
+ "Test2.cs": `
41
+ namespace TestCode;
42
+
43
+ public class TestClass2;
44
+ `
45
+ });
46
+ });
47
+ describe("format options", () => {
48
+ function FileWithFormatOptions(props) {
49
+ return _$createComponent(CSharpFormatOptions, {
50
+ get value() {
51
+ return props.options;
52
+ },
53
+ get children() {
54
+ return _$createComponent(SourceFile, {
55
+ path: "hi.cs",
56
+ get children() {
57
+ return props.children;
58
+ }
59
+ });
60
+ }
61
+ });
62
+ }
63
+ it("respect tabWidth", () => {
64
+ expect(_$createComponent(FileWithFormatOptions, {
65
+ options: {
66
+ tabWidth: 5
67
+ },
68
+ get children() {
69
+ return ["hello", _$createComponent(Indent, {
70
+ children: "indented 5 spaces"
71
+ })];
72
+ }
73
+ })).toRenderTo(`
74
+ hello
75
+ indented 5 spaces
76
+ `);
77
+ });
78
+ it("respect useTabs", () => {
79
+ expect(_$createComponent(FileWithFormatOptions, {
80
+ options: {
81
+ useTabs: true
82
+ },
83
+ get children() {
84
+ return ["hello", _$createComponent(Indent, {
85
+ children: "indented with tabs"
86
+ })];
87
+ }
88
+ })).toRenderTo(`
89
+ hello
90
+ \tindented with tabs
91
+ `);
92
+ });
93
+ it("respect printWidth", () => {
94
+ expect(_$createComponent(FileWithFormatOptions, {
95
+ options: {
96
+ printWidth: 10
97
+ },
98
+ get children() {
99
+ return _$createComponent(Prose, {
100
+ children: "this is too long"
101
+ });
102
+ }
103
+ })).toRenderTo(`
104
+ this is
105
+ too long
106
+ `);
107
+ });
108
+ it("CSharpFormatOptions takes precedence over FormatOptions", () => {
109
+ expect(_$createComponent(FormatOptions, {
110
+ value: {
111
+ tabWidth: 5
112
+ },
113
+ get children() {
114
+ return _$createComponent(CSharpFormatOptions, {
115
+ value: {
116
+ tabWidth: 3
117
+ },
118
+ get children() {
119
+ return _$createComponent(SourceFile, {
120
+ path: "hi.cs",
121
+ get children() {
122
+ return ["hello", _$createComponent(Indent, {
123
+ children: "indented 3 spaces"
124
+ })];
125
+ }
126
+ });
127
+ }
128
+ });
129
+ }
130
+ })).toRenderTo(`
131
+ hello
132
+ indented 3 spaces
133
+ `);
134
+ });
135
+ });
136
+ //# sourceMappingURL=source-file.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ClassDeclaration","Namespace","FormatOptions","Indent","Output","Prose","describe","expect","it","CSharpFormatOptions","SourceFile","_$createComponent","children","name","path","toRenderTo","FileWithFormatOptions","props","value","options","tabWidth","useTabs","printWidth"],"sources":["../../../../src/components/source-file/source-file.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,gBAAgB;AACzB,SAASC,SAAS;AAClB,SAAmBC,aAAa,EAAEC,MAAM,EAAEC,MAAM,EAAEC,KAAK,QAAQ,gBAAgB;AAC/E,SAASC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,SAASC,mBAAmB,QAAQ,kCAAkC;AACtE,SAASC,UAAU;AAEnBF,EAAE,CAAC,mDAAmD,EAAE,MAAM;EAC5DD,MAAM,CAAAI,iBAAA,CACHP,MAAM;IAAA,IAAAQ,SAAA;MAAA,OAAAD,iBAAA,CACJV,SAAS;QAACY,IAAI;QAAA,IAAAD,SAAA;UAAA,QAAAD,iBAAA,CACZD,UAAU;YAACI,IAAI;YAAA,IAAAF,SAAA;cAAA,OAAAD,iBAAA,CACbX,gBAAgB;gBAAA;gBAAQa,IAAI;cAAA;YAAA;UAAA,IAAAF,iBAAA,CAE9BD,UAAU;YAACI,IAAI;YAAA,IAAAF,SAAA;cAAA,OAAAD,iBAAA,CACbX,gBAAgB;gBAAA;gBAAQa,IAAI;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA;EAAA,EAIrC,CAAC,CAACE,UAAU,CAAC;IACX,UAAU,EAAE;AAChB;AACA;AACA;AACA,KAAK;IACD,UAAU,EAAE;AAChB;AACA;AACA;AACA;EACE,CAAC,CAAC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AEFP,EAAE,CAAC,yDAAyD,EAAE,MAAM;IAClED,MAAM,CAAAI,iBAAA,CACHT,aAAa;MAACgB,KAAK,EAAE;QAAEE,QAAQ,EAAE;MAAE,CAAC;MAAA,IAAAR,SAAA;QAAA,OAAAD,iBAAA,CAClCF,mBAAmB;UAACS,KAAK,EAAE;YAAEE,QAAQ,EAAE;UAAE,CAAC;UAAA,IAAAR,SAAA;YAAA,OAAAD,iBAAA,CACxCD,UAAU;cAACI,IAAI;cAAA,IAAAF,SAAA;gBAAA,iBAAAD,iBAAA,CAEbR,MAAM;kBAAAS,QAAA;gBAAA;cAAA;YAAA;UAAA;QAAA;MAAA;IAAA,EAIf,CAAC,CAACG,UAAU,CAAC;AACjB;AACA;AACA,KAAK,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -10,4 +10,5 @@ export const Parameter = core.stc(base.Parameter);
10
10
  export const Parameters = core.stc(base.Parameters);
11
11
  export const ProjectDirectory = core.stc(base.ProjectDirectory);
12
12
  export const UsingDirective = core.stc(base.UsingDirective);
13
- export const StructDeclaration = core.stc(base.StructDeclaration);
13
+ export const StructDeclaration = core.stc(base.StructDeclaration);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["core","base","ClassDeclaration","stc","Constructor","Field","ClassMethod","Method","EnumDeclaration","EnumMember","Parameter","Parameters","ProjectDirectory","UsingDirective","StructDeclaration"],"sources":["../../../../src/components/stc/index.ts"],"sourcesContent":[null],"mappings":"AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,OAAO,KAAKC,IAAI,MAAM,aAAa;AAEnC,OAAO,MAAMC,gBAAgB,GAAGF,IAAI,CAACG,GAAG,CAACF,IAAI,CAACC,gBAAgB,CAAC;AAC/D,OAAO,MAAME,WAAW,GAAGJ,IAAI,CAACG,GAAG,CAACF,IAAI,CAACG,WAAW,CAAC;AACrD,OAAO,MAAMC,KAAK,GAAGL,IAAI,CAACG,GAAG,CAACF,IAAI,CAACI,KAAK,CAAC;AACzC,OAAO,MAAMC,WAAW,GAAGN,IAAI,CAACG,GAAG,CAACF,IAAI,CAACM,MAAM,CAAC;AAChD,OAAO,MAAMC,eAAe,GAAGR,IAAI,CAACG,GAAG,CAACF,IAAI,CAACO,eAAe,CAAC;AAC7D,OAAO,MAAMC,UAAU,GAAGT,IAAI,CAACG,GAAG,CAACF,IAAI,CAACQ,UAAU,CAAC;AACnD,OAAO,MAAMC,SAAS,GAAGV,IAAI,CAACG,GAAG,CAACF,IAAI,CAACS,SAAS,CAAC;AACjD,OAAO,MAAMC,UAAU,GAAGX,IAAI,CAACG,GAAG,CAACF,IAAI,CAACU,UAAU,CAAC;AACnD,OAAO,MAAMC,gBAAgB,GAAGZ,IAAI,CAACG,GAAG,CAACF,IAAI,CAACW,gBAAgB,CAAC;AAC/D,OAAO,MAAMC,cAAc,GAAGb,IAAI,CAACG,GAAG,CAACF,IAAI,CAACY,cAAc,CAAC;AAC3D,OAAO,MAAMC,iBAAiB,GAAGd,IAAI,CAACG,GAAG,CAACF,IAAI,CAACa,iBAAiB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../src/components/struct/declaration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EACL,eAAe,EAIhB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAiB,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAG3E,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAA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CAAC;IAEb,kBAAkB;IAClB,GAAG,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC;IAErB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,CAAC,kBAAkB,GAAG,MAAM,CAAC,EAAE,CAAC;IAEjD;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;IAE5B,wCAAwC;IACxC,cAAc,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,iBAsC9D"}
@@ -3,8 +3,8 @@ import * as core from "@alloy-js/core";
3
3
  import { join } from "@alloy-js/core";
4
4
  import { computeModifiersPrefix, getAccessModifier, makeModifiers } from "../../modifiers.js";
5
5
  import { useCSharpNamePolicy } from "../../name-policy.js";
6
- import { CSharpOutputSymbol } from "../../symbols/csharp-output-symbol.js";
7
- import { CSharpMemberScope } from "../../symbols/scopes.js";
6
+ import { createNamedTypeScope } from "../../scopes/factories.js";
7
+ import { createNamedTypeSymbol } from "../../symbols/factories.js";
8
8
  import { AttributeList } from "../attributes/attributes.js";
9
9
  import { DocWhen } from "../doc/comment.js";
10
10
  import { Name } from "../Name.js";
@@ -36,12 +36,10 @@ const getStructModifiers = makeModifiers(["new", "readonly", "ref", "partial"]);
36
36
  */
37
37
  export function StructDeclaration(props) {
38
38
  const name = useCSharpNamePolicy().getName(props.name, "struct");
39
- const thisStructSymbol = new CSharpOutputSymbol(name, {
39
+ const thisStructSymbol = createNamedTypeSymbol(name, "struct", {
40
40
  refkeys: props.refkey
41
41
  });
42
- const thisStructScope = new CSharpMemberScope("struct-decl", {
43
- owner: thisStructSymbol
44
- });
42
+ const thisStructScope = createNamedTypeScope(thisStructSymbol);
45
43
  const modifiers = computeModifiersPrefix([getAccessModifier(props), getStructModifiers(props)]);
46
44
  const base = props.interfaceTypes && props.interfaceTypes.length > 0 ? [" : ", _$memo(() => join(props.interfaceTypes, {
47
45
  joiner: ", "
@@ -79,4 +77,5 @@ export function StructDeclaration(props) {
79
77
  }) : ";")];
80
78
  }
81
79
  });
82
- }
80
+ }
81
+ //# sourceMappingURL=declaration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["core","join","computeModifiersPrefix","getAccessModifier","makeModifiers","useCSharpNamePolicy","createNamedTypeScope","createNamedTypeSymbol","AttributeList","DocWhen","Name","TypeParameterConstraints","TypeParameters","getStructModifiers","StructDeclaration","props","name","getName","thisStructSymbol","refkeys","refkey","thisStructScope","modifiers","base","interfaceTypes","length","_$memo","joiner","_$createComponent","Declaration","symbol","children","doc","attributes","endline","typeParameters","parameters","Block","newline","Scope","value"],"sources":["../../../../src/components/struct/declaration.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,IAAI,QAAQ,gBAAgB;AACrC,SAEEC,sBAAsB,EACtBC,iBAAiB,EACjBC,aAAa,QACR,oBAAoB;AAC3B,SAASC,mBAAmB,QAAQ,sBAAsB;AAC1D,SAASC,oBAAoB,QAAQ,2BAA2B;AAChE,SAASC,qBAAqB,QAAQ,4BAA4B;AAClE,SAASC,aAAa;AACtB,SAASC,OAAO;AAChB,SAASC,IAAI;AACb,SAASC,wBAAwB;AAEjC,SAASC,cAAc;AASvB,MAAMC,kBAAkB,GAAGT,aAAa,CAAkB,CACxD,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,CACV,CAAC;;AAEF;;AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASU,iBAAiBA,CAACC,KAA6B,EAAE;EAC/D,MAAMC,IAAI,GAAGX,mBAAmB,CAAC,CAAC,CAACY,OAAO,CAACF,KAAK,CAACC,IAAI,EAAG,QA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SAAAX,KAAK,CAACgB,QAAQ,MAAAH,iBAAA,CACZ5B,IAAI,CAACqC,KAAK;QAACC,OAAO;QAAA,IAAAP,SAAA;UAAA,OAAAH,iBAAA,CAChB5B,IAAI,CAACuC,KAAK;YAACC,KAAK,EAAEnB,eAAe;YAAA,IAAAU,SAAA;cAAA,OAAGhB,KAAK,CAACgB,QAAQ;YAAA;UAAA;QAAA;MAAA,KAErD,GAAG;IAAA;EAAA;AAGX","ignoreList":[]}
@@ -7,7 +7,6 @@ import { Constructor } from "../constructor/constructor.js";
7
7
  import { Field } from "../field/field.js";
8
8
  import { Method } from "../method/method.js";
9
9
  import { Property } from "../property/property.js";
10
- import { SourceFile } from "../SourceFile.js";
11
10
  import { StructDeclaration } from "./declaration.js";
12
11
  it("declares struct with no members", () => {
13
12
  expect(_$createComponent(TestNamespace, {
@@ -85,46 +84,38 @@ describe("with type parameters", () => {
85
84
  }];
86
85
  expect(_$createComponent(TestNamespace, {
87
86
  get children() {
88
- return _$createComponent(SourceFile, {
89
- path: "Test.cs",
87
+ return _$createComponent(StructDeclaration, {
88
+ "public": true,
89
+ name: "Test",
90
+ typeParameters: typeParameters,
90
91
  get children() {
91
- return _$createComponent(StructDeclaration, {
92
- "public": true,
93
- name: "Test",
94
- typeParameters: typeParameters,
92
+ return _$createComponent(List, {
95
93
  get children() {
96
- return _$createComponent(List, {
97
- get children() {
98
- return [_$createComponent(Property, {
99
- name: "PropA",
100
- get type() {
101
- return typeParameters[0].refkey;
102
- },
103
- get: true,
104
- set: true
105
- }), _$createComponent(Property, {
106
- name: "PropB",
107
- get type() {
108
- return typeParameters[1].refkey;
109
- },
110
- get: true,
111
- set: true
112
- })];
113
- }
114
- });
94
+ return [_$createComponent(Property, {
95
+ name: "PropA",
96
+ get type() {
97
+ return typeParameters[0].refkey;
98
+ },
99
+ get: true,
100
+ set: true
101
+ }), _$createComponent(Property, {
102
+ name: "PropB",
103
+ get type() {
104
+ return typeParameters[1].refkey;
105
+ },
106
+ get: true,
107
+ set: true
108
+ })];
115
109
  }
116
110
  });
117
111
  }
118
112
  });
119
113
  }
120
114
  })).toRenderTo(`
121
- namespace TestCode
115
+ public struct Test<T, U>
122
116
  {
123
- public struct Test<T, U>
124
- {
125
- T PropA { get; set; }
126
- U PropB { get; set; }
127
- }
117
+ T PropA { get; set; }
118
+ U PropB { get; set; }
128
119
  }
129
120
  `);
130
121
  });
@@ -147,10 +138,10 @@ describe("with type parameters", () => {
147
138
  }
148
139
  })).toRenderTo(`
149
140
  public struct Test<T, U>
150
- where T : IFoo
151
- where U : IBar
141
+ where T : IFoo
142
+ where U : IBar
152
143
  {
153
- // Body
144
+ // Body
154
145
  }
155
146
  `);
156
147
  });
@@ -187,7 +178,7 @@ it("define methods", () => {
187
178
  })).toRenderTo(`
188
179
  struct Test
189
180
  {
190
- void MethodOne() {}
181
+ void MethodOne() {}
191
182
  }
192
183
  `);
193
184
  });
@@ -206,7 +197,7 @@ it("define constructor", () => {
206
197
  })).toRenderTo(`
207
198
  struct Test
208
199
  {
209
- public Test() {}
200
+ public Test() {}
210
201
  }
211
202
  `);
212
203
  });
@@ -236,8 +227,8 @@ it("defines fields", () => {
236
227
  })).toRenderTo(`
237
228
  public struct TestClass
238
229
  {
239
- public string MemberOne;
240
- public int MemberTwo;
230
+ public string MemberOne;
231
+ public int MemberTwo;
241
232
  }
242
233
  `);
243
234
  });
@@ -252,4 +243,5 @@ it("define multiple interface types", () => {
252
243
  })).toRenderTo(`
253
244
  struct Test : Foo, Bar;
254
245
  `);
255
- });
246
+ });
247
+ //# sourceMappingURL=declaration.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["List","refkey","describe","expect","it","TestNamespace","Attribute","Constructor","Field","Method","Property","StructDeclaration","_$createComponent","children","name","toRenderTo","each","mod","_$mergeProps","partial","doc","typeParameters","type","get","set","constraints","attributes","interfaceTypes"],"sources":["../../../../src/components/struct/declaration.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,IAAI,EAAEC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;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -41,4 +41,5 @@ function TypeParameterConstraint(props) {
41
41
  }
42
42
  function arrayify(value) {
43
43
  return Array.isArray(value) ? value : [value];
44
- }
44
+ }
45
+ //# sourceMappingURL=type-parameter-constraints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["code","For","Indent","normalizeParameters","TypeParameterConstraints","props","parameters","some","x","constraints","_$createIntrinsic","children","_$createComponent","line","each","hardline","param","TypeParameterConstraint","arrayify","_$memo","name","softline","comma","constraint","value","Array","isArray"],"sources":["../../../../src/components/type-parameters/type-parameter-constraints.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAAmBA,IAAI,EAAEC,GAAG,EAAEC,MAAM,QAAQ,gBAAgB;AAE5D,SAASC,mBAAmB;AAO5B,OAAO,SAASC,wBAAwBA,CACtCC,KAAoC,EAC1B;EACV,MAAMC,UAAU,GAAGH,mBAAmB,CAACE,KAAK,CAACC,UAAU,CAAC;EACxD,IAAI,CAACA,UAAU,CAACC,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAAC,EAAE;IAC1C,OAAO,IAAI;EACb;EACA,OAAAC,iBAAA;IAAA,IAAAC,SAAA;MAAA,OAAAC,iBAAA,CAEKV,MAAM;QAACW,IAAI;QAAA,IAAAF,SAAA;UAAA,OAAAC,iBAAA,CACTX,GAAG;YAACa,IAAI,EAAER,UAAU;YAAES,QAAQ;YAAAJ,QAAA,EAC3BK,KAAK,IAAAJ,iBAAA,CAAMK,uBAAuB,EAAKD,KAAK;UAAI;QAAA;MAAA;IAAA;EAAA;AAK5D;AAEA,SAASC,uBAAuBA,CAACZ,KAAyB,EAAY;EACpE,MAAMI,WAAW,GAAGS,QAAQ,CAACb,KAAK,CAACI,WAAW,CAAC;EAC/C,kBAAAU,MAAA,OAEWnB,IAAI,GAAGK,KAAK,CAACe,IAAI,KAAK,GAAAV,iBAAA;IAAA,IAAAC,SAAA;MAAA,OAAAC,iBAAA,CAE1BV,MAAM;QAACmB,QAAQ;QAAA,IAAAV,SAAA;UAAA,OAAAC,iBAAA,CACbX,GAAG;YAACa,IAAI,EAAEL,WAAW;YAAEa,KAAK;YAACT,IAAI;YAAAF,QAAA,EAC9BY,UAAU,IAAKvB,IAAI,GAAGuB,UAAU;UAAE;QAAA;MAAA;IAAA;EAAA;AAMhD;AAEA,SAASL,QAAQA,CAAIM,KAAc,EAAO;EACxC,OAAOC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC;AAC/C","ignoreList":[]}
@@ -64,4 +64,5 @@ it("declare type parameters using parameters", () => {
64
64
  where A : string
65
65
  where B : string
66
66
  `);
67
- });
67
+ });
68
+ //# sourceMappingURL=type-parameter-constraints.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["expect","it","TypeParameterConstraints","_$createComponent","parameters","toRenderTo","name","constraints"],"sources":["../../../../src/components/type-parameters/type-parameter-constraints.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AACnC,SAASC,wBAAwB;AAEjCD,EAAE,CAAC,4CAA4C,EAAE,MAAM;EACrDD,MAAM,CAAAG,iBAAA,CAAED,wBAAwB;IAACE,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG;EAAC,EAAI,CAAC,CAACC,UAAU,CAAC,EAAE,CAAC;AAC7E,CAAC,CAAC;AAEFJ,EAAE,CAAC,qCAAqC,EAAE,MAAM;EAC9CD,MAAM,EAED,QAAQ,EAAAG,iBAAA,CACRD,wBAAwB;IACvBE,UAAU,EAAE,CAAC;MAAEE,IAAI,EAAE,GAAG;MAAEC,WAAW,EAAE;IAAS,CAAC;EAAC,GAGxD,CAAC,CAACF,UAAU,CAAC;AACf;AACA,GAAG,CAAC;AACJ,CAAC,CAAC;AAEFJ,EAAE,CAAC,8BAA8B,EAAE,MAAM;EACvCD,MAAM,EAED,QAAQ,EAAAG,iBAAA,CACRD,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