@alloy-js/python 0.2.0-dev.2 → 0.2.0-dev.4

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 (209) hide show
  1. package/dist/src/builtins/python.d.ts +3 -0
  2. package/dist/src/builtins/python.d.ts.map +1 -1
  3. package/dist/src/builtins/python.js +6 -0
  4. package/dist/src/builtins/python.js.map +1 -1
  5. package/dist/src/components/CallSignature.d.ts +4 -15
  6. package/dist/src/components/CallSignature.d.ts.map +1 -1
  7. package/dist/src/components/CallSignature.js +13 -67
  8. package/dist/src/components/CallSignature.js.map +1 -1
  9. package/dist/src/components/ClassMethodDeclaration.d.ts +22 -0
  10. package/dist/src/components/ClassMethodDeclaration.d.ts.map +1 -0
  11. package/dist/src/components/ClassMethodDeclaration.js +32 -0
  12. package/dist/src/components/ClassMethodDeclaration.js.map +1 -0
  13. package/dist/src/components/ConstructorDeclaration.d.ts +21 -0
  14. package/dist/src/components/ConstructorDeclaration.d.ts.map +1 -0
  15. package/dist/src/components/ConstructorDeclaration.js +35 -0
  16. package/dist/src/components/ConstructorDeclaration.js.map +1 -0
  17. package/dist/src/components/DunderMethodDeclaration.d.ts +21 -0
  18. package/dist/src/components/DunderMethodDeclaration.d.ts.map +1 -0
  19. package/dist/src/components/DunderMethodDeclaration.js +29 -0
  20. package/dist/src/components/DunderMethodDeclaration.js.map +1 -0
  21. package/dist/src/components/EnumDeclaration.d.ts +11 -32
  22. package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
  23. package/dist/src/components/EnumDeclaration.js +10 -48
  24. package/dist/src/components/EnumDeclaration.js.map +1 -1
  25. package/dist/src/components/EnumMember.js +3 -3
  26. package/dist/src/components/EnumMember.js.map +1 -1
  27. package/dist/src/components/FunctionBase.d.ts +48 -0
  28. package/dist/src/components/FunctionBase.d.ts.map +1 -0
  29. package/dist/src/components/FunctionBase.js +91 -0
  30. package/dist/src/components/FunctionBase.js.map +1 -0
  31. package/dist/src/components/FunctionDeclaration.d.ts +11 -31
  32. package/dist/src/components/FunctionDeclaration.d.ts.map +1 -1
  33. package/dist/src/components/FunctionDeclaration.js +22 -79
  34. package/dist/src/components/FunctionDeclaration.js.map +1 -1
  35. package/dist/src/components/MemberExpression.d.ts.map +1 -1
  36. package/dist/src/components/MemberExpression.js +12 -13
  37. package/dist/src/components/MemberExpression.js.map +1 -1
  38. package/dist/src/components/MethodBase.d.ts +29 -0
  39. package/dist/src/components/MethodBase.d.ts.map +1 -0
  40. package/dist/src/components/MethodBase.js +32 -0
  41. package/dist/src/components/MethodBase.js.map +1 -0
  42. package/dist/src/components/MethodDeclaration.d.ts +22 -0
  43. package/dist/src/components/MethodDeclaration.d.ts.map +1 -0
  44. package/dist/src/components/MethodDeclaration.js +34 -0
  45. package/dist/src/components/MethodDeclaration.js.map +1 -0
  46. package/dist/src/components/PropertyDeclaration.d.ts +71 -0
  47. package/dist/src/components/PropertyDeclaration.d.ts.map +1 -0
  48. package/dist/src/components/PropertyDeclaration.js +227 -0
  49. package/dist/src/components/PropertyDeclaration.js.map +1 -0
  50. package/dist/src/components/PyDoc.d.ts +107 -42
  51. package/dist/src/components/PyDoc.d.ts.map +1 -1
  52. package/dist/src/components/PyDoc.js +845 -181
  53. package/dist/src/components/PyDoc.js.map +1 -1
  54. package/dist/src/components/SourceFile.d.ts +24 -0
  55. package/dist/src/components/SourceFile.d.ts.map +1 -1
  56. package/dist/src/components/SourceFile.js +28 -1
  57. package/dist/src/components/SourceFile.js.map +1 -1
  58. package/dist/src/components/StaticMethodDeclaration.d.ts +22 -0
  59. package/dist/src/components/StaticMethodDeclaration.d.ts.map +1 -0
  60. package/dist/src/components/StaticMethodDeclaration.js +32 -0
  61. package/dist/src/components/StaticMethodDeclaration.js.map +1 -0
  62. package/dist/src/components/TypeArguments.d.ts +9 -0
  63. package/dist/src/components/TypeArguments.d.ts.map +1 -0
  64. package/dist/src/components/TypeArguments.js +18 -0
  65. package/dist/src/components/TypeArguments.js.map +1 -0
  66. package/dist/src/components/TypeReference.d.ts +14 -0
  67. package/dist/src/components/TypeReference.d.ts.map +1 -0
  68. package/dist/src/components/TypeReference.js +29 -0
  69. package/dist/src/components/TypeReference.js.map +1 -0
  70. package/dist/src/components/UnionTypeExpression.d.ts +1 -2
  71. package/dist/src/components/UnionTypeExpression.d.ts.map +1 -1
  72. package/dist/src/components/UnionTypeExpression.js +3 -11
  73. package/dist/src/components/UnionTypeExpression.js.map +1 -1
  74. package/dist/src/components/VariableDeclaration.d.ts.map +1 -1
  75. package/dist/src/components/VariableDeclaration.js +3 -3
  76. package/dist/src/components/VariableDeclaration.js.map +1 -1
  77. package/dist/src/components/index.d.ts +10 -0
  78. package/dist/src/components/index.d.ts.map +1 -1
  79. package/dist/src/components/index.js +9 -0
  80. package/dist/src/components/index.js.map +1 -1
  81. package/dist/src/parameter-descriptor.d.ts +1 -4
  82. package/dist/src/parameter-descriptor.d.ts.map +1 -1
  83. package/dist/src/parameter-descriptor.js +7 -1
  84. package/dist/src/parameter-descriptor.js.map +1 -1
  85. package/dist/src/symbol-creation.d.ts +4 -0
  86. package/dist/src/symbol-creation.d.ts.map +1 -1
  87. package/dist/src/symbol-creation.js +12 -0
  88. package/dist/src/symbol-creation.js.map +1 -1
  89. package/dist/src/symbols/factories.d.ts +15 -0
  90. package/dist/src/symbols/factories.d.ts.map +1 -0
  91. package/dist/src/symbols/factories.js +28 -0
  92. package/dist/src/symbols/factories.js.map +1 -0
  93. package/dist/src/symbols/index.d.ts +1 -0
  94. package/dist/src/symbols/index.d.ts.map +1 -1
  95. package/dist/src/symbols/index.js +1 -0
  96. package/dist/src/symbols/index.js.map +1 -1
  97. package/dist/src/symbols/reference.d.ts +1 -1
  98. package/dist/src/symbols/reference.d.ts.map +1 -1
  99. package/dist/src/symbols/reference.js +1 -1
  100. package/dist/src/symbols/reference.js.map +1 -1
  101. package/dist/src/utils.d.ts.map +1 -1
  102. package/dist/src/utils.js +1 -1
  103. package/dist/src/utils.js.map +1 -1
  104. package/dist/test/callsignatures.test.js +42 -64
  105. package/dist/test/callsignatures.test.js.map +1 -1
  106. package/dist/test/class-method-declaration.test.d.ts +2 -0
  107. package/dist/test/class-method-declaration.test.d.ts.map +1 -0
  108. package/dist/test/class-method-declaration.test.js +61 -0
  109. package/dist/test/class-method-declaration.test.js.map +1 -0
  110. package/dist/test/classdeclarations.test.js +6 -8
  111. package/dist/test/classdeclarations.test.js.map +1 -1
  112. package/dist/test/constructordeclaration.test.d.ts +2 -0
  113. package/dist/test/constructordeclaration.test.d.ts.map +1 -0
  114. package/dist/test/constructordeclaration.test.js +58 -0
  115. package/dist/test/constructordeclaration.test.js.map +1 -0
  116. package/dist/test/dundermethoddeclaration.test.d.ts +2 -0
  117. package/dist/test/dundermethoddeclaration.test.d.ts.map +1 -0
  118. package/dist/test/dundermethoddeclaration.test.js +65 -0
  119. package/dist/test/dundermethoddeclaration.test.js.map +1 -0
  120. package/dist/test/enums.test.js +14 -16
  121. package/dist/test/enums.test.js.map +1 -1
  122. package/dist/test/externals.test.js +2 -4
  123. package/dist/test/externals.test.js.map +1 -1
  124. package/dist/test/factories.test.d.ts +2 -0
  125. package/dist/test/factories.test.d.ts.map +1 -0
  126. package/dist/test/factories.test.js +78 -0
  127. package/dist/test/factories.test.js.map +1 -0
  128. package/dist/test/functiondeclaration.test.js +213 -59
  129. package/dist/test/functiondeclaration.test.js.map +1 -1
  130. package/dist/test/memberexpressions.test.js +1 -1
  131. package/dist/test/memberexpressions.test.js.map +1 -1
  132. package/dist/test/methoddeclaration.test.d.ts +2 -0
  133. package/dist/test/methoddeclaration.test.d.ts.map +1 -0
  134. package/dist/test/methoddeclaration.test.js +239 -0
  135. package/dist/test/methoddeclaration.test.js.map +1 -0
  136. package/dist/test/namepolicies.test.js +1 -2
  137. package/dist/test/namepolicies.test.js.map +1 -1
  138. package/dist/test/propertydeclaration.test.d.ts +2 -0
  139. package/dist/test/propertydeclaration.test.d.ts.map +1 -0
  140. package/dist/test/propertydeclaration.test.js +229 -0
  141. package/dist/test/propertydeclaration.test.js.map +1 -0
  142. package/dist/test/pydocs.test.js +926 -126
  143. package/dist/test/pydocs.test.js.map +1 -1
  144. package/dist/test/references.test.js +1 -5
  145. package/dist/test/references.test.js.map +1 -1
  146. package/dist/test/sourcefiles.test.js +90 -1
  147. package/dist/test/sourcefiles.test.js.map +1 -1
  148. package/dist/test/staticmethoddeclaration.test.d.ts +2 -0
  149. package/dist/test/staticmethoddeclaration.test.d.ts.map +1 -0
  150. package/dist/test/staticmethoddeclaration.test.js +61 -0
  151. package/dist/test/staticmethoddeclaration.test.js.map +1 -0
  152. package/dist/test/typereference.test.d.ts +2 -0
  153. package/dist/test/typereference.test.d.ts.map +1 -0
  154. package/dist/test/typereference.test.js +51 -0
  155. package/dist/test/typereference.test.js.map +1 -0
  156. package/dist/test/uniontypeexpression.test.js +152 -15
  157. package/dist/test/uniontypeexpression.test.js.map +1 -1
  158. package/dist/test/variables.test.js +28 -19
  159. package/dist/test/variables.test.js.map +1 -1
  160. package/dist/tsconfig.tsbuildinfo +1 -1
  161. package/package.json +2 -2
  162. package/src/builtins/python.ts +7 -0
  163. package/src/components/CallSignature.tsx +17 -69
  164. package/src/components/ClassMethodDeclaration.tsx +34 -0
  165. package/src/components/ConstructorDeclaration.tsx +37 -0
  166. package/src/components/DunderMethodDeclaration.tsx +30 -0
  167. package/src/components/EnumDeclaration.tsx +16 -44
  168. package/src/components/EnumMember.tsx +3 -3
  169. package/src/components/FunctionBase.tsx +88 -0
  170. package/src/components/FunctionDeclaration.tsx +18 -82
  171. package/src/components/MemberExpression.tsx +6 -19
  172. package/src/components/MethodBase.tsx +53 -0
  173. package/src/components/MethodDeclaration.tsx +27 -0
  174. package/src/components/PropertyDeclaration.tsx +264 -0
  175. package/src/components/PyDoc.tsx +795 -195
  176. package/src/components/SourceFile.tsx +29 -0
  177. package/src/components/StaticMethodDeclaration.tsx +34 -0
  178. package/src/components/TypeArguments.tsx +24 -0
  179. package/src/components/TypeReference.tsx +33 -0
  180. package/src/components/UnionTypeExpression.tsx +4 -15
  181. package/src/components/VariableDeclaration.tsx +1 -3
  182. package/src/components/index.ts +10 -0
  183. package/src/parameter-descriptor.ts +6 -5
  184. package/src/symbol-creation.ts +17 -0
  185. package/src/symbols/factories.ts +39 -0
  186. package/src/symbols/index.ts +1 -0
  187. package/src/symbols/reference.tsx +3 -5
  188. package/src/utils.ts +0 -2
  189. package/temp/api.json +5281 -2273
  190. package/test/callsignatures.test.tsx +102 -74
  191. package/test/class-method-declaration.test.tsx +53 -0
  192. package/test/classdeclarations.test.tsx +7 -9
  193. package/test/constructordeclaration.test.tsx +48 -0
  194. package/test/dundermethoddeclaration.test.tsx +53 -0
  195. package/test/enums.test.tsx +14 -16
  196. package/test/externals.test.tsx +5 -7
  197. package/test/factories.test.tsx +72 -0
  198. package/test/functiondeclaration.test.tsx +196 -44
  199. package/test/memberexpressions.test.tsx +7 -2
  200. package/test/methoddeclaration.test.tsx +202 -0
  201. package/test/namepolicies.test.tsx +1 -2
  202. package/test/propertydeclaration.test.tsx +192 -0
  203. package/test/pydocs.test.tsx +1093 -129
  204. package/test/references.test.tsx +1 -1
  205. package/test/sourcefiles.test.tsx +100 -1
  206. package/test/staticmethoddeclaration.test.tsx +49 -0
  207. package/test/typereference.test.tsx +52 -0
  208. package/test/uniontypeexpression.test.tsx +169 -34
  209. package/test/variables.test.tsx +27 -16
