@alloy-js/go 0.3.2-dev.2 → 0.3.2

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 (295) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/dev/src/builtins/fmt/fmt.js.map +1 -1
  3. package/dist/dev/src/builtins/index.js.map +1 -1
  4. package/dist/dev/src/builtins/io/io.js.map +1 -1
  5. package/dist/dev/src/builtins/net/net.js.map +1 -1
  6. package/dist/dev/src/builtins/time/time.js.map +1 -1
  7. package/dist/dev/src/components/ImportStatement.js +6 -6
  8. package/dist/dev/src/components/ImportStatement.js.map +1 -1
  9. package/dist/dev/src/components/ModuleDirectory.js +2 -2
  10. package/dist/dev/src/components/ModuleDirectory.js.map +1 -1
  11. package/dist/dev/src/components/Name.js.map +1 -1
  12. package/dist/dev/src/components/Reference.js.map +1 -1
  13. package/dist/dev/src/components/SourceDirectory.js +2 -2
  14. package/dist/dev/src/components/SourceDirectory.js.map +1 -1
  15. package/dist/dev/src/components/SourceFile.js +12 -12
  16. package/dist/dev/src/components/SourceFile.js.map +1 -1
  17. package/dist/dev/src/components/doc/comment.js.map +1 -1
  18. package/dist/dev/src/components/doc/comment.test.js +39 -39
  19. package/dist/dev/src/components/doc/comment.test.js.map +1 -1
  20. package/dist/dev/src/components/function/function.js +26 -26
  21. package/dist/dev/src/components/function/function.js.map +1 -1
  22. package/dist/dev/src/components/function/function.test.js +55 -55
  23. package/dist/dev/src/components/function/function.test.js.map +1 -1
  24. package/dist/dev/src/components/index.js.map +1 -1
  25. package/dist/dev/src/components/interface/declaration.js +10 -10
  26. package/dist/dev/src/components/interface/declaration.js.map +1 -1
  27. package/dist/dev/src/components/interface/interface.test.js +84 -84
  28. package/dist/dev/src/components/interface/interface.test.js.map +1 -1
  29. package/dist/dev/src/components/package.test.js +12 -12
  30. package/dist/dev/src/components/package.test.js.map +1 -1
  31. package/dist/dev/src/components/parameters/parameters.js +13 -13
  32. package/dist/dev/src/components/parameters/parameters.js.map +1 -1
  33. package/dist/dev/src/components/parameters/typeparameters.js +11 -11
  34. package/dist/dev/src/components/parameters/typeparameters.js.map +1 -1
  35. package/dist/dev/src/components/pointer/pointer.js.map +1 -1
  36. package/dist/dev/src/components/stc/index.js.map +1 -1
  37. package/dist/dev/src/components/struct/declaration.js +12 -12
  38. package/dist/dev/src/components/struct/declaration.js.map +1 -1
  39. package/dist/dev/src/components/struct/struct.test.js +132 -132
  40. package/dist/dev/src/components/struct/struct.test.js.map +1 -1
  41. package/dist/dev/src/components/type/declaration.js +12 -12
  42. package/dist/dev/src/components/type/declaration.js.map +1 -1
  43. package/dist/dev/src/components/var/declaration.js +15 -15
  44. package/dist/dev/src/components/var/declaration.js.map +1 -1
  45. package/dist/dev/src/components/var/var-declaration.test.js +56 -56
  46. package/dist/dev/src/components/var/var-declaration.test.js.map +1 -1
  47. package/dist/dev/src/context/package.js.map +1 -1
  48. package/dist/dev/src/create-module.js.map +1 -1
  49. package/dist/dev/src/create-module.test.js +8 -8
  50. package/dist/dev/src/create-module.test.js.map +1 -1
  51. package/dist/dev/src/index.js.map +1 -1
  52. package/dist/dev/src/name-policy.js.map +1 -1
  53. package/dist/dev/src/scopes/contexts.js.map +1 -1
  54. package/dist/dev/src/scopes/factories.js.map +1 -1
  55. package/dist/dev/src/scopes/function.js.map +1 -1
  56. package/dist/dev/src/scopes/go.js.map +1 -1
  57. package/dist/dev/src/scopes/index.js.map +1 -1
  58. package/dist/dev/src/scopes/lexical.js +1 -0
  59. package/dist/dev/src/scopes/lexical.js.map +1 -1
  60. package/dist/dev/src/scopes/module.js.map +1 -1
  61. package/dist/dev/src/scopes/named-type.js +1 -0
  62. package/dist/dev/src/scopes/named-type.js.map +1 -1
  63. package/dist/dev/src/scopes/package.js.map +1 -1
  64. package/dist/dev/src/scopes/source-file.js.map +1 -1
  65. package/dist/dev/src/symbols/factories.js.map +1 -1
  66. package/dist/dev/src/symbols/function.js.map +1 -1
  67. package/dist/dev/src/symbols/go.js.map +1 -1
  68. package/dist/dev/src/symbols/index.js.map +1 -1
  69. package/dist/dev/src/symbols/named-type.js.map +1 -1
  70. package/dist/dev/src/symbols/package.js.map +1 -1
  71. package/dist/dev/src/symbols/reference.js.map +1 -1
  72. package/dist/dev/src/symbols/type-parameter.js.map +1 -1
  73. package/dist/dev/test/utils.js +4 -4
  74. package/dist/dev/test/utils.js.map +1 -1
  75. package/dist/dev/test/vitest.setup.js.map +1 -1
  76. package/dist/src/builtins/fmt/fmt.d.ts.map +1 -1
  77. package/dist/src/builtins/fmt/fmt.js.map +1 -1
  78. package/dist/src/builtins/index.js.map +1 -1
  79. package/dist/src/builtins/io/io.d.ts.map +1 -1
  80. package/dist/src/builtins/io/io.js.map +1 -1
  81. package/dist/src/builtins/net/net.d.ts.map +1 -1
  82. package/dist/src/builtins/net/net.js.map +1 -1
  83. package/dist/src/builtins/time/time.d.ts.map +1 -1
  84. package/dist/src/builtins/time/time.js.map +1 -1
  85. package/dist/src/components/ImportStatement.d.ts +2 -2
  86. package/dist/src/components/ImportStatement.d.ts.map +1 -1
  87. package/dist/src/components/ImportStatement.js.map +1 -1
  88. package/dist/src/components/ModuleDirectory.d.ts +1 -1
  89. package/dist/src/components/ModuleDirectory.d.ts.map +1 -1
  90. package/dist/src/components/ModuleDirectory.js.map +1 -1
  91. package/dist/src/components/Name.js.map +1 -1
  92. package/dist/src/components/Reference.d.ts +1 -1
  93. package/dist/src/components/Reference.d.ts.map +1 -1
  94. package/dist/src/components/Reference.js.map +1 -1
  95. package/dist/src/components/SourceDirectory.d.ts +1 -1
  96. package/dist/src/components/SourceDirectory.d.ts.map +1 -1
  97. package/dist/src/components/SourceDirectory.js.map +1 -1
  98. package/dist/src/components/SourceFile.d.ts.map +1 -1
  99. package/dist/src/components/SourceFile.js +1 -1
  100. package/dist/src/components/SourceFile.js.map +1 -1
  101. package/dist/src/components/doc/comment.js.map +1 -1
  102. package/dist/src/components/doc/comment.test.js.map +1 -1
  103. package/dist/src/components/function/function.d.ts +3 -3
  104. package/dist/src/components/function/function.d.ts.map +1 -1
  105. package/dist/src/components/function/function.js +1 -1
  106. package/dist/src/components/function/function.js.map +1 -1
  107. package/dist/src/components/function/function.test.js.map +1 -1
  108. package/dist/src/components/index.js.map +1 -1
  109. package/dist/src/components/interface/declaration.d.ts +3 -3
  110. package/dist/src/components/interface/declaration.d.ts.map +1 -1
  111. package/dist/src/components/interface/declaration.js.map +1 -1
  112. package/dist/src/components/interface/interface.test.js.map +1 -1
  113. package/dist/src/components/package.test.js.map +1 -1
  114. package/dist/src/components/parameters/parameters.d.ts +1 -1
  115. package/dist/src/components/parameters/parameters.d.ts.map +1 -1
  116. package/dist/src/components/parameters/parameters.js.map +1 -1
  117. package/dist/src/components/parameters/typeparameters.d.ts +1 -1
  118. package/dist/src/components/parameters/typeparameters.d.ts.map +1 -1
  119. package/dist/src/components/parameters/typeparameters.js.map +1 -1
  120. package/dist/src/components/pointer/pointer.d.ts +1 -1
  121. package/dist/src/components/pointer/pointer.d.ts.map +1 -1
  122. package/dist/src/components/pointer/pointer.js.map +1 -1
  123. package/dist/src/components/stc/index.d.ts.map +1 -1
  124. package/dist/src/components/stc/index.js.map +1 -1
  125. package/dist/src/components/struct/declaration.d.ts +2 -2
  126. package/dist/src/components/struct/declaration.d.ts.map +1 -1
  127. package/dist/src/components/struct/declaration.js.map +1 -1
  128. package/dist/src/components/struct/struct.test.js +2 -2
  129. package/dist/src/components/struct/struct.test.js.map +1 -1
  130. package/dist/src/components/type/declaration.d.ts +3 -3
  131. package/dist/src/components/type/declaration.d.ts.map +1 -1
  132. package/dist/src/components/type/declaration.js.map +1 -1
  133. package/dist/src/components/var/declaration.d.ts +1 -1
  134. package/dist/src/components/var/declaration.d.ts.map +1 -1
  135. package/dist/src/components/var/declaration.js.map +1 -1
  136. package/dist/src/components/var/var-declaration.test.js.map +1 -1
  137. package/dist/src/context/package.d.ts +2 -2
  138. package/dist/src/context/package.d.ts.map +1 -1
  139. package/dist/src/context/package.js.map +1 -1
  140. package/dist/src/create-module.d.ts +1 -1
  141. package/dist/src/create-module.d.ts.map +1 -1
  142. package/dist/src/create-module.js.map +1 -1
  143. package/dist/src/create-module.test.js +1 -1
  144. package/dist/src/create-module.test.js.map +1 -1
  145. package/dist/src/index.js.map +1 -1
  146. package/dist/src/name-policy.d.ts +1 -1
  147. package/dist/src/name-policy.d.ts.map +1 -1
  148. package/dist/src/name-policy.js.map +1 -1
  149. package/dist/src/scopes/contexts.d.ts.map +1 -1
  150. package/dist/src/scopes/contexts.js.map +1 -1
  151. package/dist/src/scopes/factories.d.ts +2 -2
  152. package/dist/src/scopes/factories.d.ts.map +1 -1
  153. package/dist/src/scopes/factories.js.map +1 -1
  154. package/dist/src/scopes/function.d.ts.map +1 -1
  155. package/dist/src/scopes/function.js.map +1 -1
  156. package/dist/src/scopes/go.d.ts +3 -2
  157. package/dist/src/scopes/go.d.ts.map +1 -1
  158. package/dist/src/scopes/go.js.map +1 -1
  159. package/dist/src/scopes/index.js.map +1 -1
  160. package/dist/src/scopes/lexical.d.ts.map +1 -1
  161. package/dist/src/scopes/lexical.js +1 -0
  162. package/dist/src/scopes/lexical.js.map +1 -1
  163. package/dist/src/scopes/module.d.ts.map +1 -1
  164. package/dist/src/scopes/module.js.map +1 -1
  165. package/dist/src/scopes/named-type.d.ts +3 -3
  166. package/dist/src/scopes/named-type.d.ts.map +1 -1
  167. package/dist/src/scopes/named-type.js +1 -0
  168. package/dist/src/scopes/named-type.js.map +1 -1
  169. package/dist/src/scopes/package.d.ts.map +1 -1
  170. package/dist/src/scopes/package.js.map +1 -1
  171. package/dist/src/scopes/source-file.d.ts +3 -3
  172. package/dist/src/scopes/source-file.d.ts.map +1 -1
  173. package/dist/src/scopes/source-file.js.map +1 -1
  174. package/dist/src/symbols/factories.d.ts +5 -3
  175. package/dist/src/symbols/factories.d.ts.map +1 -1
  176. package/dist/src/symbols/factories.js.map +1 -1
  177. package/dist/src/symbols/function.d.ts +4 -3
  178. package/dist/src/symbols/function.d.ts.map +1 -1
  179. package/dist/src/symbols/function.js.map +1 -1
  180. package/dist/src/symbols/go.d.ts +3 -2
  181. package/dist/src/symbols/go.d.ts.map +1 -1
  182. package/dist/src/symbols/go.js.map +1 -1
  183. package/dist/src/symbols/index.js.map +1 -1
  184. package/dist/src/symbols/named-type.d.ts +3 -2
  185. package/dist/src/symbols/named-type.d.ts.map +1 -1
  186. package/dist/src/symbols/named-type.js.map +1 -1
  187. package/dist/src/symbols/package.d.ts +1 -1
  188. package/dist/src/symbols/package.d.ts.map +1 -1
  189. package/dist/src/symbols/package.js.map +1 -1
  190. package/dist/src/symbols/reference.d.ts +1 -1
  191. package/dist/src/symbols/reference.d.ts.map +1 -1
  192. package/dist/src/symbols/reference.js.map +1 -1
  193. package/dist/src/symbols/type-parameter.d.ts +3 -2
  194. package/dist/src/symbols/type-parameter.d.ts.map +1 -1
  195. package/dist/src/symbols/type-parameter.js.map +1 -1
  196. package/dist/test/utils.d.ts +1 -1
  197. package/dist/test/utils.d.ts.map +1 -1
  198. package/dist/test/utils.js.map +1 -1
  199. package/dist/test/vitest.setup.js.map +1 -1
  200. package/dist/tsconfig.tsbuildinfo +1 -1
  201. package/docs/api/components/FunctionDeclaration.md +11 -11
  202. package/docs/api/components/FunctionParameter.md +1 -1
  203. package/docs/api/components/FunctionReceiver.md +6 -6
  204. package/docs/api/components/InterfaceDeclaration.md +5 -5
  205. package/docs/api/components/InterfaceEmbed.md +5 -5
  206. package/docs/api/components/InterfaceFunction.md +7 -7
  207. package/docs/api/components/InterfaceTypeDeclaration.md +12 -12
  208. package/docs/api/components/ModuleDirectory.md +5 -5
  209. package/docs/api/components/SingleImportStatement.md +7 -7
  210. package/docs/api/components/SourceDirectory.md +5 -5
  211. package/docs/api/components/SourceFile.md +8 -8
  212. package/docs/api/components/StructDeclaration.md +5 -5
  213. package/docs/api/components/StructEmbed.md +5 -5
  214. package/docs/api/components/StructMember.md +7 -7
  215. package/docs/api/components/StructTypeDeclaration.md +12 -12
  216. package/docs/api/components/TypeConstraint.md +4 -4
  217. package/docs/api/components/TypeDeclaration.md +9 -9
  218. package/docs/api/components/TypeParameter.md +1 -1
  219. package/docs/api/components/TypeParameters.md +3 -3
  220. package/docs/api/components/VariableDeclaration.md +8 -8
  221. package/docs/api/functions/createAnonymousTypeSymbol.md +3 -3
  222. package/docs/api/functions/createFunctionScope.md +5 -5
  223. package/docs/api/functions/createFunctionSymbol.md +12 -12
  224. package/docs/api/functions/createInterfaceMemberSymbol.md +3 -3
  225. package/docs/api/functions/createNamedTypeScope.md +5 -5
  226. package/docs/api/functions/createNestedStructSymbol.md +3 -3
  227. package/docs/api/functions/createParameterSymbol.md +12 -12
  228. package/docs/api/functions/createPropertySymbol.md +12 -12
  229. package/docs/api/functions/createStructMemberSymbol.md +3 -3
  230. package/docs/api/functions/createTypeParameterSymbol.md +3 -3
  231. package/docs/api/functions/createTypeSymbol.md +3 -3
  232. package/docs/api/functions/createVariableSymbol.md +12 -12
  233. package/docs/api/types/CreateTypeParameterSymbolOptions.md +3 -3
  234. package/docs/api/types/EmbedDescriptor.md +1 -1
  235. package/docs/api/types/FieldDescriptor.md +1 -1
  236. package/docs/api/types/FunctionDescriptor.md +1 -1
  237. package/docs/api/types/GoNamedTypeScope.md +1 -1
  238. package/docs/api/types/InterfaceDescriptor.md +1 -1
  239. package/docs/api/types/MemberDescriptor.md +4 -4
  240. package/docs/api/types/MethodDescriptor.md +1 -1
  241. package/docs/api/types/NamedTypeSymbolOptions.md +3 -3
  242. package/docs/api/types/PackageDescriptor.md +1 -1
  243. package/docs/api/types/SourceFileHeaderProps.md +5 -5
  244. package/docs/api/types/StructDescriptor.md +1 -1
  245. package/docs/api/types/TypeDescriptor.md +1 -1
  246. package/docs/api/types/VariableDescriptor.md +1 -1
  247. package/package.json +8 -8
  248. package/src/builtins/fmt/fmt.ts +2 -1
  249. package/src/builtins/io/io.ts +2 -1
  250. package/src/builtins/net/net.ts +2 -1
  251. package/src/builtins/time/time.ts +2 -1
  252. package/src/components/ImportStatement.tsx +3 -2
  253. package/src/components/ModuleDirectory.tsx +3 -1
  254. package/src/components/Reference.tsx +3 -1
  255. package/src/components/SourceDirectory.tsx +2 -1
  256. package/src/components/SourceFile.tsx +2 -1
  257. package/src/components/doc/comment.test.tsx +1 -0
  258. package/src/components/function/function.test.tsx +3 -1
  259. package/src/components/function/function.tsx +20 -24
  260. package/src/components/interface/declaration.tsx +13 -15
  261. package/src/components/interface/interface.test.tsx +1 -0
  262. package/src/components/package.test.tsx +1 -0
  263. package/src/components/parameters/parameters.tsx +3 -9
  264. package/src/components/parameters/typeparameters.tsx +3 -9
  265. package/src/components/pointer/pointer.tsx +1 -1
  266. package/src/components/stc/index.ts +1 -0
  267. package/src/components/struct/declaration.tsx +12 -14
  268. package/src/components/struct/struct.test.tsx +3 -2
  269. package/src/components/type/declaration.tsx +9 -8
  270. package/src/components/var/declaration.tsx +6 -3
  271. package/src/components/var/var-declaration.test.tsx +1 -0
  272. package/src/context/package.ts +4 -2
  273. package/src/create-module.test.tsx +5 -2
  274. package/src/create-module.ts +26 -23
  275. package/src/name-policy.ts +2 -1
  276. package/src/scopes/contexts.ts +1 -0
  277. package/src/scopes/factories.ts +4 -2
  278. package/src/scopes/function.ts +1 -0
  279. package/src/scopes/go.ts +4 -2
  280. package/src/scopes/lexical.ts +1 -0
  281. package/src/scopes/module.ts +3 -1
  282. package/src/scopes/named-type.ts +4 -3
  283. package/src/scopes/package.ts +3 -1
  284. package/src/scopes/source-file.ts +5 -9
  285. package/src/symbols/factories.ts +9 -5
  286. package/src/symbols/function.ts +6 -10
  287. package/src/symbols/go.ts +4 -5
  288. package/src/symbols/named-type.ts +4 -3
  289. package/src/symbols/package.ts +3 -1
  290. package/src/symbols/reference.ts +5 -3
  291. package/src/symbols/type-parameter.ts +4 -2
  292. package/temp/api.json +1 -1
  293. package/test/utils.tsx +3 -1
  294. package/tsdoc-metadata.json +1 -1
  295. package/vitest.config.ts +0 -12
