@alloy-js/go 0.3.1-dev.0 → 0.3.1
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.
- package/CHANGELOG.md +4 -0
- package/dist/dev/src/components/doc/comment.test.js +39 -40
- package/dist/dev/src/components/doc/comment.test.js.map +1 -1
- package/dist/dev/src/components/interface/declaration.js +16 -16
- package/dist/dev/src/components/interface/declaration.js.map +1 -1
- package/dist/dev/src/components/interface/interface.test.js +27 -28
- package/dist/dev/src/components/interface/interface.test.js.map +1 -1
- package/dist/dev/src/components/struct/declaration.js +13 -13
- package/dist/dev/src/components/struct/declaration.js.map +1 -1
- package/dist/dev/src/components/struct/struct.test.js +49 -51
- package/dist/dev/src/components/struct/struct.test.js.map +1 -1
- package/dist/dev/src/components/var/var-declaration.test.js +72 -67
- package/dist/dev/src/components/var/var-declaration.test.js.map +1 -1
- package/dist/dev/src/create-module.js.map +1 -1
- package/dist/dev/test/utils.js +5 -55
- package/dist/dev/test/utils.js.map +1 -1
- package/dist/src/components/doc/comment.test.d.ts +1 -1
- package/dist/src/components/doc/comment.test.d.ts.map +1 -1
- package/dist/src/components/doc/comment.test.js +0 -1
- package/dist/src/components/doc/comment.test.js.map +1 -1
- package/dist/src/components/interface/declaration.d.ts.map +1 -1
- package/dist/src/components/interface/declaration.js.map +1 -1
- package/dist/src/components/interface/interface.test.js +4 -5
- package/dist/src/components/interface/interface.test.js.map +1 -1
- package/dist/src/components/struct/declaration.d.ts.map +1 -1
- package/dist/src/components/struct/declaration.js.map +1 -1
- package/dist/src/components/struct/struct.test.js +6 -8
- package/dist/src/components/struct/struct.test.js.map +1 -1
- package/dist/src/components/var/var-declaration.test.d.ts +1 -1
- package/dist/src/components/var/var-declaration.test.d.ts.map +1 -1
- package/dist/src/components/var/var-declaration.test.js +16 -11
- package/dist/src/components/var/var-declaration.test.js.map +1 -1
- package/dist/src/create-module.d.ts.map +1 -1
- package/dist/src/create-module.js.map +1 -1
- package/dist/test/utils.d.ts +1 -4
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js +1 -43
- package/dist/test/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/index.md +0 -1
- package/docs/api/index.md +2 -2
- package/docs/api/types/ReferenceProps.md +7 -0
- package/docs/api/types/index.md +1 -0
- package/package.json +11 -10
- package/src/components/doc/comment.test.tsx +0 -1
- package/src/components/interface/declaration.tsx +1 -2
- package/src/components/interface/interface.test.tsx +4 -6
- package/src/components/struct/declaration.tsx +1 -2
- package/src/components/struct/struct.test.tsx +6 -10
- package/src/components/var/var-declaration.test.tsx +15 -13
- package/src/create-module.ts +12 -8
- package/temp/api.json +38 -14
- package/test/utils.tsx +1 -64
- package/tsconfig.json +1 -1
- package/tsdoc-metadata.json +1 -1
- package/vitest.config.ts +1 -0
- package/docs/api/components/Reference.md +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import { List, Prose } from "@alloy-js/core";
|
|
3
|
-
import "@alloy-js/core/testing";
|
|
4
3
|
import { d } from "@alloy-js/core/testing";
|
|
5
4
|
import { describe, expect, it } from "vitest";
|
|
6
5
|
import { BlockComment, LineComment } from "./comment.js";
|
|
@@ -10,11 +9,11 @@ describe("GoLineComment", () => {
|
|
|
10
9
|
children: "Hello!"
|
|
11
10
|
}, {
|
|
12
11
|
fileName: import.meta.url,
|
|
13
|
-
lineNumber:
|
|
12
|
+
lineNumber: 10,
|
|
14
13
|
columnNumber: 9
|
|
15
14
|
}), _$createIntrinsic("hbr", {}, {
|
|
16
15
|
fileName: import.meta.url,
|
|
17
|
-
lineNumber:
|
|
16
|
+
lineNumber: 11,
|
|
18
17
|
columnNumber: 9
|
|
19
18
|
}), "Should not be part of the comment"];
|
|
20
19
|
expect(template).toRenderTo(d`
|
|
@@ -32,27 +31,27 @@ describe("GoLineComment", () => {
|
|
|
32
31
|
get children() {
|
|
33
32
|
return ["Hello!", _$createIntrinsic("hbr", {}, {
|
|
34
33
|
fileName: import.meta.url,
|
|
35
|
-
lineNumber:
|
|
34
|
+
lineNumber: 31,
|
|
36
35
|
columnNumber: 13
|
|
37
36
|
}), _$createIntrinsic("hbr", {}, {
|
|
38
37
|
fileName: import.meta.url,
|
|
39
|
-
lineNumber:
|
|
38
|
+
lineNumber: 32,
|
|
40
39
|
columnNumber: 13
|
|
41
40
|
}), "This is another line"];
|
|
42
41
|
}
|
|
43
42
|
}, {
|
|
44
43
|
fileName: import.meta.url,
|
|
45
|
-
lineNumber:
|
|
44
|
+
lineNumber: 29,
|
|
46
45
|
columnNumber: 11
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
48
|
}, {
|
|
50
49
|
fileName: import.meta.url,
|
|
51
|
-
lineNumber:
|
|
50
|
+
lineNumber: 28,
|
|
52
51
|
columnNumber: 9
|
|
53
52
|
}), _$createIntrinsic("hbr", {}, {
|
|
54
53
|
fileName: import.meta.url,
|
|
55
|
-
lineNumber:
|
|
54
|
+
lineNumber: 36,
|
|
56
55
|
columnNumber: 9
|
|
57
56
|
}), "Hello"];
|
|
58
57
|
expect(template).toRenderTo(d`
|
|
@@ -71,31 +70,31 @@ describe("GoLineComment", () => {
|
|
|
71
70
|
children: "Hello!"
|
|
72
71
|
}, {
|
|
73
72
|
fileName: import.meta.url,
|
|
74
|
-
lineNumber:
|
|
73
|
+
lineNumber: 56,
|
|
75
74
|
columnNumber: 11
|
|
76
75
|
}), _$createIntrinsic("hbr", {}, {
|
|
77
76
|
fileName: import.meta.url,
|
|
78
|
-
lineNumber:
|
|
77
|
+
lineNumber: 57,
|
|
79
78
|
columnNumber: 11
|
|
80
79
|
}), _$createIntrinsic("hbr", {}, {
|
|
81
80
|
fileName: import.meta.url,
|
|
82
|
-
lineNumber:
|
|
81
|
+
lineNumber: 58,
|
|
83
82
|
columnNumber: 11
|
|
84
83
|
}), _$createComponent(Prose, {
|
|
85
84
|
children: "This is another line"
|
|
86
85
|
}, {
|
|
87
86
|
fileName: import.meta.url,
|
|
88
|
-
lineNumber:
|
|
87
|
+
lineNumber: 59,
|
|
89
88
|
columnNumber: 11
|
|
90
89
|
})];
|
|
91
90
|
}
|
|
92
91
|
}, {
|
|
93
92
|
fileName: import.meta.url,
|
|
94
|
-
lineNumber:
|
|
93
|
+
lineNumber: 55,
|
|
95
94
|
columnNumber: 9
|
|
96
95
|
}), _$createIntrinsic("hbr", {}, {
|
|
97
96
|
fileName: import.meta.url,
|
|
98
|
-
lineNumber:
|
|
97
|
+
lineNumber: 61,
|
|
99
98
|
columnNumber: 9
|
|
100
99
|
}), "foo should be outside the comment"];
|
|
101
100
|
expect(template).toRenderTo(d`
|
|
@@ -114,17 +113,17 @@ describe("GoLineComment", () => {
|
|
|
114
113
|
children: "This is a very long line that should be broken into multiple lines. It should also be aligned properly. The line breaks in this paragraph should not be carried over into the JSDoc comment."
|
|
115
114
|
}, {
|
|
116
115
|
fileName: import.meta.url,
|
|
117
|
-
lineNumber:
|
|
116
|
+
lineNumber: 81,
|
|
118
117
|
columnNumber: 11
|
|
119
118
|
});
|
|
120
119
|
}
|
|
121
120
|
}, {
|
|
122
121
|
fileName: import.meta.url,
|
|
123
|
-
lineNumber:
|
|
122
|
+
lineNumber: 80,
|
|
124
123
|
columnNumber: 9
|
|
125
124
|
}), _$createIntrinsic("hbr", {}, {
|
|
126
125
|
fileName: import.meta.url,
|
|
127
|
-
lineNumber:
|
|
126
|
+
lineNumber: 87,
|
|
128
127
|
columnNumber: 9
|
|
129
128
|
}), ["This should not be part of the comment"]];
|
|
130
129
|
expect(template).toRenderTo(d`
|
|
@@ -146,27 +145,27 @@ describe("GoLineComment", () => {
|
|
|
146
145
|
children: "This is a long paragraph that should end up being broken into multiple paragraphs. Moreover, the line breaks in this paragraph should not be carried over into the JSDoc comment."
|
|
147
146
|
}, {
|
|
148
147
|
fileName: import.meta.url,
|
|
149
|
-
lineNumber:
|
|
148
|
+
lineNumber: 109,
|
|
150
149
|
columnNumber: 9
|
|
151
150
|
}), _$createIntrinsic("hbr", {}, {
|
|
152
151
|
fileName: import.meta.url,
|
|
153
|
-
lineNumber:
|
|
152
|
+
lineNumber: 114,
|
|
154
153
|
columnNumber: 9
|
|
155
154
|
}), _$createIntrinsic("hbr", {}, {
|
|
156
155
|
fileName: import.meta.url,
|
|
157
|
-
lineNumber:
|
|
156
|
+
lineNumber: 115,
|
|
158
157
|
columnNumber: 9
|
|
159
158
|
}), _$createComponent(Prose, {
|
|
160
159
|
children: "This is another paragraph. There should be a couple breaks in front of it."
|
|
161
160
|
}, {
|
|
162
161
|
fileName: import.meta.url,
|
|
163
|
-
lineNumber:
|
|
162
|
+
lineNumber: 116,
|
|
164
163
|
columnNumber: 9
|
|
165
164
|
})];
|
|
166
165
|
}
|
|
167
166
|
}, {
|
|
168
167
|
fileName: import.meta.url,
|
|
169
|
-
lineNumber:
|
|
168
|
+
lineNumber: 108,
|
|
170
169
|
columnNumber: 7
|
|
171
170
|
});
|
|
172
171
|
expect(template).toRenderTo(d`
|
|
@@ -190,11 +189,11 @@ describe("GoBlockComment", () => {
|
|
|
190
189
|
children: "Hello!"
|
|
191
190
|
}, {
|
|
192
191
|
fileName: import.meta.url,
|
|
193
|
-
lineNumber:
|
|
192
|
+
lineNumber: 144,
|
|
194
193
|
columnNumber: 9
|
|
195
194
|
}), _$createIntrinsic("hbr", {}, {
|
|
196
195
|
fileName: import.meta.url,
|
|
197
|
-
lineNumber:
|
|
196
|
+
lineNumber: 145,
|
|
198
197
|
columnNumber: 9
|
|
199
198
|
}), "Should not be part of the comment"];
|
|
200
199
|
expect(template).toRenderTo(d`
|
|
@@ -216,35 +215,35 @@ describe("GoBlockComment", () => {
|
|
|
216
215
|
children: "Hello!"
|
|
217
216
|
}, {
|
|
218
217
|
fileName: import.meta.url,
|
|
219
|
-
lineNumber:
|
|
218
|
+
lineNumber: 166,
|
|
220
219
|
columnNumber: 13
|
|
221
220
|
}), _$createComponent(Prose, {
|
|
222
221
|
children: "World!"
|
|
223
222
|
}, {
|
|
224
223
|
fileName: import.meta.url,
|
|
225
|
-
lineNumber:
|
|
224
|
+
lineNumber: 167,
|
|
226
225
|
columnNumber: 13
|
|
227
226
|
}), _$createComponent(Prose, {
|
|
228
227
|
children: "This is another line"
|
|
229
228
|
}, {
|
|
230
229
|
fileName: import.meta.url,
|
|
231
|
-
lineNumber:
|
|
230
|
+
lineNumber: 168,
|
|
232
231
|
columnNumber: 13
|
|
233
232
|
})];
|
|
234
233
|
}
|
|
235
234
|
}, {
|
|
236
235
|
fileName: import.meta.url,
|
|
237
|
-
lineNumber:
|
|
236
|
+
lineNumber: 165,
|
|
238
237
|
columnNumber: 11
|
|
239
238
|
});
|
|
240
239
|
}
|
|
241
240
|
}, {
|
|
242
241
|
fileName: import.meta.url,
|
|
243
|
-
lineNumber:
|
|
242
|
+
lineNumber: 164,
|
|
244
243
|
columnNumber: 9
|
|
245
244
|
}), _$createIntrinsic("hbr", {}, {
|
|
246
245
|
fileName: import.meta.url,
|
|
247
|
-
lineNumber:
|
|
246
|
+
lineNumber: 171,
|
|
248
247
|
columnNumber: 9
|
|
249
248
|
}), "Hello"];
|
|
250
249
|
expect(template).toRenderTo(d`
|
|
@@ -267,23 +266,23 @@ describe("GoBlockComment", () => {
|
|
|
267
266
|
children: "Hello!"
|
|
268
267
|
}, {
|
|
269
268
|
fileName: import.meta.url,
|
|
270
|
-
lineNumber:
|
|
269
|
+
lineNumber: 195,
|
|
271
270
|
columnNumber: 11
|
|
272
271
|
}), _$createComponent(Prose, {
|
|
273
272
|
children: "This is another line"
|
|
274
273
|
}, {
|
|
275
274
|
fileName: import.meta.url,
|
|
276
|
-
lineNumber:
|
|
275
|
+
lineNumber: 196,
|
|
277
276
|
columnNumber: 11
|
|
278
277
|
})];
|
|
279
278
|
}
|
|
280
279
|
}, {
|
|
281
280
|
fileName: import.meta.url,
|
|
282
|
-
lineNumber:
|
|
281
|
+
lineNumber: 194,
|
|
283
282
|
columnNumber: 9
|
|
284
283
|
}), _$createIntrinsic("hbr", {}, {
|
|
285
284
|
fileName: import.meta.url,
|
|
286
|
-
lineNumber:
|
|
285
|
+
lineNumber: 198,
|
|
287
286
|
columnNumber: 9
|
|
288
287
|
}), "foo should be outside the comment"];
|
|
289
288
|
expect(template).toRenderTo(d`
|
|
@@ -304,17 +303,17 @@ describe("GoBlockComment", () => {
|
|
|
304
303
|
children: "This is a very long line that should be broken into multiple lines. It should also be aligned properly. The line breaks in this paragraph should not be carried over into the JSDoc comment."
|
|
305
304
|
}, {
|
|
306
305
|
fileName: import.meta.url,
|
|
307
|
-
lineNumber:
|
|
306
|
+
lineNumber: 220,
|
|
308
307
|
columnNumber: 11
|
|
309
308
|
});
|
|
310
309
|
}
|
|
311
310
|
}, {
|
|
312
311
|
fileName: import.meta.url,
|
|
313
|
-
lineNumber:
|
|
312
|
+
lineNumber: 219,
|
|
314
313
|
columnNumber: 9
|
|
315
314
|
}), _$createIntrinsic("hbr", {}, {
|
|
316
315
|
fileName: import.meta.url,
|
|
317
|
-
lineNumber:
|
|
316
|
+
lineNumber: 226,
|
|
318
317
|
columnNumber: 9
|
|
319
318
|
}), ["This should not be part of the comment"]];
|
|
320
319
|
expect(template).toRenderTo(d`
|
|
@@ -337,19 +336,19 @@ describe("GoBlockComment", () => {
|
|
|
337
336
|
children: "This is a long paragraph that should end up being broken into multiple paragraphs. Moreover, the line breaks in this paragraph should not be carried over into the JSDoc comment."
|
|
338
337
|
}, {
|
|
339
338
|
fileName: import.meta.url,
|
|
340
|
-
lineNumber:
|
|
339
|
+
lineNumber: 249,
|
|
341
340
|
columnNumber: 9
|
|
342
341
|
}), _$createComponent(Prose, {
|
|
343
342
|
children: "This is another paragraph. There should be a couple breaks in front of it."
|
|
344
343
|
}, {
|
|
345
344
|
fileName: import.meta.url,
|
|
346
|
-
lineNumber:
|
|
345
|
+
lineNumber: 254,
|
|
347
346
|
columnNumber: 9
|
|
348
347
|
})];
|
|
349
348
|
}
|
|
350
349
|
}, {
|
|
351
350
|
fileName: import.meta.url,
|
|
352
|
-
lineNumber:
|
|
351
|
+
lineNumber: 248,
|
|
353
352
|
columnNumber: 7
|
|
354
353
|
});
|
|
355
354
|
expect(template).toRenderTo(d`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["List","Prose","d","describe","expect","it","BlockComment","LineComment","template","_$createComponent","children","fileName","import","meta","url","lineNumber","columnNumber","_$createIntrinsic","toRenderTo","printWidth","hardline"],"sources":["../../../../../src/components/doc/comment.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,IAAI,EAAEC,KAAK,QAAQ,gBAAgB;AAC5C,
|
|
1
|
+
{"version":3,"names":["List","Prose","d","describe","expect","it","BlockComment","LineComment","template","_$createComponent","children","fileName","import","meta","url","lineNumber","columnNumber","_$createIntrinsic","toRenderTo","printWidth","hardline"],"sources":["../../../../../src/components/doc/comment.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,IAAI,EAAEC,KAAK,QAAQ,gBAAgB;AAC5C,SAASC,CAAC,QAAQ,wBAAwB;AAC1C,SAASC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,SAASC,YAAY,EAAEC,WAAW;AAElCJ,QAAQ,CAAC,eAAe,EAAE,MAAM;EAC9BE,EAAE,CAAC,mCAAmC,EAAE,MAAM;IAC5C,MAAMG,QAAQ,IAAAC,iBAAA,CAETF,WAAW;MAAAG,QAAA;IAAA;MAAAC,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,IAAAC,iBAAA;MAAAN,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,wCAIf;IAEDZ,MAAM,CAACI,QAAQ,CAAC,CAACU,UAAU,CACzBhB,CAAC;AACP;AACA;AACA,OAA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U,EAAE;IAAG,CACnB,CAAC;EACH,CAAC,CAAC;EAEFd,EAAE,CAAC,kBAAkB,EAAE,MAAM;IAC3B,MAAMG,QAAQ,GAAAC,iBAAA,CACXH,YAAY;MAAA,IAAAI,SAAA;QAAA,QAAAD,iBAAA,CACVR,KAAK;UAAAS,QAAA;QAAA;UAAAC,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA,IAAAP,iBAAA,CAKLR,KAAK;UAAAS,QAAA;QAAA;UAAAC,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;UAAAC,UAAA;UAAAC,YAAA;QAAA;MAAA;IAAA;MAAAL,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,EAKT;IAEDZ,MAAM,CAACI,QAAQ,CAAC,CAACU,UAAU,CACzBhB,CAAC;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,EACD;MAAEiB,UAAU,EAAE;IAAG,CACnB,CAAC;EACH,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -28,13 +28,13 @@ export function InterfaceTypeDeclaration(props) {
|
|
|
28
28
|
get children() {
|
|
29
29
|
return _$createComponent(InterfaceDeclaration, props, {
|
|
30
30
|
fileName: import.meta.url,
|
|
31
|
-
lineNumber:
|
|
31
|
+
lineNumber: 67,
|
|
32
32
|
columnNumber: 7
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}), {
|
|
36
36
|
fileName: import.meta.url,
|
|
37
|
-
lineNumber:
|
|
37
|
+
lineNumber: 66,
|
|
38
38
|
columnNumber: 5
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -86,7 +86,7 @@ export function InterfaceDeclaration(props) {
|
|
|
86
86
|
}
|
|
87
87
|
}, {
|
|
88
88
|
fileName: import.meta.url,
|
|
89
|
-
lineNumber:
|
|
89
|
+
lineNumber: 126,
|
|
90
90
|
columnNumber: 13
|
|
91
91
|
})];
|
|
92
92
|
}
|
|
@@ -99,7 +99,7 @@ export function InterfaceDeclaration(props) {
|
|
|
99
99
|
children: content
|
|
100
100
|
}, {
|
|
101
101
|
fileName: import.meta.url,
|
|
102
|
-
lineNumber:
|
|
102
|
+
lineNumber: 139,
|
|
103
103
|
columnNumber: 9
|
|
104
104
|
}) : content];
|
|
105
105
|
}
|
|
@@ -125,21 +125,21 @@ export function InterfaceFunction(props) {
|
|
|
125
125
|
}
|
|
126
126
|
}, {
|
|
127
127
|
fileName: import.meta.url,
|
|
128
|
-
lineNumber:
|
|
128
|
+
lineNumber: 164,
|
|
129
129
|
columnNumber: 11
|
|
130
130
|
}), _$createIntrinsic("hbr", {}, {
|
|
131
131
|
fileName: import.meta.url,
|
|
132
|
-
lineNumber:
|
|
132
|
+
lineNumber: 165,
|
|
133
133
|
columnNumber: 11
|
|
134
134
|
})];
|
|
135
135
|
}
|
|
136
136
|
}, {
|
|
137
137
|
fileName: import.meta.url,
|
|
138
|
-
lineNumber:
|
|
138
|
+
lineNumber: 163,
|
|
139
139
|
columnNumber: 9
|
|
140
140
|
}), "func ", _$createComponent(Name, {}, {
|
|
141
141
|
fileName: import.meta.url,
|
|
142
|
-
lineNumber:
|
|
142
|
+
lineNumber: 167,
|
|
143
143
|
columnNumber: 14
|
|
144
144
|
}), _$createComponent(FunctionParameters, {
|
|
145
145
|
get parameters() {
|
|
@@ -147,19 +147,19 @@ export function InterfaceFunction(props) {
|
|
|
147
147
|
}
|
|
148
148
|
}, {
|
|
149
149
|
fileName: import.meta.url,
|
|
150
|
-
lineNumber:
|
|
150
|
+
lineNumber: 168,
|
|
151
151
|
columnNumber: 9
|
|
152
152
|
}), _$memo(() => _$memo(() => !!props.returns)() ? [" ", _$memo(() => props.returns, false, "props.returns")] : null, false, "_$memo(\u2026)(\u2026) ? \u2026")];
|
|
153
153
|
}
|
|
154
154
|
}, {
|
|
155
155
|
fileName: import.meta.url,
|
|
156
|
-
lineNumber:
|
|
156
|
+
lineNumber: 162,
|
|
157
157
|
columnNumber: 7
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
}, {
|
|
161
161
|
fileName: import.meta.url,
|
|
162
|
-
lineNumber:
|
|
162
|
+
lineNumber: 161,
|
|
163
163
|
columnNumber: 5
|
|
164
164
|
});
|
|
165
165
|
}
|
|
@@ -198,23 +198,23 @@ export function InterfaceEmbed(props) {
|
|
|
198
198
|
}
|
|
199
199
|
}, {
|
|
200
200
|
fileName: import.meta.url,
|
|
201
|
-
lineNumber:
|
|
201
|
+
lineNumber: 214,
|
|
202
202
|
columnNumber: 9
|
|
203
203
|
}), _$createIntrinsic("hbr", {}, {
|
|
204
204
|
fileName: import.meta.url,
|
|
205
|
-
lineNumber:
|
|
205
|
+
lineNumber: 215,
|
|
206
206
|
columnNumber: 9
|
|
207
207
|
})];
|
|
208
208
|
}
|
|
209
209
|
}, {
|
|
210
210
|
fileName: import.meta.url,
|
|
211
|
-
lineNumber:
|
|
211
|
+
lineNumber: 213,
|
|
212
212
|
columnNumber: 7
|
|
213
213
|
}), _$memo(() => props.children, false, "props.children")];
|
|
214
214
|
}
|
|
215
215
|
}, {
|
|
216
216
|
fileName: import.meta.url,
|
|
217
|
-
lineNumber:
|
|
217
|
+
lineNumber: 212,
|
|
218
218
|
columnNumber: 5
|
|
219
219
|
});
|
|
220
220
|
}
|
|
@@ -238,7 +238,7 @@ export function TypeConstraint(props) {
|
|
|
238
238
|
children: constraint => [constraint]
|
|
239
239
|
}, {
|
|
240
240
|
fileName: import.meta.url,
|
|
241
|
-
lineNumber:
|
|
241
|
+
lineNumber: 245,
|
|
242
242
|
columnNumber: 5
|
|
243
243
|
});
|
|
244
244
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Block","Declaration","DeclarationContext","effect","For","memo","Scope","Show","takeSymbols","useContext","watch","useGoScope","useNamedTypeScope","createFunctionScope","createNamedTypeScope","GoNamedTypeScope","createAnonymousTypeSymbol","createInterfaceMemberSymbol","LineComment","Name","FunctionParameters","TypeDeclaration","InterfaceTypeDeclaration","props","_$createComponent","_$mergeProps","children","InterfaceDeclaration","fileName","import","meta","url","lineNumber","columnNumber","scope","interfaceScope","ownerSymbol","typeKind","declSymbol","anonymousSymbol","anonymousScope","content","singleLine","_$memo","value","InterfaceFunction","symbol","name","refkeys","refkey","functionScope","when","Boolean","doc","_$createIntrinsic","parameters","returns","InterfaceEmbed","typeName","memberSymbol","taken","size","Array","from","namedTypeScope","copyMembersTo","TypeConstraint","constraints","length","push","Error","each","joiner","constraint"],"sources":["../../../../../src/components/interface/declaration.tsx"],"sourcesContent":[null],"mappings":";AAAA,SACEA,KAAK,EAELC,WAAW,EACXC,kBAAkB,EAClBC,MAAM,EACNC,GAAG,EACHC,IAAI,EAGJC,KAAK,EACLC,IAAI,EACJC,WAAW,EACXC,UAAU,EACVC,KAAK,QACA,gBAAgB;AACvB,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,0BAA0B;AACxE,SACEC,mBAAmB,EACnBC,oBAAoB,QACf,2BAA2B;AAClC,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,yBAAyB,EACzBC,2BAA2B,QACtB,4BAA4B;AAGnC,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAEEC,kBAAkB,QACb,6BAA6B;AACpC,SAASC,eAAe;;AAExB;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["Block","Declaration","DeclarationContext","effect","For","memo","Scope","Show","takeSymbols","useContext","watch","useGoScope","useNamedTypeScope","createFunctionScope","createNamedTypeScope","GoNamedTypeScope","createAnonymousTypeSymbol","createInterfaceMemberSymbol","LineComment","Name","FunctionParameters","TypeDeclaration","InterfaceTypeDeclaration","props","_$createComponent","_$mergeProps","children","InterfaceDeclaration","fileName","import","meta","url","lineNumber","columnNumber","scope","interfaceScope","ownerSymbol","typeKind","declSymbol","anonymousSymbol","anonymousScope","content","singleLine","_$memo","value","InterfaceFunction","symbol","name","refkeys","refkey","functionScope","when","Boolean","doc","_$createIntrinsic","parameters","returns","InterfaceEmbed","typeName","memberSymbol","taken","size","Array","from","namedTypeScope","copyMembersTo","TypeConstraint","constraints","length","push","Error","each","joiner","constraint"],"sources":["../../../../../src/components/interface/declaration.tsx"],"sourcesContent":[null],"mappings":";AAAA,SACEA,KAAK,EAELC,WAAW,EACXC,kBAAkB,EAClBC,MAAM,EACNC,GAAG,EACHC,IAAI,EAGJC,KAAK,EACLC,IAAI,EACJC,WAAW,EACXC,UAAU,EACVC,KAAK,QACA,gBAAgB;AACvB,SAASC,UAAU,EAAEC,iBAAiB,QAAQ,0BAA0B;AACxE,SACEC,mBAAmB,EACnBC,oBAAoB,QACf,2BAA2B;AAClC,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,yBAAyB,EACzBC,2BAA2B,QACtB,4BAA4B;AAGnC,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,IAAI,QAAQ,YAAY;AACjC,SAEEC,kBAAkB,QACb,6BAA6B;AACpC,SAASC,eAAe;;AAExB;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA,OAAO,SAASC,wBAAwBA,CAACC,KAAoC,EAAE;EAC7E,OAAAC,iBAAA,CACGH,eAAe,EAAAI,YAAA,CAAKF,KAAK;IAAA,IAAAG,SAAA;MAAA,OAAAF,iBAAA,CACvBG,oBAAoB,EAAKJ,KAAK;QAAAK,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;QAAAC,UAAA;QAAAC,YAAA;MAAA;IAAA;EAAA;IAAAL,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA;AAGrC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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IAAI4C,KAAK,CACb,2DACF,CAAC;IACH;IACAH,WAAW,CAACE,IAAI,CAAC,GAAG9C,KAAK,CAAC4C,WAAW,CAAC;EACxC;EAEA,OAAA3C,iBAAA,CACGpB,GAAG;IAACmE,IAAI,EAAEJ,WAAW;IAAEK,MAAM;IAAA9C,QAAA,EAC1B+C,UAAU,KAAQA,UAAU;EAAI;IAAA7C,QAAA,EAAAC,MAAA,CAAAC,IAAA,CAAAC,GAAA;IAAAC,UAAA;IAAAC,YAAA;EAAA;AAGxC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import { List, Output, refkey
|
|
2
|
+
import { List, Output, refkey } from "@alloy-js/core";
|
|
3
3
|
import { describe, expect, it } from "vitest";
|
|
4
|
-
import {
|
|
4
|
+
import { TestPackage } from "../../../test/utils.js";
|
|
5
5
|
import { ModuleDirectory } from "../ModuleDirectory.js";
|
|
6
6
|
import { SourceDirectory } from "../SourceDirectory.js";
|
|
7
7
|
import { SourceFile } from "../SourceFile.js";
|
|
@@ -495,7 +495,7 @@ describe("embedded", () => {
|
|
|
495
495
|
it("embed using cross-package refkey", () => {
|
|
496
496
|
const TestInterface = refkey("TestInterface");
|
|
497
497
|
const TestInterfaceEmbed = refkey("TestInterfaceEmbed");
|
|
498
|
-
|
|
498
|
+
expect(_$createComponent(Output, {
|
|
499
499
|
get children() {
|
|
500
500
|
return _$createComponent(ModuleDirectory, {
|
|
501
501
|
name: "github.com/alloy-framework/alloy",
|
|
@@ -624,8 +624,7 @@ describe("embedded", () => {
|
|
|
624
624
|
fileName: import.meta.url,
|
|
625
625
|
lineNumber: 264,
|
|
626
626
|
columnNumber: 7
|
|
627
|
-
}))
|
|
628
|
-
assertFileContents(res, {
|
|
627
|
+
})).toRenderTo({
|
|
629
628
|
"hello/types.go": `
|
|
630
629
|
package hello
|
|
631
630
|
|
|
@@ -665,29 +664,29 @@ describe("constraints", () => {
|
|
|
665
664
|
returns: "string"
|
|
666
665
|
}, {
|
|
667
666
|
fileName: import.meta.url,
|
|
668
|
-
lineNumber:
|
|
667
|
+
lineNumber: 326,
|
|
669
668
|
columnNumber: 15
|
|
670
669
|
});
|
|
671
670
|
}
|
|
672
671
|
}, {
|
|
673
672
|
fileName: import.meta.url,
|
|
674
|
-
lineNumber:
|
|
673
|
+
lineNumber: 325,
|
|
675
674
|
columnNumber: 13
|
|
676
675
|
});
|
|
677
676
|
}
|
|
678
677
|
}, {
|
|
679
678
|
fileName: import.meta.url,
|
|
680
|
-
lineNumber:
|
|
679
|
+
lineNumber: 324,
|
|
681
680
|
columnNumber: 11
|
|
682
681
|
});
|
|
683
682
|
}
|
|
684
683
|
}, {
|
|
685
684
|
fileName: import.meta.url,
|
|
686
|
-
lineNumber:
|
|
685
|
+
lineNumber: 323,
|
|
687
686
|
columnNumber: 9
|
|
688
687
|
}), _$createIntrinsic("hbr", {}, {
|
|
689
688
|
fileName: import.meta.url,
|
|
690
|
-
lineNumber:
|
|
689
|
+
lineNumber: 330,
|
|
691
690
|
columnNumber: 9
|
|
692
691
|
}), _$createComponent(TypeDeclaration, {
|
|
693
692
|
name: "TestInterface2",
|
|
@@ -700,38 +699,38 @@ describe("constraints", () => {
|
|
|
700
699
|
children: TestInterface
|
|
701
700
|
}, {
|
|
702
701
|
fileName: import.meta.url,
|
|
703
|
-
lineNumber:
|
|
702
|
+
lineNumber: 334,
|
|
704
703
|
columnNumber: 15
|
|
705
704
|
}), _$createComponent(InterfaceFunction, {
|
|
706
705
|
name: "MemberOne",
|
|
707
706
|
returns: "string"
|
|
708
707
|
}, {
|
|
709
708
|
fileName: import.meta.url,
|
|
710
|
-
lineNumber:
|
|
709
|
+
lineNumber: 335,
|
|
711
710
|
columnNumber: 15
|
|
712
711
|
})];
|
|
713
712
|
}
|
|
714
713
|
}, {
|
|
715
714
|
fileName: import.meta.url,
|
|
716
|
-
lineNumber:
|
|
715
|
+
lineNumber: 333,
|
|
717
716
|
columnNumber: 13
|
|
718
717
|
});
|
|
719
718
|
}
|
|
720
719
|
}, {
|
|
721
720
|
fileName: import.meta.url,
|
|
722
|
-
lineNumber:
|
|
721
|
+
lineNumber: 332,
|
|
723
722
|
columnNumber: 11
|
|
724
723
|
});
|
|
725
724
|
}
|
|
726
725
|
}, {
|
|
727
726
|
fileName: import.meta.url,
|
|
728
|
-
lineNumber:
|
|
727
|
+
lineNumber: 331,
|
|
729
728
|
columnNumber: 9
|
|
730
729
|
})];
|
|
731
730
|
}
|
|
732
731
|
}, {
|
|
733
732
|
fileName: import.meta.url,
|
|
734
|
-
lineNumber:
|
|
733
|
+
lineNumber: 322,
|
|
735
734
|
columnNumber: 7
|
|
736
735
|
})).toRenderTo(`
|
|
737
736
|
package alloy
|
|
@@ -762,29 +761,29 @@ describe("constraints", () => {
|
|
|
762
761
|
returns: "string"
|
|
763
762
|
}, {
|
|
764
763
|
fileName: import.meta.url,
|
|
765
|
-
lineNumber:
|
|
764
|
+
lineNumber: 360,
|
|
766
765
|
columnNumber: 15
|
|
767
766
|
});
|
|
768
767
|
}
|
|
769
768
|
}, {
|
|
770
769
|
fileName: import.meta.url,
|
|
771
|
-
lineNumber:
|
|
770
|
+
lineNumber: 359,
|
|
772
771
|
columnNumber: 13
|
|
773
772
|
});
|
|
774
773
|
}
|
|
775
774
|
}, {
|
|
776
775
|
fileName: import.meta.url,
|
|
777
|
-
lineNumber:
|
|
776
|
+
lineNumber: 358,
|
|
778
777
|
columnNumber: 11
|
|
779
778
|
});
|
|
780
779
|
}
|
|
781
780
|
}, {
|
|
782
781
|
fileName: import.meta.url,
|
|
783
|
-
lineNumber:
|
|
782
|
+
lineNumber: 357,
|
|
784
783
|
columnNumber: 9
|
|
785
784
|
}), _$createIntrinsic("hbr", {}, {
|
|
786
785
|
fileName: import.meta.url,
|
|
787
|
-
lineNumber:
|
|
786
|
+
lineNumber: 364,
|
|
788
787
|
columnNumber: 9
|
|
789
788
|
}), _$createComponent(TypeDeclaration, {
|
|
790
789
|
name: "TestInterface2",
|
|
@@ -797,44 +796,44 @@ describe("constraints", () => {
|
|
|
797
796
|
children: TestInterface
|
|
798
797
|
}, {
|
|
799
798
|
fileName: import.meta.url,
|
|
800
|
-
lineNumber:
|
|
799
|
+
lineNumber: 368,
|
|
801
800
|
columnNumber: 15
|
|
802
801
|
}), _$createComponent(TypeConstraint, {
|
|
803
802
|
constraints: [TestInterface, "string", "~int"]
|
|
804
803
|
}, {
|
|
805
804
|
fileName: import.meta.url,
|
|
806
|
-
lineNumber:
|
|
805
|
+
lineNumber: 369,
|
|
807
806
|
columnNumber: 15
|
|
808
807
|
}), _$createComponent(InterfaceFunction, {
|
|
809
808
|
name: "MemberOne",
|
|
810
809
|
returns: "string"
|
|
811
810
|
}, {
|
|
812
811
|
fileName: import.meta.url,
|
|
813
|
-
lineNumber:
|
|
812
|
+
lineNumber: 370,
|
|
814
813
|
columnNumber: 15
|
|
815
814
|
})];
|
|
816
815
|
}
|
|
817
816
|
}, {
|
|
818
817
|
fileName: import.meta.url,
|
|
819
|
-
lineNumber:
|
|
818
|
+
lineNumber: 367,
|
|
820
819
|
columnNumber: 13
|
|
821
820
|
});
|
|
822
821
|
}
|
|
823
822
|
}, {
|
|
824
823
|
fileName: import.meta.url,
|
|
825
|
-
lineNumber:
|
|
824
|
+
lineNumber: 366,
|
|
826
825
|
columnNumber: 11
|
|
827
826
|
});
|
|
828
827
|
}
|
|
829
828
|
}, {
|
|
830
829
|
fileName: import.meta.url,
|
|
831
|
-
lineNumber:
|
|
830
|
+
lineNumber: 365,
|
|
832
831
|
columnNumber: 9
|
|
833
832
|
})];
|
|
834
833
|
}
|
|
835
834
|
}, {
|
|
836
835
|
fileName: import.meta.url,
|
|
837
|
-
lineNumber:
|
|
836
|
+
lineNumber: 356,
|
|
838
837
|
columnNumber: 7
|
|
839
838
|
})).toRenderTo(`
|
|
840
839
|
package alloy
|