@@ -0,0 +1,71 @@
1
+ import { Children, Refkey } from "@alloy-js/core";
2
+ import { CommonFunctionProps } from "./FunctionBase.js";
3
+ /**
4
+ * Declares a Python property with optional getter, setter, and deleter methods.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <py.PropertyDeclaration name="name" type={{ children: "str" }}>
9
+ * return self._name
10
+ * </py.PropertyDeclaration>
11
+ * ```
12
+ * Generates:
13
+ * ```python
14
+ * @property
15
+ * def name(self) -> str:
16
+ * return self._name
17
+ * ```
18
+ *
19
+ * @example Setter and deleter
20
+ * ```tsx
21
+ * <py.PropertyDeclaration name="value" type={{ children: "int" }}>
22
+ * return self._value
23
+ * <py.PropertyDeclaration.Setter type={{ children: "int" }}>
24
+ * self._value = value
25
+ * </py.PropertyDeclaration.Setter>
26
+ * <py.PropertyDeclaration.Deleter>
27
+ * del self._value
28
+ * </py.PropertyDeclaration.Deleter>
29
+ * </py.PropertyDeclaration>
30
+ * ```
31
+ * Generates:
32
+ * ```python
33
+ * @property
34
+ * def value(self) -> int:
35
+ * return self._value
36
+ *
37
+ * @value.setter
38
+ * def value(self, value: int) -> None:
39
+ * self._value = value
40
+ *
41
+ * @value.deleter
42
+ * def value(self) -> None:
43
+ * del self._value
44
+ * ```
45
+ *
46
+ * @remarks
47
+ * The property must be declared within a class. The getter method is
48
+ * automatically generated using the `@property` decorator. Use the nested
49
+ * `Setter` and `Deleter` components to add mutators.
50
+ */
51
+ export interface PropertyDeclarationProps {
52
+ name: string;
53
+ type?: Children;
54
+ children?: Children;
55
+ refkey?: Refkey;
56
+ abstract?: boolean;
57
+ doc?: Children;
58
+ }
59
+ export declare function PropertyDeclaration(props: PropertyDeclarationProps): Children;
60
+ export declare namespace PropertyDeclaration {
61
+ var Setter: import("@alloy-js/core").Component<PropertyMethodDeclarationProps & {
62
+ type?: Children;
63
+ }> & Required<Pick<import("@alloy-js/core").Component<PropertyMethodDeclarationProps & {
64
+ type?: Children;
65
+ }>, "tag">>;
66
+ var Deleter: import("@alloy-js/core").Component<Omit<PropertyMethodDeclarationProps, "returnType">> & Required<Pick<import("@alloy-js/core").Component<Omit<PropertyMethodDeclarationProps, "returnType">>, "tag">>;
67
+ }
68
+ export interface PropertyMethodDeclarationProps extends Omit<CommonFunctionProps, "name"> {
69
+ abstract?: boolean;
70
+ }
71
+ //# sourceMappingURL=PropertyDeclaration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyDeclaration.d.ts","sourceRoot":"","sources":["../../../src/components/PropertyDeclaration.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAGR,MAAM,EASP,MAAM,gBAAgB,CAAC;AAKxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AASxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,QAAQ,CAAC;CAChB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,YA+DlE;yBA/De,mBAAmB;;eA6IkB,QAAQ;;eAAR,QAAQ;;;;AA5E7D,MAAM,WAAW,8BACf,SAAQ,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,227 @@
1
+ import { createComponent as _$createComponent, memo as _$memo, mergeProps as _$mergeProps, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
+ import { DeclarationContext, List, Show, childrenArray, code, createContext, findKeyedChild, findUnkeyedChildren, taggedComponent, useContext } from "@alloy-js/core";
3
+ import { createMethodSymbol } from "../symbols/factories.js";
4
+ import { Atom } from "./Atom.js";
5
+ import { MethodDeclarationBase } from "./MethodBase.js";
6
+ const setterTag = Symbol();
7
+ const deleterTag = Symbol();
8
+
9
+ /** Context to provide property type information within a PropertyDeclaration */
10
+ const PropertyContext = createContext();
11
+
12
+ /**
13
+ * Declares a Python property with optional getter, setter, and deleter methods.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * <py.PropertyDeclaration name="name" type={{ children: "str" }}>
18
+ * return self._name
19
+ * </py.PropertyDeclaration>
20
+ * ```
21
+ * Generates:
22
+ * ```python
23
+ * @property
24
+ * def name(self) -> str:
25
+ * return self._name
26
+ * ```
27
+ *
28
+ * @example Setter and deleter
29
+ * ```tsx
30
+ * <py.PropertyDeclaration name="value" type={{ children: "int" }}>
31
+ * return self._value
32
+ * <py.PropertyDeclaration.Setter type={{ children: "int" }}>
33
+ * self._value = value
34
+ * </py.PropertyDeclaration.Setter>
35
+ * <py.PropertyDeclaration.Deleter>
36
+ * del self._value
37
+ * </py.PropertyDeclaration.Deleter>
38
+ * </py.PropertyDeclaration>
39
+ * ```
40
+ * Generates:
41
+ * ```python
42
+ * @property
43
+ * def value(self) -> int:
44
+ * return self._value
45
+ *
46
+ * @value.setter
47
+ * def value(self, value: int) -> None:
48
+ * self._value = value
49
+ *
50
+ * @value.deleter
51
+ * def value(self) -> None:
52
+ * del self._value
53
+ * ```
54
+ *
55
+ * @remarks
56
+ * The property must be declared within a class. The getter method is
57
+ * automatically generated using the `@property` decorator. Use the nested
58
+ * `Setter` and `Deleter` components to add mutators.
59
+ */
60
+
61
+ export function PropertyDeclaration(props) {
62
+ const nonEmptyOrNotImplemented = children => {
63
+ if (children && childrenArray(() => children).length > 0) {
64
+ return children;
65
+ } else {
66
+ return [code`raise NotImplementedError`];
67
+ }
68
+ };
69
+ const children = childrenArray(() => props.children);
70
+ const setterComponent = findKeyedChild(children, PropertyDeclaration.Setter.tag) ?? undefined;
71
+ const deleterComponent = findKeyedChild(children, PropertyDeclaration.Deleter.tag) ?? undefined;
72
+ const setterChildren = nonEmptyOrNotImplemented(setterComponent?.props?.children);
73
+ const deleterChildren = nonEmptyOrNotImplemented(deleterComponent?.props?.children);
74
+ const unkeyedChildren = nonEmptyOrNotImplemented(findUnkeyedChildren(children));
75
+ const sym = createMethodSymbol(props.name, {
76
+ refkeys: props.refkey
77
+ });
78
+ return [_$createComponent(DeclarationContext.Provider, {
79
+ value: sym,
80
+ get children() {
81
+ return _$createComponent(PropertyContext.Provider, {
82
+ get value() {
83
+ return props.type;
84
+ },
85
+ get children() {
86
+ return _$createComponent(List, {
87
+ hardline: true,
88
+ enderPunctuation: true,
89
+ get children() {
90
+ return [_$createComponent(PropertyMethodDeclaration, {
91
+ get abstract() {
92
+ return props.abstract;
93
+ },
94
+ get doc() {
95
+ return props.doc;
96
+ },
97
+ children: unkeyedChildren
98
+ }), _$createComponent(Show, {
99
+ get when() {
100
+ return Boolean(setterComponent);
101
+ },
102
+ get children() {
103
+ return _$createComponent(PropertyDeclaration.Setter, _$mergeProps(() => setterComponent?.props, {
104
+ get type() {
105
+ return setterComponent?.props?.type ?? props.type;
106
+ },
107
+ get abstract() {
108
+ return setterComponent?.props?.abstract ?? props.abstract;
109
+ },
110
+ children: setterChildren
111
+ }));
112
+ }
113
+ }), _$createComponent(Show, {
114
+ get when() {
115
+ return Boolean(deleterComponent);
116
+ },
117
+ get children() {
118
+ return _$createComponent(PropertyDeclaration.Deleter, _$mergeProps(() => deleterComponent?.props, {
119
+ get abstract() {
120
+ return deleterComponent?.props?.abstract ?? props.abstract;
121
+ },
122
+ children: deleterChildren
123
+ }));
124
+ }
125
+ })];
126
+ }
127
+ });
128
+ }
129
+ });
130
+ }
131
+ })];
132
+ }
133
+ function PropertyMethodDeclaration(props) {
134
+ const propertySymbol = useContext(DeclarationContext);
135
+ const propertyType = useContext(PropertyContext);
136
+ return [code`@property`, _$createIntrinsic("hbr", {}), _$createComponent(MethodDeclarationBase, _$mergeProps(props, {
137
+ get name() {
138
+ return propertySymbol.name;
139
+ },
140
+ functionType: "instance",
141
+ returnType: propertyType,
142
+ sym: propertySymbol,
143
+ get children() {
144
+ return props.children;
145
+ }
146
+ }))];
147
+ }
148
+ function PropertyMethodBase(props) {
149
+ const propertySymbol = useContext(DeclarationContext);
150
+ const {
151
+ decoratorType,
152
+ parameters,
153
+ children,
154
+ ...restProps
155
+ } = props;
156
+ return [_$memo(() => code`@${propertySymbol.name}.${decoratorType}`), _$createIntrinsic("hbr", {}), _$createComponent(MethodDeclarationBase, _$mergeProps(restProps, {
157
+ get name() {
158
+ return propertySymbol.name;
159
+ },
160
+ functionType: "instance",
161
+ parameters: parameters,
162
+ get returnType() {
163
+ return _$createComponent(Atom, {
164
+ jsValue: null
165
+ });
166
+ },
167
+ sym: propertySymbol,
168
+ children: children
169
+ }))];
170
+ }
171
+
172
+ /**
173
+ * Adds a setter to a `PropertyDeclaration`.
174
+ *
175
+ * @example
176
+ * ```tsx
177
+ * <py.PropertyDeclaration name="value" type={{ children: "int" }}>
178
+ * return self._value
179
+ * <py.PropertyDeclaration.Setter type={{ children: "int" }}>
180
+ * self._value = value
181
+ * </py.PropertyDeclaration.Setter>
182
+ * </py.PropertyDeclaration>
183
+ * ```
184
+ * Generates:
185
+ * ```python
186
+ * @value.setter
187
+ * def value(self, value: int) -> None:
188
+ * self._value = value
189
+ * ```
190
+ */
191
+ PropertyDeclaration.Setter = taggedComponent(setterTag, function PropertySetter(props) {
192
+ return _$createComponent(PropertyMethodBase, _$mergeProps({
193
+ decoratorType: "setter",
194
+ get parameters() {
195
+ return [{
196
+ name: "value",
197
+ type: props.type
198
+ }];
199
+ }
200
+ }, props));
201
+ });
202
+
203
+ /**
204
+ * Adds a deleter to a `PropertyDeclaration`.
205
+ *
206
+ * @example
207
+ * ```tsx
208
+ * <py.PropertyDeclaration name="value" type={{ children: "int" }}>
209
+ * return self._value
210
+ * <py.PropertyDeclaration.Deleter>
211
+ * del self._value
212
+ * </py.PropertyDeclaration.Deleter>
213
+ * </py.PropertyDeclaration>
214
+ * ```
215
+ * Generates:
216
+ * ```python
217
+ * @value.deleter
218
+ * def value(self) -> None:
219
+ * del self._value
220
+ * ```
221
+ */
222
+ PropertyDeclaration.Deleter = taggedComponent(deleterTag, function PropertyDeleter(props) {
223
+ return _$createComponent(PropertyMethodBase, _$mergeProps({
224
+ decoratorType: "deleter"
225
+ }, props));
226
+ });
227
+ //# sourceMappingURL=PropertyDeclaration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DeclarationContext","List","Show","childrenArray","code","createContext","findKeyedChild","findUnkeyedChildren","taggedComponent","useContext","createMethodSymbol","Atom","MethodDeclarationBase","setterTag","Symbol","deleterTag","PropertyContext","PropertyDeclaration","props","nonEmptyOrNotImplemented","children","length","setterComponent","Setter","tag","undefined","deleterComponent","Deleter","setterChildren","deleterChildren","unkeyedChildren","sym","name","refkeys","refkey","_$createComponent","Provider","value","type","hardline","enderPunctuation","PropertyMethodDeclaration","abstract","doc","when","Boolean","_$mergeProps","propertySymbol","propertyType","_$createIntrinsic","functionType","returnType","PropertyMethodBase","decoratorType","parameters","restProps","_$memo","jsValue","PropertySetter","PropertyDeleter"],"sources":["../../../src/components/PropertyDeclaration.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAEEA,kBAAkB,EAClBC,IAAI,EAEJC,IAAI,EACJC,aAAa,EACbC,IAAI,EACJC,aAAa,EACbC,cAAc,EACdC,mBAAmB,EACnBC,eAAe,EACfC,UAAU,QACL,gBAAgB;AAGvB,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,IAAI;AAEb,SAASC,qBAAqB,QAAQ,iBAAiB;AAEvD,MAAMC,SAAS,GAAGC,MAAM,CAAC,CAAC;AAC1B,MAAMC,UAAU,GAAGD,MAAM,CAAC,CAAC;;AAE3B;AACA,MAAME,eAAe,GAAGX,aAAa,CAAuB,CAAC;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,OAAO,SAASY,mBAAmBA,CAACC,KAA+B,EAAE;EACnE,MAAMC,wBAAwB,GAC5BC,QAA8B,IACjB;IACb,IAAIA,QAAQ,IAAIjB,aAAa,CAAC,MAAMiB,QAAQ,CAAC,CAACC,MAAM,GAAG,CAAC,EAAE;MACxD,OAAOD,QAAQ;IACjB,CAAC,MA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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAD,mBAAmB,CAACU,OAAO,GAAGnB,eAAe,CAC3CO,UAAU,EACV,SAAS4C,eAAeA,CACtBzC,KAAyD,EACzD;EACA,OAAAiB,iBAAA,CAAQiB,kBAAkB,EAAAN,YAAA;IAACO,aAAa;EAAA,GAAenC,KAAK;AAC9D,CACF,CAAC","ignoreList":[]}
@@ -1,76 +1,125 @@
1
1
  import { Children } from "@alloy-js/core/jsx-runtime";
2
2
  import { ParameterDescriptor } from "../parameter-descriptor.js";
3
- export interface GoogleStyleDocParamProps {
4
- name: Children;
5
- type?: Children;
6
- children?: Children;
7
- optional?: boolean;
8
- defaultValue?: Children;
9
- }
10
- /**
11
- * Create a GoogleStyleDoc parameter.
12
- */
13
- export declare function GoogleStyleDocParam(props: GoogleStyleDocParamProps): Children;
14
- export interface GoogleStyleDocParamsProps {
15
- parameters: ParameterDescriptor[] | string[];
3
+ export interface FunctionDocProps {
4
+ description: Children[];
5
+ parameters?: ParameterDescriptor[];
6
+ returns?: string;
7
+ yields?: string;
8
+ raises?: string[];
9
+ examples?: Children[];
10
+ seeAlso?: string[];
11
+ warning?: string;
12
+ deprecated?: string;
13
+ note?: string;
14
+ style?: "google";
16
15
  }
17
16
  /**
18
- * A component that creates a GoogleStyleDoc block for parameters.
17
+ * A component that creates a FunctionDoc block for functions.
19
18
  */
20
- export declare function GoogleStyleDocParams(props: GoogleStyleDocParamsProps): Children;
21
- export interface GoogleStyleDocReturnProps {
22
- message: string;
19
+ export declare function FunctionDoc(props: FunctionDocProps): Children;
20
+ export interface ClassDocProps {
21
+ description: Children[];
22
+ parameters?: ParameterDescriptor[];
23
+ attributes?: GoogleStyleDocAttributeProps[];
24
+ examples?: Children[];
25
+ seeAlso?: string[];
26
+ warning?: string;
27
+ deprecated?: string;
28
+ note?: string;
29
+ style?: "google";
23
30
  }
24
31
  /**
25
- * A component that creates a GoogleStyleDoc block for parameters.
32
+ * A component that creates a ClassDoc block for classes.
26
33
  */
27
- export declare function GoogleStyleDocReturn(props: GoogleStyleDocReturnProps): Children;
28
- export interface GoogleStyleDocRaisesProps {
29
- message: string;
34
+ export declare function ClassDoc(props: ClassDocProps): Children;
35
+ export interface ModuleDocProps {
36
+ description: Children[];
37
+ attributes?: GoogleStyleDocAttributeProps[];
38
+ examples?: Children[];
39
+ seeAlso?: string[];
40
+ warning?: string;
41
+ deprecated?: string;
42
+ todo?: string[];
43
+ style?: "google";
30
44
  }
31
45
  /**
32
- * A component that creates a GoogleStyleDoc block for parameters.
46
+ * A component that creates a ModuleDoc block for module-level documentation.
33
47
  */
34
- export declare function GoogleStyleDocRaises(props: GoogleStyleDocRaisesProps): Children;
35
- export interface GoogleStyleFunctionDocProps extends Omit<FunctionDocProps, "style"> {
48
+ export declare function ModuleDoc(props: ModuleDocProps): Children;
49
+ export interface PropertyDocProps {
50
+ description: Children[];
51
+ returns?: string;
52
+ examples?: Children[];
53
+ seeAlso?: string[];
54
+ warning?: string;
55
+ deprecated?: string;
56
+ note?: string;
57
+ style?: "google";
36
58
  }
37
59
  /**
38
- * A component that creates a GoogleStyleFunctionDoc block for parameters.
60
+ * A component that creates a PropertyDoc block for `@property` decorated methods.
39
61
  */
40
- export declare function GoogleStyleFunctionDoc(props: GoogleStyleFunctionDocProps): Children;
41
- export interface FunctionDocProps {
62
+ export declare function PropertyDoc(props: PropertyDocProps): Children;
63
+ export interface GeneratorDocProps {
42
64
  description: Children[];
43
- parameters?: ParameterDescriptor[] | string[];
44
- returns?: string;
65
+ parameters?: ParameterDescriptor[];
66
+ yields?: string;
45
67
  raises?: string[];
68
+ examples?: Children[];
69
+ seeAlso?: string[];
70
+ warning?: string;
71
+ deprecated?: string;
72
+ note?: string;
46
73
  style?: "google";
47
74
  }
48
75
  /**
49
- * A component that creates a FunctionDoc block for parameters.
76
+ * A component that creates a GeneratorDoc block for generator functions.
50
77
  */
51
- export declare function FunctionDoc(props: FunctionDocProps): Children;
52
- export interface ClassDocProps {
78
+ export declare function GeneratorDoc(props: GeneratorDocProps): Children;
79
+ export interface ExceptionDocProps {
53
80
  description: Children[];
54
- parameters?: ParameterDescriptor[] | string[];
81
+ parameters?: ParameterDescriptor[];
82
+ attributes?: GoogleStyleDocAttributeProps[];
83
+ examples?: Children[];
84
+ seeAlso?: string[];
85
+ warning?: string;
86
+ deprecated?: string;
87
+ note?: string;
55
88
  style?: "google";
56
89
  }
57
90
  /**
58
- * A component that creates a ClassDoc block for parameters.
91
+ * A component that creates an ExceptionDoc block for custom exception classes.
59
92
  */
60
- export declare function ClassDoc(props: ClassDocProps): Children;
61
- export interface GoogleStyleClassDocProps extends Omit<ClassDocProps, "style"> {
93
+ export declare function ExceptionDoc(props: ExceptionDocProps): Children;
94
+ export interface AttributeDocProps {
95
+ name: Children;
96
+ type?: Children;
97
+ children?: Children;
98
+ style?: "google";
62
99
  }
63
100
  /**
64
- * A component that creates a GoogleStyleClassDoc block for parameters.
101
+ * A component that creates documentation for a single attribute.
102
+ * This can be used for both inline and block attribute documentation.
65
103
  */
66
- export declare function GoogleStyleClassDoc(props: GoogleStyleClassDocProps): Children;
67
- export interface PyDocExampleProps {
68
- children: Children;
104
+ export declare function AttributeDoc(props: AttributeDocProps): Children;
105
+ export interface MethodDocProps {
106
+ description: Children[];
107
+ parameters?: ParameterDescriptor[];
108
+ returns?: string;
109
+ raises?: string[];
110
+ examples?: Children[];
111
+ seeAlso?: string[];
112
+ warning?: string;
113
+ deprecated?: string;
114
+ note?: string;
115
+ overrides?: string;
116
+ style?: "google";
69
117
  }
70
118
  /**
71
- * Create a PyDoc example, which is prepended by \>\>.
119
+ * A component that creates a MethodDoc block for class methods.
120
+ * Automatically adds a note about not including 'self' parameter if no custom note is provided.
72
121
  */
73
- export declare function PyDocExample(props: PyDocExampleProps): Children;
122
+ export declare function MethodDoc(props: MethodDocProps): Children;
74
123
  export interface PyDocProps {
75
124
  children: Children;
76
125
  }
@@ -79,6 +128,13 @@ export interface PyDocProps {
79
128
  * linebreaks. This is useful for creating PyDoc comments with multiple paragraphs.
80
129
  */
81
130
  export declare function PyDoc(props: PyDocProps): Children;
131
+ export interface PyDocExampleProps {
132
+ children: Children;
133
+ }
134
+ /**
135
+ * Create a PyDoc example, which is prepended by \>\>.
136
+ */
137
+ export declare function PyDocExample(props: PyDocExampleProps): Children;
82
138
  export interface SimpleCommentBlockProps {
83
139
  children: Children;
84
140
  }
@@ -87,4 +143,13 @@ export interface SimpleInlineCommentProps {
87
143
  children: Children;
88
144
  }
89
145
  export declare function SimpleInlineComment(props: SimpleInlineCommentProps): Children;
146
+ export interface SimpleInlineCommentProps {
147
+ children: Children;
148
+ }
149
+ export declare function SimpleInlineMemberComment(props: SimpleInlineCommentProps): Children;
150
+ export interface GoogleStyleDocAttributeProps {
151
+ name: Children;
152
+ type?: Children;
153
+ children?: Children;
154
+ }
90
155
  //# sourceMappingURL=PyDoc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PyDoc.d.ts","sourceRoot":"","sources":["../../../src/components/PyDoc.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAmDjE,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,QAAQ,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,YAWlE;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,mBAAmB,EAAE,GAAG,MAAM,EAAE,CAAC;CAC9C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,YAoBpE;AAED,MAAM,WAAW,yBAAyB;IAC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