@@ -40,14 +40,14 @@
40
40
 
41
41
  ## Props
42
42
 
43
- | | | |
44
- | -------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
- | children | optional [Children](../../../core/types/children/) | |
46
- | doc | optional [Children](../../../core/types/children/) | Doc comment |
47
- | name | string \| [Namekey](../../../core/types/namekey/) | |
48
- | parameters | optional [FunctionParameterProps](../functionparameter/)\[] | |
49
- | receiver | optional [Children](../../../core/types/children/) | Go receiver (for methods) |
50
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
51
- | returns | optional [Children](../../../core/types/children/) | |
52
- | singleLine | optional boolean | Whether to render the function in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
53
- | typeParameters | optional [TypeParameterProps](../typeparameter/)\[] | Type parameters for generic functions |
43
+ | | | |
44
+ | -------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
+ | children | optional[Children](../../../core/types/children/) | |
46
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
47
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
48
+ | parameters | optional[FunctionParameterProps](../functionparameter/)\[] | |
49
+ | receiver | optional[Children](../../../core/types/children/) | Go receiver (for methods) |
50
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
51
+ | returns | optional[Children](../../../core/types/children/) | |
52
+ | singleLine | optional boolean | Whether to render the function in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
53
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters for generic functions |
@@ -35,6 +35,6 @@ Define a parameter to be used in functions.
35
35
  | | | |
36
36
  | -------- | ------------------------------------------------- | - |
37
37
  | name | string \| [Namekey](../../../core/types/namekey/) | |
38
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
38
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
39
39
  | type | [Children](../../../core/types/children/) | |
40
40
  | variadic | optional boolean | |
@@ -30,9 +30,9 @@
30
30
 
31
31
  ## Props
32
32
 
33
- | | | |
34
- | -------------- | --------------------------------------------------- | - |
35
- | name | string \| [Namekey](../../../core/types/namekey/) | |
36
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
37
- | type | [Children](../../../core/types/children/) | |
38
- | typeParameters | optional [TypeParameterProps](../typeparameter/)\[] | |
33
+ | | | |
34
+ | -------------- | -------------------------------------------------- | - |
35
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
36
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
37
+ | type | [Children](../../../core/types/children/) | |
38
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | |
@@ -29,11 +29,11 @@ Properties for creating an interface declaration. This can be used for both name
29
29
 
30
30
  ## Props
31
31
 
32
- | | | |
33
- | ---------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
34
- | children | optional [Children](../../../core/types/children/) | |
35
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
36
- | singleLine | optional boolean | Whether to render the interface in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
32
+ | | | |
33
+ | ---------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
34
+ | children | optional[Children](../../../core/types/children/) | |
35
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
36
+ | singleLine | optional boolean | Whether to render the interface in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
37
37
 
38
38
  ## Example
39
39
 
@@ -22,8 +22,8 @@
22
22
 
23
23
  ## Props
24
24
 
25
- | | | |
26
- | -------- | -------------------------------------------------- | ----------- |
27
- | children | optional [Children](../../../core/types/children/) | |
28
- | doc | optional [Children](../../../core/types/children/) | Doc comment |
29
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
25
+ | | | |
26
+ | -------- | ------------------------------------------------- | ----------- |
27
+ | children | optional[Children](../../../core/types/children/) | |
28
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
29
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
@@ -32,10 +32,10 @@
32
32
 
33
33
  ## Props
34
34
 
35
- | | | |
36
- | ---------- | ----------------------------------------------------------- | ----------- |
37
- | doc | optional [Children](../../../core/types/children/) | Doc comment |
38
- | name | string \| [Namekey](../../../core/types/namekey/) | |
39
- | parameters | optional [FunctionParameterProps](../functionparameter/)\[] | |
40
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
41
- | returns | optional [Children](../../../core/types/children/) | |
35
+ | | | |
36
+ | ---------- | ---------------------------------------------------------- | ----------- |
37
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
38
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
39
+ | parameters | optional[FunctionParameterProps](../functionparameter/)\[] | |
40
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
41
+ | returns | optional[Children](../../../core/types/children/) | |
@@ -42,15 +42,15 @@ Properties for creating a named interface type declaration. This is a combinatio
42
42
 
43
43
  ## Props
44
44
 
45
- | | | |
46
- | -------------- | -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
- | alias | optional boolean | Whether the type is an alias |
48
- | children | optional [Children](../../../core/types/children/) | |
49
- | children | optional [Children](../../../core/types/children/) | Type expression |
50
- | doc | optional [Children](../../../core/types/children/) | Documentation comment |
51
- | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
52
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
53
- | refkey | optional [Refkey](../../../core/types/refkey/) | Type refkey |
54
- | singleLine | optional boolean | Whether to render the interface in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
55
- | symbol | optional [NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
56
- | typeParameters | optional [TypeParameterProps](../typeparameter/)\[] | Type parameters |
45
+ | | | |
46
+ | -------------- | ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
47
+ | alias | optional boolean | Whether the type is an alias |
48
+ | children | optional[Children](../../../core/types/children/) | |
49
+ | children | optional[Children](../../../core/types/children/) | Type expression |
50
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
51
+ | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
52
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
53
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
54
+ | singleLine | optional boolean | Whether to render the interface in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
55
+ | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
56
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
@@ -22,8 +22,8 @@
22
22
 
23
23
  ## Props
24
24
 
25
- | | | |
26
- | -------- | -------------------------------------------------- | - |
27
- | children | optional [Children](../../../core/types/children/) | |
28
- | name | string | |
29
- | path | optional string | |
25
+ | | | |
26
+ | -------- | ------------------------------------------------- | - |
27
+ | children | optional[Children](../../../core/types/children/) | |
28
+ | name | string | |
29
+ | path | optional string | |
@@ -26,10 +26,10 @@
26
26
 
27
27
  ## Props
28
28
 
29
- | | | |
30
- | ------- | ------------------------------------------ | - |
31
- | blank | optional boolean | |
32
- | dot | optional boolean | |
33
- | local | optional boolean | |
34
- | package | optional [GoSymbol](../../types/gosymbol/) | |
35
- | path | string | |
29
+ | | | |
30
+ | ------- | ----------------------------------------- | - |
31
+ | blank | optional boolean | |
32
+ | dot | optional boolean | |
33
+ | local | optional boolean | |
34
+ | package | optional[GoSymbol](../../types/gosymbol/) | |
35
+ | path | string | |
@@ -20,8 +20,8 @@
20
20
 
21
21
  ## Props
22
22
 
23
- | | | |
24
- | -------- | -------------------------------------------------- | - |
25
- | children | optional [Children](../../../core/types/children/) | |
26
- | name | optional string | |
27
- | path | string | |
23
+ | | | |
24
+ | -------- | ------------------------------------------------- | - |
25
+ | children | optional[Children](../../../core/types/children/) | |
26
+ | name | optional string | |
27
+ | path | string | |
@@ -34,11 +34,11 @@
34
34
 
35
35
  ## Props
36
36
 
37
- | | | |
38
- | ------------- | -------------------------------------------------- | - |
39
- | children | optional [Children](../../../core/types/children/) | |
40
- | export | optional boolean \| string | |
41
- | header | optional [Children](../../../core/types/children/) | |
42
- | headerComment | optional string | |
43
- | package | optional string | |
44
- | path | string | |
37
+ | | | |
38
+ | ------------- | ------------------------------------------------- | - |
39
+ | children | optional[Children](../../../core/types/children/) | |
40
+ | export | optional boolean \| string | |
41
+ | header | optional[Children](../../../core/types/children/) | |
42
+ | headerComment | optional string | |
43
+ | package | optional string | |
44
+ | path | string | |
@@ -26,11 +26,11 @@ Properties for creating a struct declaration. This can be used for both named an
26
26
 
27
27
  ## Props
28
28
 
29
- | | | |
30
- | ---------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
31
- | children | optional [Children](../../../core/types/children/) | |
32
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
33
- | singleLine | optional boolean | Whether to render the struct in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
29
+ | | | |
30
+ | ---------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
31
+ | children | optional[Children](../../../core/types/children/) | |
32
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
33
+ | singleLine | optional boolean | Whether to render the struct in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
34
34
 
35
35
  ## Example
36
36
 
@@ -22,8 +22,8 @@
22
22
 
23
23
  ## Props
24
24
 
25
- | | | |
26
- | -------- | -------------------------------------------------- | ----------- |
27
- | children | optional [Children](../../../core/types/children/) | |
28
- | doc | optional [Children](../../../core/types/children/) | Doc comment |
29
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
25
+ | | | |
26
+ | -------- | ------------------------------------------------- | ----------- |
27
+ | children | optional[Children](../../../core/types/children/) | |
28
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
29
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
@@ -32,10 +32,10 @@
32
32
 
33
33
  ## Props
34
34
 
35
- | | | |
36
- | ------ | -------------------------------------------------- | ----------- |
37
- | doc | optional [Children](../../../core/types/children/) | Doc comment |
38
- | name | string \| [Namekey](../../../core/types/namekey/) | |
39
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
40
- | tag | optional string \| Record\<string, string> | |
41
- | type | [Children](../../../core/types/children/) | |
35
+ | | | |
36
+ | ------ | ------------------------------------------------- | ----------- |
37
+ | doc | optional[Children](../../../core/types/children/) | Doc comment |
38
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
39
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
40
+ | tag | optional string \| Record\<string, string> | |
41
+ | type | [Children](../../../core/types/children/) | |
@@ -42,15 +42,15 @@ Properties for creating a named struct type declaration. This is a combination o
42
42
 
43
43
  ## Props
44
44
 
45
- | | | |
46
- | -------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
47
- | alias | optional boolean | Whether the type is an alias |
48
- | children | optional [Children](../../../core/types/children/) | |
49
- | children | optional [Children](../../../core/types/children/) | Type expression |
50
- | doc | optional [Children](../../../core/types/children/) | Documentation comment |
51
- | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
52
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
53
- | refkey | optional [Refkey](../../../core/types/refkey/) | Type refkey |
54
- | singleLine | optional boolean | Whether to render the struct in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
55
- | symbol | optional [NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
56
- | typeParameters | optional [TypeParameterProps](../typeparameter/)\[] | Type parameters |
45
+ | | | |
46
+ | -------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
47
+ | alias | optional boolean | Whether the type is an alias |
48
+ | children | optional[Children](../../../core/types/children/) | |
49
+ | children | optional[Children](../../../core/types/children/) | Type expression |
50
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
51
+ | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
52
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
53
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
54
+ | singleLine | optional boolean | Whether to render the struct in a single line. This will only compile if `children` is a single line as well. This is not common in Go, so use with caution. |
55
+ | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
56
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
@@ -22,7 +22,7 @@
22
22
 
23
23
  ## Props
24
24
 
25
- | | | |
26
- | ----------- | ----------------------------------------------------- | - |
27
- | children | optional [Children](../../../core/types/children/) | |
28
- | constraints | optional [Children](../../../core/types/children/)\[] | |
25
+ | | | |
26
+ | ----------- | ---------------------------------------------------- | - |
27
+ | children | optional[Children](../../../core/types/children/) | |
28
+ | constraints | optional[Children](../../../core/types/children/)\[] | |
@@ -36,12 +36,12 @@
36
36
 
37
37
  ## Props
38
38
 
39
- | | | |
40
- | -------------- | -------------------------------------------------------- | ---------------------------- |
41
- | alias | optional boolean | Whether the type is an alias |
42
- | children | optional [Children](../../../core/types/children/) | Type expression |
43
- | doc | optional [Children](../../../core/types/children/) | Documentation comment |
44
- | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
45
- | refkey | optional [Refkey](../../../core/types/refkey/) | Type refkey |
46
- | symbol | optional [NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
47
- | typeParameters | optional [TypeParameterProps](../typeparameter/)\[] | Type parameters |
39
+ | | | |
40
+ | -------------- | ------------------------------------------------------- | ---------------------------- |
41
+ | alias | optional boolean | Whether the type is an alias |
42
+ | children | optional[Children](../../../core/types/children/) | Type expression |
43
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
44
+ | name | string \| [Namekey](../../../core/types/namekey/) | Type name |
45
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Type refkey |
46
+ | symbol | optional[NamedTypeSymbol](../../types/namedtypesymbol/) | Type symbol |
47
+ | typeParameters | optional[TypeParameterProps](../typeparameter/)\[] | Type parameters |
@@ -34,4 +34,4 @@ Information for a Go generic type parameter.
34
34
  | ---------- | ------------------------------------------------- | --------------------------------- |
35
35
  | constraint | [Children](../../../core/types/children/) | The parameter constraint |
36
36
  | name | string \| [Namekey](../../../core/types/namekey/) | The name of the type parameter. |
37
- | refkey | optional [Refkey](../../../core/types/refkey/) | A refkey for this type parameter. |
37
+ | refkey | optional[Refkey](../../../core/types/refkey/) | A refkey for this type parameter. |
@@ -20,6 +20,6 @@
20
20
 
21
21
  ## Props
22
22
 
23
- | | | |
24
- | ---------- | --------------------------------------------------- | ---------- |
25
- | parameters | optional [TypeParameterProps](../typeparameter/)\[] | Parameters |
23
+ | | | |
24
+ | ---------- | -------------------------------------------------- | ---------- |
25
+ | parameters | optional[TypeParameterProps](../typeparameter/)\[] | Parameters |
@@ -34,11 +34,11 @@
34
34
 
35
35
  ## Props
36
36
 
37
- | | | |
38
- | -------- | -------------------------------------------------- | ------------------------------------- |
39
- | children | optional [Children](../../../core/types/children/) | Initializer expression |
40
- | const | optional boolean | Whether this is a `const` declaration |
41
- | doc | optional [Children](../../../core/types/children/) | Documentation comment |
42
- | name | string \| [Namekey](../../../core/types/namekey/) | Variable name |
43
- | refkey | optional [Refkey](../../../core/types/refkey/) | Variable refkey |
44
- | type | optional [Children](../../../core/types/children/) | Type of the variable declaration |
37
+ | | | |
38
+ | -------- | ------------------------------------------------- | ------------------------------------- |
39
+ | children | optional[Children](../../../core/types/children/) | Initializer expression |
40
+ | const | optional boolean | Whether this is a `const` declaration |
41
+ | doc | optional[Children](../../../core/types/children/) | Documentation comment |
42
+ | name | string \| [Namekey](../../../core/types/namekey/) | Variable name |
43
+ | refkey | optional[Refkey](../../../core/types/refkey/) | Variable refkey |
44
+ | type | optional[Children](../../../core/types/children/) | Type of the variable declaration |
@@ -16,9 +16,9 @@ function createAnonymousTypeSymbol(kind: NamedTypeTypeKind, options?: NamedTypeS
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | -------------- | --------------------------------------------- | - |
21
- | typeParameters | optional [GoSymbol](../../types/gosymbol/)\[] | |
19
+ | | | |
20
+ | -------------- | -------------------------------------------- | - |
21
+ | typeParameters | optional[GoSymbol](../../types/gosymbol/)\[] | |
22
22
 
23
23
  ## Returns
24
24
 
@@ -15,11 +15,11 @@ function createFunctionScope(options?: OutputScopeOptions): GoFunctionScope;
15
15
 
16
16
  ## Options
17
17
 
18
- | | | |
19
- | ----------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20
- | binder | optional [Binder](../../../core/types/binder/) | The binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context. |
21
- | metadata | optional Record\<string, unknown> | Arbitrary metadata that is associated with this scope. |
22
- | ownerSymbol | optional [OutputSymbol](../../../core/types/outputsymbol/) | The owner symbol of this scope. When provided, this scope becomes a member scope, which exposes the symbols on its owner symbol instead of having its own declaration spaces. |
18
+ | | | |
19
+ | ----------- | --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context. |
21
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata that is associated with this scope. |
22
+ | ownerSymbol | optional[OutputSymbol](../../../core/types/outputsymbol/) | The owner symbol of this scope. When provided, this scope becomes a member scope, which exposes the symbols on its owner symbol instead of having its own declaration spaces. |
23
23
 
24
24
  ## Returns
25
25
 
@@ -17,18 +17,18 @@ function createFunctionSymbol(originalName: string | Namekey, isMethod: boolean,
17
17
 
18
18
  ## Options
19
19
 
20
- | | | |
21
- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
22
- | aliasTarget | optional [OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
23
- | binder | optional [Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
24
- | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
25
- | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
26
- | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
27
- | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
28
- | namePolicy | optional [NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
29
- | refkeys | optional [Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
30
- | transient | optional boolean | Whether this symbol is transient. |
31
- | type | optional [OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
20
+ | | | |
21
+ | --------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
22
+ | aliasTarget | optional[OutputSymbol](../../../core/types/outputsymbol/) | The symbol this symbol is an alias for. |
23
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance associated with this symbol. Symbol updates and changes will be reported to this binder. This binder will be able to find this symbol via its refkey and other means. Without a binder, this symbol will be unbound, which means it cannot be referenced by refkey. When constructing an external library symbol, pass `{ binder }` here to ensure the symbol is registered with the binder. See [TO\_SYMBOL](../../../core/variables/to_symbol/) for the full implementation protocol. |
24
+ | ignoreNameConflict | optional boolean | Whether the name of this symbol should bypass the active name conflict resolution. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring name conflict resolution. |
25
+ | ignoreNamePolicy | optional boolean | Whether the name of this symbol should bypass the active name policy. When true, the name of this symbol will be fixed, though it may conflict with other symbols which are also ignoring the name policy. |
26
+ | lazyMemberInitializer | optional () => void | Provide a function which lazy-initializes members the first time `resolveMemberByName()` is called on this symbol. Called at most once. Only `resolveMemberByName()` triggers this callback — iterating `OutputMemberSpace` directly does not. The callback fires regardless of whether the symbol belongs to any scope, so it is safe to use on scopeless external library symbols. |
27
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata about this symbol. |
28
+ | namePolicy | optional[NamePolicyGetter](../../../core/types/namepolicygetter/) | When provided, this symbol will be named according to the provided name policy. |
29
+ | refkeys | optional[Refkey](../../../core/types/refkey/) \| [Refkey](../../../core/types/refkey/)\[] | The refkey or refkeys associated with this symbol. |
30
+ | transient | optional boolean | Whether this symbol is transient. |
31
+ | type | optional[OutputSymbol](../../../core/types/outputsymbol/) \| Ref<[OutputSymbol](../../../core/types/outputsymbol/) \| undefined> | The symbol that provides type information for this symbol. When present, this symbol will not contain its own members, and instead members will be provided by the type. This can be provided a Ref, in which case the type will be the value of that ref. |
32
32
 
33
33
  ## Returns
34
34
 
@@ -16,9 +16,9 @@ function createInterfaceMemberSymbol(originalName: string | Namekey, options?: N
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | -------------- | --------------------------------------------- | - |
21
- | typeParameters | optional [GoSymbol](../../types/gosymbol/)\[] | |
19
+ | | | |
20
+ | -------------- | -------------------------------------------- | - |
21
+ | typeParameters | optional[GoSymbol](../../types/gosymbol/)\[] | |
22
22
 
23
23
  ## Returns
24
24
 
@@ -16,11 +16,11 @@ function createNamedTypeScope(ownerSymbol: NamedTypeSymbol, options?: OutputScop
16
16
 
17
17
  ## Options
18
18
 
19
- | | | |
20
- | ----------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
- | binder | optional [Binder](../../../core/types/binder/) | The binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context. |
22
- | metadata | optional Record\<string, unknown> | Arbitrary metadata that is associated with this scope. |
23
- | ownerSymbol | optional [OutputSymbol](../../../core/types/outputsymbol/) | The owner symbol of this scope. When provided, this scope becomes a member scope, which exposes the symbols on its owner symbol instead of having its own declaration spaces. |
19
+ | | | |
20
+ | ----------- | --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | binder | optional[Binder](../../../core/types/binder/) | The binder instance this scope belongs to. If not provided, it will attempt to find the current binder from context. |
22
+ | metadata | optional Record\<string, unknown> | Arbitrary metadata that is associated with this scope. |
23
+ | ownerSymbol | optional[OutputSymbol](../../../core/types/outputsymbol/) | The owner symbol of this scope. When provided, this scope becomes a member scope, which exposes the symbols on its owner symbol instead of having its own declaration spaces. |
24
24
 
25
25
  ## Returns
26
26
 
@@ -17,9 +17,9 @@ function createNestedStructSymbol(originalName: string | Namekey, kind: NamedTyp
17
17
 
18
18
  ## Options
19
19
 
20
- | | | |
21
- | -------------- | --------------------------------------------- | - |
22
- | typeParameters | optional [GoSymbol](../../types/gosymbol/)\[] | |
20
+ | | | |
21
+ | -------------- | -------------------------------------------- | - |
22
+ | typeParameters | optional[GoSymbol](../../types/gosymbol/)\[] | |
23
23
 
24
24
  ## Returns
25
25