jsii-rosetta 1.67.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -85,7 +85,7 @@ export declare function voidExpressionString(node: ts.VoidExpression): string |
|
|
|
85
85
|
export declare function extractVoidExpression(node: ts.Node): ts.VoidExpression | undefined;
|
|
86
86
|
export declare function quoteStringLiteral(x: string): string;
|
|
87
87
|
export declare function visibility(x: ts.PropertyLikeDeclaration | ts.FunctionLikeDeclarationBase): "private" | "protected" | "public";
|
|
88
|
-
export declare const isReadOnly: (x: ts.
|
|
88
|
+
export declare const isReadOnly: (x: ts.PropertyLikeDeclaration | ts.FunctionLikeDeclarationBase) => boolean;
|
|
89
89
|
export declare const isExported: (x: ts.Declaration) => boolean;
|
|
90
90
|
export declare const isPrivate: (x: ts.Declaration) => boolean;
|
|
91
91
|
export declare const isProtected: (x: ts.Declaration) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsii-rosetta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.69.0",
|
|
4
4
|
"description": "Translate TypeScript code snippets to other languages",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"@types/mock-fs": "^4.13.1",
|
|
21
21
|
"@types/workerpool": "^6.1.0",
|
|
22
22
|
"@types/semver": "^7.3.12",
|
|
23
|
-
"jsii-build-tools": "1.
|
|
23
|
+
"jsii-build-tools": "1.69.0",
|
|
24
24
|
"memory-streams": "^0.1.3",
|
|
25
25
|
"mock-fs": "^5.1.4"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@jsii/check-node": "1.
|
|
29
|
-
"@jsii/spec": "1.
|
|
28
|
+
"@jsii/check-node": "1.69.0",
|
|
29
|
+
"@jsii/spec": "1.69.0",
|
|
30
30
|
"commonmark": "^0.30.0",
|
|
31
31
|
"typescript": "~3.9.10",
|
|
32
32
|
"@xmldom/xmldom": "^0.8.2",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"yargs": "^16.2.0",
|
|
35
35
|
"semver": "^7.3.7",
|
|
36
36
|
"semver-intersect": "^1.4.0",
|
|
37
|
-
"fast-glob": "^3.2.
|
|
38
|
-
"jsii": "1.
|
|
37
|
+
"fast-glob": "^3.2.12",
|
|
38
|
+
"jsii": "1.69.0"
|
|
39
39
|
},
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"author": {
|
|
@@ -108,10 +108,10 @@ export class ClassName implements IInterface {
|
|
|
108
108
|
jsiiVersion: expect.any(String),
|
|
109
109
|
targets: expect.any(Object),
|
|
110
110
|
}, `
|
|
111
|
-
|
|
112
|
-
"author":
|
|
111
|
+
{
|
|
112
|
+
"author": {
|
|
113
113
|
"name": "John Doe",
|
|
114
|
-
"roles":
|
|
114
|
+
"roles": [
|
|
115
115
|
"author",
|
|
116
116
|
],
|
|
117
117
|
},
|
|
@@ -120,101 +120,101 @@ export class ClassName implements IInterface {
|
|
|
120
120
|
"homepage": "https://github.com/aws/jsii.git",
|
|
121
121
|
"jsiiVersion": Any<String>,
|
|
122
122
|
"license": "Apache-2.0",
|
|
123
|
-
"metadata":
|
|
124
|
-
"jsii":
|
|
125
|
-
"pacmak":
|
|
123
|
+
"metadata": {
|
|
124
|
+
"jsii": {
|
|
125
|
+
"pacmak": {
|
|
126
126
|
"hasDefaultInterfaces": true,
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
130
|
"name": "testpkg",
|
|
131
|
-
"readme":
|
|
131
|
+
"readme": {
|
|
132
132
|
"markdown": "# README
|
|
133
133
|
|
|
134
134
|
\`\`\`csharp
|
|
135
|
-
IInterface object = new ClassName(
|
|
135
|
+
IInterface object = new ClassName("this", 1337, new ClassNameProps { Foo = "bar" });
|
|
136
136
|
object.Property = EnumType.OPTION_A;
|
|
137
137
|
object.MethodCall();
|
|
138
138
|
|
|
139
139
|
ClassName.StaticMethod(EnumType.OPTION_B);
|
|
140
140
|
\`\`\`",
|
|
141
141
|
},
|
|
142
|
-
"repository":
|
|
142
|
+
"repository": {
|
|
143
143
|
"type": "git",
|
|
144
144
|
"url": "https://github.com/aws/jsii.git",
|
|
145
145
|
},
|
|
146
146
|
"schema": "jsii/0.10.0",
|
|
147
147
|
"targets": Any<Object>,
|
|
148
|
-
"types":
|
|
149
|
-
"testpkg.ClassName":
|
|
148
|
+
"types": {
|
|
149
|
+
"testpkg.ClassName": {
|
|
150
150
|
"assembly": "testpkg",
|
|
151
151
|
"fqn": "testpkg.ClassName",
|
|
152
|
-
"initializer":
|
|
153
|
-
"docs":
|
|
154
|
-
"example": "new ClassName(
|
|
152
|
+
"initializer": {
|
|
153
|
+
"docs": {
|
|
154
|
+
"example": "new ClassName("this", 1337, new ClassNameProps { Property = EnumType.OPTION_B });",
|
|
155
155
|
"summary": "Create a new instance of ClassName.",
|
|
156
156
|
},
|
|
157
|
-
"locationInModule":
|
|
157
|
+
"locationInModule": {
|
|
158
158
|
"filename": "index.ts",
|
|
159
159
|
"line": 57,
|
|
160
160
|
},
|
|
161
|
-
"parameters":
|
|
162
|
-
|
|
161
|
+
"parameters": [
|
|
162
|
+
{
|
|
163
163
|
"name": "_this",
|
|
164
|
-
"type":
|
|
164
|
+
"type": {
|
|
165
165
|
"primitive": "string",
|
|
166
166
|
},
|
|
167
167
|
},
|
|
168
|
-
|
|
168
|
+
{
|
|
169
169
|
"name": "_elite",
|
|
170
|
-
"type":
|
|
170
|
+
"type": {
|
|
171
171
|
"primitive": "number",
|
|
172
172
|
},
|
|
173
173
|
},
|
|
174
|
-
|
|
174
|
+
{
|
|
175
175
|
"name": "props",
|
|
176
|
-
"type":
|
|
176
|
+
"type": {
|
|
177
177
|
"fqn": "testpkg.ClassNameProps",
|
|
178
178
|
},
|
|
179
179
|
},
|
|
180
180
|
],
|
|
181
181
|
},
|
|
182
|
-
"interfaces":
|
|
182
|
+
"interfaces": [
|
|
183
183
|
"testpkg.IInterface",
|
|
184
184
|
],
|
|
185
185
|
"kind": "class",
|
|
186
|
-
"locationInModule":
|
|
186
|
+
"locationInModule": {
|
|
187
187
|
"filename": "index.ts",
|
|
188
188
|
"line": 40,
|
|
189
189
|
},
|
|
190
|
-
"methods":
|
|
191
|
-
|
|
192
|
-
"docs":
|
|
190
|
+
"methods": [
|
|
191
|
+
{
|
|
192
|
+
"docs": {
|
|
193
193
|
"example": "ClassName.StaticMethod();",
|
|
194
194
|
"remarks": "It can be invoked easily.",
|
|
195
195
|
"summary": "A static method.",
|
|
196
196
|
},
|
|
197
|
-
"locationInModule":
|
|
197
|
+
"locationInModule": {
|
|
198
198
|
"filename": "index.ts",
|
|
199
199
|
"line": 46,
|
|
200
200
|
},
|
|
201
201
|
"name": "staticMethod",
|
|
202
|
-
"parameters":
|
|
203
|
-
|
|
202
|
+
"parameters": [
|
|
203
|
+
{
|
|
204
204
|
"name": "_enm",
|
|
205
205
|
"optional": true,
|
|
206
|
-
"type":
|
|
206
|
+
"type": {
|
|
207
207
|
"fqn": "testpkg.EnumType",
|
|
208
208
|
},
|
|
209
209
|
},
|
|
210
210
|
],
|
|
211
211
|
"static": true,
|
|
212
212
|
},
|
|
213
|
-
|
|
214
|
-
"docs":
|
|
213
|
+
{
|
|
214
|
+
"docs": {
|
|
215
215
|
"summary": "An instance method call.",
|
|
216
216
|
},
|
|
217
|
-
"locationInModule":
|
|
217
|
+
"locationInModule": {
|
|
218
218
|
"filename": "index.ts",
|
|
219
219
|
"line": 61,
|
|
220
220
|
},
|
|
@@ -223,85 +223,85 @@ export class ClassName implements IInterface {
|
|
|
223
223
|
},
|
|
224
224
|
],
|
|
225
225
|
"name": "ClassName",
|
|
226
|
-
"properties":
|
|
227
|
-
|
|
228
|
-
"docs":
|
|
226
|
+
"properties": [
|
|
227
|
+
{
|
|
228
|
+
"docs": {
|
|
229
229
|
"summary": "A property value.",
|
|
230
230
|
},
|
|
231
|
-
"locationInModule":
|
|
231
|
+
"locationInModule": {
|
|
232
232
|
"filename": "index.ts",
|
|
233
233
|
"line": 50,
|
|
234
234
|
},
|
|
235
235
|
"name": "property",
|
|
236
236
|
"overrides": "testpkg.IInterface",
|
|
237
|
-
"type":
|
|
237
|
+
"type": {
|
|
238
238
|
"fqn": "testpkg.EnumType",
|
|
239
239
|
},
|
|
240
240
|
},
|
|
241
241
|
],
|
|
242
242
|
"symbolId": "index:ClassName",
|
|
243
243
|
},
|
|
244
|
-
"testpkg.ClassNameProps":
|
|
244
|
+
"testpkg.ClassNameProps": {
|
|
245
245
|
"assembly": "testpkg",
|
|
246
246
|
"datatype": true,
|
|
247
247
|
"fqn": "testpkg.ClassNameProps",
|
|
248
248
|
"kind": "interface",
|
|
249
|
-
"locationInModule":
|
|
249
|
+
"locationInModule": {
|
|
250
250
|
"filename": "index.ts",
|
|
251
251
|
"line": 35,
|
|
252
252
|
},
|
|
253
253
|
"name": "ClassNameProps",
|
|
254
|
-
"properties":
|
|
255
|
-
|
|
254
|
+
"properties": [
|
|
255
|
+
{
|
|
256
256
|
"abstract": true,
|
|
257
257
|
"immutable": true,
|
|
258
|
-
"locationInModule":
|
|
258
|
+
"locationInModule": {
|
|
259
259
|
"filename": "index.ts",
|
|
260
260
|
"line": 37,
|
|
261
261
|
},
|
|
262
262
|
"name": "foo",
|
|
263
263
|
"optional": true,
|
|
264
|
-
"type":
|
|
264
|
+
"type": {
|
|
265
265
|
"primitive": "string",
|
|
266
266
|
},
|
|
267
267
|
},
|
|
268
|
-
|
|
268
|
+
{
|
|
269
269
|
"abstract": true,
|
|
270
270
|
"immutable": true,
|
|
271
|
-
"locationInModule":
|
|
271
|
+
"locationInModule": {
|
|
272
272
|
"filename": "index.ts",
|
|
273
273
|
"line": 36,
|
|
274
274
|
},
|
|
275
275
|
"name": "property",
|
|
276
276
|
"optional": true,
|
|
277
|
-
"type":
|
|
277
|
+
"type": {
|
|
278
278
|
"fqn": "testpkg.EnumType",
|
|
279
279
|
},
|
|
280
280
|
},
|
|
281
281
|
],
|
|
282
282
|
"symbolId": "index:ClassNameProps",
|
|
283
283
|
},
|
|
284
|
-
"testpkg.EnumType":
|
|
284
|
+
"testpkg.EnumType": {
|
|
285
285
|
"assembly": "testpkg",
|
|
286
|
-
"docs":
|
|
287
|
-
"example": "new ClassName(
|
|
286
|
+
"docs": {
|
|
287
|
+
"example": "new ClassName("this", 1337, new ClassNameProps { Property = EnumType.OPTION_B });",
|
|
288
288
|
},
|
|
289
289
|
"fqn": "testpkg.EnumType",
|
|
290
290
|
"kind": "enum",
|
|
291
|
-
"locationInModule":
|
|
291
|
+
"locationInModule": {
|
|
292
292
|
"filename": "index.ts",
|
|
293
293
|
"line": 5,
|
|
294
294
|
},
|
|
295
|
-
"members":
|
|
296
|
-
|
|
297
|
-
"docs":
|
|
298
|
-
"example": "new ClassName(
|
|
295
|
+
"members": [
|
|
296
|
+
{
|
|
297
|
+
"docs": {
|
|
298
|
+
"example": "new ClassName("this", 1337, new ClassNameProps { Property = EnumType.OPTION_A });",
|
|
299
299
|
},
|
|
300
300
|
"name": "OPTION_A",
|
|
301
301
|
},
|
|
302
|
-
|
|
303
|
-
"docs":
|
|
304
|
-
"example": "new ClassName(
|
|
302
|
+
{
|
|
303
|
+
"docs": {
|
|
304
|
+
"example": "new ClassName("this", 1337, new ClassNameProps { Property = EnumType.OPTION_B });",
|
|
305
305
|
},
|
|
306
306
|
"name": "OPTION_B",
|
|
307
307
|
},
|
|
@@ -309,22 +309,22 @@ export class ClassName implements IInterface {
|
|
|
309
309
|
"name": "EnumType",
|
|
310
310
|
"symbolId": "index:EnumType",
|
|
311
311
|
},
|
|
312
|
-
"testpkg.IInterface":
|
|
312
|
+
"testpkg.IInterface": {
|
|
313
313
|
"assembly": "testpkg",
|
|
314
314
|
"fqn": "testpkg.IInterface",
|
|
315
315
|
"kind": "interface",
|
|
316
|
-
"locationInModule":
|
|
316
|
+
"locationInModule": {
|
|
317
317
|
"filename": "index.ts",
|
|
318
318
|
"line": 17,
|
|
319
319
|
},
|
|
320
|
-
"methods":
|
|
321
|
-
|
|
320
|
+
"methods": [
|
|
321
|
+
{
|
|
322
322
|
"abstract": true,
|
|
323
|
-
"docs":
|
|
323
|
+
"docs": {
|
|
324
324
|
"example": "iface.MethodCall();",
|
|
325
325
|
"summary": "An instance method call.",
|
|
326
326
|
},
|
|
327
|
-
"locationInModule":
|
|
327
|
+
"locationInModule": {
|
|
328
328
|
"filename": "index.ts",
|
|
329
329
|
"line": 32,
|
|
330
330
|
},
|
|
@@ -332,19 +332,19 @@ export class ClassName implements IInterface {
|
|
|
332
332
|
},
|
|
333
333
|
],
|
|
334
334
|
"name": "IInterface",
|
|
335
|
-
"properties":
|
|
336
|
-
|
|
335
|
+
"properties": [
|
|
336
|
+
{
|
|
337
337
|
"abstract": true,
|
|
338
|
-
"docs":
|
|
338
|
+
"docs": {
|
|
339
339
|
"example": "iface.Property = EnumType.OPTION_B;",
|
|
340
340
|
"summary": "A property value.",
|
|
341
341
|
},
|
|
342
|
-
"locationInModule":
|
|
342
|
+
"locationInModule": {
|
|
343
343
|
"filename": "index.ts",
|
|
344
344
|
"line": 24,
|
|
345
345
|
},
|
|
346
346
|
"name": "property",
|
|
347
|
-
"type":
|
|
347
|
+
"type": {
|
|
348
348
|
"fqn": "testpkg.EnumType",
|
|
349
349
|
},
|
|
350
350
|
},
|
|
@@ -360,10 +360,10 @@ export class ClassName implements IInterface {
|
|
|
360
360
|
jsiiVersion: expect.any(String),
|
|
361
361
|
targets: expect.any(Object),
|
|
362
362
|
}, `
|
|
363
|
-
|
|
364
|
-
"author":
|
|
363
|
+
{
|
|
364
|
+
"author": {
|
|
365
365
|
"name": "John Doe",
|
|
366
|
-
"roles":
|
|
366
|
+
"roles": [
|
|
367
367
|
"author",
|
|
368
368
|
],
|
|
369
369
|
},
|
|
@@ -372,101 +372,101 @@ export class ClassName implements IInterface {
|
|
|
372
372
|
"homepage": "https://github.com/aws/jsii.git",
|
|
373
373
|
"jsiiVersion": Any<String>,
|
|
374
374
|
"license": "Apache-2.0",
|
|
375
|
-
"metadata":
|
|
376
|
-
"jsii":
|
|
377
|
-
"pacmak":
|
|
375
|
+
"metadata": {
|
|
376
|
+
"jsii": {
|
|
377
|
+
"pacmak": {
|
|
378
378
|
"hasDefaultInterfaces": true,
|
|
379
379
|
},
|
|
380
380
|
},
|
|
381
381
|
},
|
|
382
382
|
"name": "testpkg",
|
|
383
|
-
"readme":
|
|
383
|
+
"readme": {
|
|
384
384
|
"markdown": "# README
|
|
385
385
|
|
|
386
386
|
\`\`\`java
|
|
387
|
-
IInterface object = new ClassName(
|
|
387
|
+
IInterface object = new ClassName("this", 1337, new ClassNameProps().foo("bar"));
|
|
388
388
|
object.getProperty() = EnumType.OPTION_A;
|
|
389
389
|
object.methodCall();
|
|
390
390
|
|
|
391
391
|
ClassName.staticMethod(EnumType.OPTION_B);
|
|
392
392
|
\`\`\`",
|
|
393
393
|
},
|
|
394
|
-
"repository":
|
|
394
|
+
"repository": {
|
|
395
395
|
"type": "git",
|
|
396
396
|
"url": "https://github.com/aws/jsii.git",
|
|
397
397
|
},
|
|
398
398
|
"schema": "jsii/0.10.0",
|
|
399
399
|
"targets": Any<Object>,
|
|
400
|
-
"types":
|
|
401
|
-
"testpkg.ClassName":
|
|
400
|
+
"types": {
|
|
401
|
+
"testpkg.ClassName": {
|
|
402
402
|
"assembly": "testpkg",
|
|
403
403
|
"fqn": "testpkg.ClassName",
|
|
404
|
-
"initializer":
|
|
405
|
-
"docs":
|
|
406
|
-
"example": "new ClassName(
|
|
404
|
+
"initializer": {
|
|
405
|
+
"docs": {
|
|
406
|
+
"example": "new ClassName("this", 1337, new ClassNameProps().property(EnumType.OPTION_B));",
|
|
407
407
|
"summary": "Create a new instance of ClassName.",
|
|
408
408
|
},
|
|
409
|
-
"locationInModule":
|
|
409
|
+
"locationInModule": {
|
|
410
410
|
"filename": "index.ts",
|
|
411
411
|
"line": 57,
|
|
412
412
|
},
|
|
413
|
-
"parameters":
|
|
414
|
-
|
|
413
|
+
"parameters": [
|
|
414
|
+
{
|
|
415
415
|
"name": "_this",
|
|
416
|
-
"type":
|
|
416
|
+
"type": {
|
|
417
417
|
"primitive": "string",
|
|
418
418
|
},
|
|
419
419
|
},
|
|
420
|
-
|
|
420
|
+
{
|
|
421
421
|
"name": "_elite",
|
|
422
|
-
"type":
|
|
422
|
+
"type": {
|
|
423
423
|
"primitive": "number",
|
|
424
424
|
},
|
|
425
425
|
},
|
|
426
|
-
|
|
426
|
+
{
|
|
427
427
|
"name": "props",
|
|
428
|
-
"type":
|
|
428
|
+
"type": {
|
|
429
429
|
"fqn": "testpkg.ClassNameProps",
|
|
430
430
|
},
|
|
431
431
|
},
|
|
432
432
|
],
|
|
433
433
|
},
|
|
434
|
-
"interfaces":
|
|
434
|
+
"interfaces": [
|
|
435
435
|
"testpkg.IInterface",
|
|
436
436
|
],
|
|
437
437
|
"kind": "class",
|
|
438
|
-
"locationInModule":
|
|
438
|
+
"locationInModule": {
|
|
439
439
|
"filename": "index.ts",
|
|
440
440
|
"line": 40,
|
|
441
441
|
},
|
|
442
|
-
"methods":
|
|
443
|
-
|
|
444
|
-
"docs":
|
|
442
|
+
"methods": [
|
|
443
|
+
{
|
|
444
|
+
"docs": {
|
|
445
445
|
"example": "ClassName.staticMethod();",
|
|
446
446
|
"remarks": "It can be invoked easily.",
|
|
447
447
|
"summary": "A static method.",
|
|
448
448
|
},
|
|
449
|
-
"locationInModule":
|
|
449
|
+
"locationInModule": {
|
|
450
450
|
"filename": "index.ts",
|
|
451
451
|
"line": 46,
|
|
452
452
|
},
|
|
453
453
|
"name": "staticMethod",
|
|
454
|
-
"parameters":
|
|
455
|
-
|
|
454
|
+
"parameters": [
|
|
455
|
+
{
|
|
456
456
|
"name": "_enm",
|
|
457
457
|
"optional": true,
|
|
458
|
-
"type":
|
|
458
|
+
"type": {
|
|
459
459
|
"fqn": "testpkg.EnumType",
|
|
460
460
|
},
|
|
461
461
|
},
|
|
462
462
|
],
|
|
463
463
|
"static": true,
|
|
464
464
|
},
|
|
465
|
-
|
|
466
|
-
"docs":
|
|
465
|
+
{
|
|
466
|
+
"docs": {
|
|
467
467
|
"summary": "An instance method call.",
|
|
468
468
|
},
|
|
469
|
-
"locationInModule":
|
|
469
|
+
"locationInModule": {
|
|
470
470
|
"filename": "index.ts",
|
|
471
471
|
"line": 61,
|
|
472
472
|
},
|
|
@@ -475,85 +475,85 @@ export class ClassName implements IInterface {
|
|
|
475
475
|
},
|
|
476
476
|
],
|
|
477
477
|
"name": "ClassName",
|
|
478
|
-
"properties":
|
|
479
|
-
|
|
480
|
-
"docs":
|
|
478
|
+
"properties": [
|
|
479
|
+
{
|
|
480
|
+
"docs": {
|
|
481
481
|
"summary": "A property value.",
|
|
482
482
|
},
|
|
483
|
-
"locationInModule":
|
|
483
|
+
"locationInModule": {
|
|
484
484
|
"filename": "index.ts",
|
|
485
485
|
"line": 50,
|
|
486
486
|
},
|
|
487
487
|
"name": "property",
|
|
488
488
|
"overrides": "testpkg.IInterface",
|
|
489
|
-
"type":
|
|
489
|
+
"type": {
|
|
490
490
|
"fqn": "testpkg.EnumType",
|
|
491
491
|
},
|
|
492
492
|
},
|
|
493
493
|
],
|
|
494
494
|
"symbolId": "index:ClassName",
|
|
495
495
|
},
|
|
496
|
-
"testpkg.ClassNameProps":
|
|
496
|
+
"testpkg.ClassNameProps": {
|
|
497
497
|
"assembly": "testpkg",
|
|
498
498
|
"datatype": true,
|
|
499
499
|
"fqn": "testpkg.ClassNameProps",
|
|
500
500
|
"kind": "interface",
|
|
501
|
-
"locationInModule":
|
|
501
|
+
"locationInModule": {
|
|
502
502
|
"filename": "index.ts",
|
|
503
503
|
"line": 35,
|
|
504
504
|
},
|
|
505
505
|
"name": "ClassNameProps",
|
|
506
|
-
"properties":
|
|
507
|
-
|
|
506
|
+
"properties": [
|
|
507
|
+
{
|
|
508
508
|
"abstract": true,
|
|
509
509
|
"immutable": true,
|
|
510
|
-
"locationInModule":
|
|
510
|
+
"locationInModule": {
|
|
511
511
|
"filename": "index.ts",
|
|
512
512
|
"line": 37,
|
|
513
513
|
},
|
|
514
514
|
"name": "foo",
|
|
515
515
|
"optional": true,
|
|
516
|
-
"type":
|
|
516
|
+
"type": {
|
|
517
517
|
"primitive": "string",
|
|
518
518
|
},
|
|
519
519
|
},
|
|
520
|
-
|
|
520
|
+
{
|
|
521
521
|
"abstract": true,
|
|
522
522
|
"immutable": true,
|
|
523
|
-
"locationInModule":
|
|
523
|
+
"locationInModule": {
|
|
524
524
|
"filename": "index.ts",
|
|
525
525
|
"line": 36,
|
|
526
526
|
},
|
|
527
527
|
"name": "property",
|
|
528
528
|
"optional": true,
|
|
529
|
-
"type":
|
|
529
|
+
"type": {
|
|
530
530
|
"fqn": "testpkg.EnumType",
|
|
531
531
|
},
|
|
532
532
|
},
|
|
533
533
|
],
|
|
534
534
|
"symbolId": "index:ClassNameProps",
|
|
535
535
|
},
|
|
536
|
-
"testpkg.EnumType":
|
|
536
|
+
"testpkg.EnumType": {
|
|
537
537
|
"assembly": "testpkg",
|
|
538
|
-
"docs":
|
|
539
|
-
"example": "new ClassName(
|
|
538
|
+
"docs": {
|
|
539
|
+
"example": "new ClassName("this", 1337, new ClassNameProps().property(EnumType.OPTION_B));",
|
|
540
540
|
},
|
|
541
541
|
"fqn": "testpkg.EnumType",
|
|
542
542
|
"kind": "enum",
|
|
543
|
-
"locationInModule":
|
|
543
|
+
"locationInModule": {
|
|
544
544
|
"filename": "index.ts",
|
|
545
545
|
"line": 5,
|
|
546
546
|
},
|
|
547
|
-
"members":
|
|
548
|
-
|
|
549
|
-
"docs":
|
|
550
|
-
"example": "new ClassName(
|
|
547
|
+
"members": [
|
|
548
|
+
{
|
|
549
|
+
"docs": {
|
|
550
|
+
"example": "new ClassName("this", 1337, new ClassNameProps().property(EnumType.OPTION_A));",
|
|
551
551
|
},
|
|
552
552
|
"name": "OPTION_A",
|
|
553
553
|
},
|
|
554
|
-
|
|
555
|
-
"docs":
|
|
556
|
-
"example": "new ClassName(
|
|
554
|
+
{
|
|
555
|
+
"docs": {
|
|
556
|
+
"example": "new ClassName("this", 1337, new ClassNameProps().property(EnumType.OPTION_B));",
|
|
557
557
|
},
|
|
558
558
|
"name": "OPTION_B",
|
|
559
559
|
},
|
|
@@ -561,22 +561,22 @@ export class ClassName implements IInterface {
|
|
|
561
561
|
"name": "EnumType",
|
|
562
562
|
"symbolId": "index:EnumType",
|
|
563
563
|
},
|
|
564
|
-
"testpkg.IInterface":
|
|
564
|
+
"testpkg.IInterface": {
|
|
565
565
|
"assembly": "testpkg",
|
|
566
566
|
"fqn": "testpkg.IInterface",
|
|
567
567
|
"kind": "interface",
|
|
568
|
-
"locationInModule":
|
|
568
|
+
"locationInModule": {
|
|
569
569
|
"filename": "index.ts",
|
|
570
570
|
"line": 17,
|
|
571
571
|
},
|
|
572
|
-
"methods":
|
|
573
|
-
|
|
572
|
+
"methods": [
|
|
573
|
+
{
|
|
574
574
|
"abstract": true,
|
|
575
|
-
"docs":
|
|
575
|
+
"docs": {
|
|
576
576
|
"example": "iface.methodCall();",
|
|
577
577
|
"summary": "An instance method call.",
|
|
578
578
|
},
|
|
579
|
-
"locationInModule":
|
|
579
|
+
"locationInModule": {
|
|
580
580
|
"filename": "index.ts",
|
|
581
581
|
"line": 32,
|
|
582
582
|
},
|
|
@@ -584,19 +584,19 @@ export class ClassName implements IInterface {
|
|
|
584
584
|
},
|
|
585
585
|
],
|
|
586
586
|
"name": "IInterface",
|
|
587
|
-
"properties":
|
|
588
|
-
|
|
587
|
+
"properties": [
|
|
588
|
+
{
|
|
589
589
|
"abstract": true,
|
|
590
|
-
"docs":
|
|
590
|
+
"docs": {
|
|
591
591
|
"example": "iface.getProperty() = EnumType.OPTION_B;",
|
|
592
592
|
"summary": "A property value.",
|
|
593
593
|
},
|
|
594
|
-
"locationInModule":
|
|
594
|
+
"locationInModule": {
|
|
595
595
|
"filename": "index.ts",
|
|
596
596
|
"line": 24,
|
|
597
597
|
},
|
|
598
598
|
"name": "property",
|
|
599
|
-
"type":
|
|
599
|
+
"type": {
|
|
600
600
|
"fqn": "testpkg.EnumType",
|
|
601
601
|
},
|
|
602
602
|
},
|
|
@@ -612,10 +612,10 @@ export class ClassName implements IInterface {
|
|
|
612
612
|
jsiiVersion: expect.any(String),
|
|
613
613
|
targets: expect.any(Object),
|
|
614
614
|
}, `
|
|
615
|
-
|
|
616
|
-
"author":
|
|
615
|
+
{
|
|
616
|
+
"author": {
|
|
617
617
|
"name": "John Doe",
|
|
618
|
-
"roles":
|
|
618
|
+
"roles": [
|
|
619
619
|
"author",
|
|
620
620
|
],
|
|
621
621
|
},
|
|
@@ -624,101 +624,101 @@ export class ClassName implements IInterface {
|
|
|
624
624
|
"homepage": "https://github.com/aws/jsii.git",
|
|
625
625
|
"jsiiVersion": Any<String>,
|
|
626
626
|
"license": "Apache-2.0",
|
|
627
|
-
"metadata":
|
|
628
|
-
"jsii":
|
|
629
|
-
"pacmak":
|
|
627
|
+
"metadata": {
|
|
628
|
+
"jsii": {
|
|
629
|
+
"pacmak": {
|
|
630
630
|
"hasDefaultInterfaces": true,
|
|
631
631
|
},
|
|
632
632
|
},
|
|
633
633
|
},
|
|
634
634
|
"name": "testpkg",
|
|
635
|
-
"readme":
|
|
635
|
+
"readme": {
|
|
636
636
|
"markdown": "# README
|
|
637
637
|
|
|
638
638
|
\`\`\`python
|
|
639
|
-
object = ClassName(
|
|
639
|
+
object = ClassName("this", 1337, foo="bar")
|
|
640
640
|
object.property = EnumType.OPTION_A
|
|
641
641
|
object.method_call()
|
|
642
642
|
|
|
643
643
|
ClassName.static_method(EnumType.OPTION_B)
|
|
644
644
|
\`\`\`",
|
|
645
645
|
},
|
|
646
|
-
"repository":
|
|
646
|
+
"repository": {
|
|
647
647
|
"type": "git",
|
|
648
648
|
"url": "https://github.com/aws/jsii.git",
|
|
649
649
|
},
|
|
650
650
|
"schema": "jsii/0.10.0",
|
|
651
651
|
"targets": Any<Object>,
|
|
652
|
-
"types":
|
|
653
|
-
"testpkg.ClassName":
|
|
652
|
+
"types": {
|
|
653
|
+
"testpkg.ClassName": {
|
|
654
654
|
"assembly": "testpkg",
|
|
655
655
|
"fqn": "testpkg.ClassName",
|
|
656
|
-
"initializer":
|
|
657
|
-
"docs":
|
|
658
|
-
"example": "ClassName(
|
|
656
|
+
"initializer": {
|
|
657
|
+
"docs": {
|
|
658
|
+
"example": "ClassName("this", 1337, property=EnumType.OPTION_B)",
|
|
659
659
|
"summary": "Create a new instance of ClassName.",
|
|
660
660
|
},
|
|
661
|
-
"locationInModule":
|
|
661
|
+
"locationInModule": {
|
|
662
662
|
"filename": "index.ts",
|
|
663
663
|
"line": 57,
|
|
664
664
|
},
|
|
665
|
-
"parameters":
|
|
666
|
-
|
|
665
|
+
"parameters": [
|
|
666
|
+
{
|
|
667
667
|
"name": "_this",
|
|
668
|
-
"type":
|
|
668
|
+
"type": {
|
|
669
669
|
"primitive": "string",
|
|
670
670
|
},
|
|
671
671
|
},
|
|
672
|
-
|
|
672
|
+
{
|
|
673
673
|
"name": "_elite",
|
|
674
|
-
"type":
|
|
674
|
+
"type": {
|
|
675
675
|
"primitive": "number",
|
|
676
676
|
},
|
|
677
677
|
},
|
|
678
|
-
|
|
678
|
+
{
|
|
679
679
|
"name": "props",
|
|
680
|
-
"type":
|
|
680
|
+
"type": {
|
|
681
681
|
"fqn": "testpkg.ClassNameProps",
|
|
682
682
|
},
|
|
683
683
|
},
|
|
684
684
|
],
|
|
685
685
|
},
|
|
686
|
-
"interfaces":
|
|
686
|
+
"interfaces": [
|
|
687
687
|
"testpkg.IInterface",
|
|
688
688
|
],
|
|
689
689
|
"kind": "class",
|
|
690
|
-
"locationInModule":
|
|
690
|
+
"locationInModule": {
|
|
691
691
|
"filename": "index.ts",
|
|
692
692
|
"line": 40,
|
|
693
693
|
},
|
|
694
|
-
"methods":
|
|
695
|
-
|
|
696
|
-
"docs":
|
|
694
|
+
"methods": [
|
|
695
|
+
{
|
|
696
|
+
"docs": {
|
|
697
697
|
"example": "ClassName.static_method()",
|
|
698
698
|
"remarks": "It can be invoked easily.",
|
|
699
699
|
"summary": "A static method.",
|
|
700
700
|
},
|
|
701
|
-
"locationInModule":
|
|
701
|
+
"locationInModule": {
|
|
702
702
|
"filename": "index.ts",
|
|
703
703
|
"line": 46,
|
|
704
704
|
},
|
|
705
705
|
"name": "staticMethod",
|
|
706
|
-
"parameters":
|
|
707
|
-
|
|
706
|
+
"parameters": [
|
|
707
|
+
{
|
|
708
708
|
"name": "_enm",
|
|
709
709
|
"optional": true,
|
|
710
|
-
"type":
|
|
710
|
+
"type": {
|
|
711
711
|
"fqn": "testpkg.EnumType",
|
|
712
712
|
},
|
|
713
713
|
},
|
|
714
714
|
],
|
|
715
715
|
"static": true,
|
|
716
716
|
},
|
|
717
|
-
|
|
718
|
-
"docs":
|
|
717
|
+
{
|
|
718
|
+
"docs": {
|
|
719
719
|
"summary": "An instance method call.",
|
|
720
720
|
},
|
|
721
|
-
"locationInModule":
|
|
721
|
+
"locationInModule": {
|
|
722
722
|
"filename": "index.ts",
|
|
723
723
|
"line": 61,
|
|
724
724
|
},
|
|
@@ -727,85 +727,85 @@ export class ClassName implements IInterface {
|
|
|
727
727
|
},
|
|
728
728
|
],
|
|
729
729
|
"name": "ClassName",
|
|
730
|
-
"properties":
|
|
731
|
-
|
|
732
|
-
"docs":
|
|
730
|
+
"properties": [
|
|
731
|
+
{
|
|
732
|
+
"docs": {
|
|
733
733
|
"summary": "A property value.",
|
|
734
734
|
},
|
|
735
|
-
"locationInModule":
|
|
735
|
+
"locationInModule": {
|
|
736
736
|
"filename": "index.ts",
|
|
737
737
|
"line": 50,
|
|
738
738
|
},
|
|
739
739
|
"name": "property",
|
|
740
740
|
"overrides": "testpkg.IInterface",
|
|
741
|
-
"type":
|
|
741
|
+
"type": {
|
|
742
742
|
"fqn": "testpkg.EnumType",
|
|
743
743
|
},
|
|
744
744
|
},
|
|
745
745
|
],
|
|
746
746
|
"symbolId": "index:ClassName",
|
|
747
747
|
},
|
|
748
|
-
"testpkg.ClassNameProps":
|
|
748
|
+
"testpkg.ClassNameProps": {
|
|
749
749
|
"assembly": "testpkg",
|
|
750
750
|
"datatype": true,
|
|
751
751
|
"fqn": "testpkg.ClassNameProps",
|
|
752
752
|
"kind": "interface",
|
|
753
|
-
"locationInModule":
|
|
753
|
+
"locationInModule": {
|
|
754
754
|
"filename": "index.ts",
|
|
755
755
|
"line": 35,
|
|
756
756
|
},
|
|
757
757
|
"name": "ClassNameProps",
|
|
758
|
-
"properties":
|
|
759
|
-
|
|
758
|
+
"properties": [
|
|
759
|
+
{
|
|
760
760
|
"abstract": true,
|
|
761
761
|
"immutable": true,
|
|
762
|
-
"locationInModule":
|
|
762
|
+
"locationInModule": {
|
|
763
763
|
"filename": "index.ts",
|
|
764
764
|
"line": 37,
|
|
765
765
|
},
|
|
766
766
|
"name": "foo",
|
|
767
767
|
"optional": true,
|
|
768
|
-
"type":
|
|
768
|
+
"type": {
|
|
769
769
|
"primitive": "string",
|
|
770
770
|
},
|
|
771
771
|
},
|
|
772
|
-
|
|
772
|
+
{
|
|
773
773
|
"abstract": true,
|
|
774
774
|
"immutable": true,
|
|
775
|
-
"locationInModule":
|
|
775
|
+
"locationInModule": {
|
|
776
776
|
"filename": "index.ts",
|
|
777
777
|
"line": 36,
|
|
778
778
|
},
|
|
779
779
|
"name": "property",
|
|
780
780
|
"optional": true,
|
|
781
|
-
"type":
|
|
781
|
+
"type": {
|
|
782
782
|
"fqn": "testpkg.EnumType",
|
|
783
783
|
},
|
|
784
784
|
},
|
|
785
785
|
],
|
|
786
786
|
"symbolId": "index:ClassNameProps",
|
|
787
787
|
},
|
|
788
|
-
"testpkg.EnumType":
|
|
788
|
+
"testpkg.EnumType": {
|
|
789
789
|
"assembly": "testpkg",
|
|
790
|
-
"docs":
|
|
791
|
-
"example": "ClassName(
|
|
790
|
+
"docs": {
|
|
791
|
+
"example": "ClassName("this", 1337, property=EnumType.OPTION_B)",
|
|
792
792
|
},
|
|
793
793
|
"fqn": "testpkg.EnumType",
|
|
794
794
|
"kind": "enum",
|
|
795
|
-
"locationInModule":
|
|
795
|
+
"locationInModule": {
|
|
796
796
|
"filename": "index.ts",
|
|
797
797
|
"line": 5,
|
|
798
798
|
},
|
|
799
|
-
"members":
|
|
800
|
-
|
|
801
|
-
"docs":
|
|
802
|
-
"example": "ClassName(
|
|
799
|
+
"members": [
|
|
800
|
+
{
|
|
801
|
+
"docs": {
|
|
802
|
+
"example": "ClassName("this", 1337, property=EnumType.OPTION_A)",
|
|
803
803
|
},
|
|
804
804
|
"name": "OPTION_A",
|
|
805
805
|
},
|
|
806
|
-
|
|
807
|
-
"docs":
|
|
808
|
-
"example": "ClassName(
|
|
806
|
+
{
|
|
807
|
+
"docs": {
|
|
808
|
+
"example": "ClassName("this", 1337, property=EnumType.OPTION_B)",
|
|
809
809
|
},
|
|
810
810
|
"name": "OPTION_B",
|
|
811
811
|
},
|
|
@@ -813,22 +813,22 @@ export class ClassName implements IInterface {
|
|
|
813
813
|
"name": "EnumType",
|
|
814
814
|
"symbolId": "index:EnumType",
|
|
815
815
|
},
|
|
816
|
-
"testpkg.IInterface":
|
|
816
|
+
"testpkg.IInterface": {
|
|
817
817
|
"assembly": "testpkg",
|
|
818
818
|
"fqn": "testpkg.IInterface",
|
|
819
819
|
"kind": "interface",
|
|
820
|
-
"locationInModule":
|
|
820
|
+
"locationInModule": {
|
|
821
821
|
"filename": "index.ts",
|
|
822
822
|
"line": 17,
|
|
823
823
|
},
|
|
824
|
-
"methods":
|
|
825
|
-
|
|
824
|
+
"methods": [
|
|
825
|
+
{
|
|
826
826
|
"abstract": true,
|
|
827
|
-
"docs":
|
|
827
|
+
"docs": {
|
|
828
828
|
"example": "iface.method_call()",
|
|
829
829
|
"summary": "An instance method call.",
|
|
830
830
|
},
|
|
831
|
-
"locationInModule":
|
|
831
|
+
"locationInModule": {
|
|
832
832
|
"filename": "index.ts",
|
|
833
833
|
"line": 32,
|
|
834
834
|
},
|
|
@@ -836,19 +836,19 @@ export class ClassName implements IInterface {
|
|
|
836
836
|
},
|
|
837
837
|
],
|
|
838
838
|
"name": "IInterface",
|
|
839
|
-
"properties":
|
|
840
|
-
|
|
839
|
+
"properties": [
|
|
840
|
+
{
|
|
841
841
|
"abstract": true,
|
|
842
|
-
"docs":
|
|
842
|
+
"docs": {
|
|
843
843
|
"example": "iface.property = EnumType.OPTION_B",
|
|
844
844
|
"summary": "A property value.",
|
|
845
845
|
},
|
|
846
|
-
"locationInModule":
|
|
846
|
+
"locationInModule": {
|
|
847
847
|
"filename": "index.ts",
|
|
848
848
|
"line": 24,
|
|
849
849
|
},
|
|
850
850
|
"name": "property",
|
|
851
|
-
"type":
|
|
851
|
+
"type": {
|
|
852
852
|
"fqn": "testpkg.EnumType",
|
|
853
853
|
},
|
|
854
854
|
},
|
|
@@ -922,10 +922,10 @@ new SampleClass('omitted-literate');
|
|
|
922
922
|
jsiiVersion: expect.any(String),
|
|
923
923
|
targets: expect.any(Object),
|
|
924
924
|
}, `
|
|
925
|
-
|
|
926
|
-
"author":
|
|
925
|
+
{
|
|
926
|
+
"author": {
|
|
927
927
|
"name": "John Doe",
|
|
928
|
-
"roles":
|
|
928
|
+
"roles": [
|
|
929
929
|
"author",
|
|
930
930
|
],
|
|
931
931
|
},
|
|
@@ -934,22 +934,22 @@ new SampleClass('omitted-literate');
|
|
|
934
934
|
"homepage": "https://github.com/aws/jsii.git",
|
|
935
935
|
"jsiiVersion": Any<String>,
|
|
936
936
|
"license": "Apache-2.0",
|
|
937
|
-
"metadata":
|
|
938
|
-
"jsii":
|
|
939
|
-
"pacmak":
|
|
937
|
+
"metadata": {
|
|
938
|
+
"jsii": {
|
|
939
|
+
"pacmak": {
|
|
940
940
|
"hasDefaultInterfaces": true,
|
|
941
941
|
},
|
|
942
942
|
},
|
|
943
943
|
},
|
|
944
944
|
"name": "testpkg",
|
|
945
|
-
"readme":
|
|
945
|
+
"readme": {
|
|
946
946
|
"markdown": "# Missing literate source
|
|
947
947
|
|
|
948
948
|
## This is a heading within the literate file!
|
|
949
949
|
|
|
950
950
|
\`\`\`csharp
|
|
951
951
|
// Example automatically generated from non-compiling source. May contain errors.
|
|
952
|
-
new SampleClass(
|
|
952
|
+
new SampleClass("literate");
|
|
953
953
|
\`\`\`
|
|
954
954
|
|
|
955
955
|
# Missing literate source and fallback
|
|
@@ -958,46 +958,46 @@ new SampleClass('omitted-literate');
|
|
|
958
958
|
|
|
959
959
|
\`\`\`csharp
|
|
960
960
|
// Example automatically generated from non-compiling source. May contain errors.
|
|
961
|
-
new SampleClass(
|
|
961
|
+
new SampleClass("omitted-literate");
|
|
962
962
|
\`\`\`
|
|
963
963
|
|
|
964
964
|
# Missing fixture
|
|
965
965
|
|
|
966
966
|
\`\`\`csharp
|
|
967
967
|
// Example automatically generated from non-compiling source. May contain errors.
|
|
968
|
-
new SampleClass(
|
|
968
|
+
new SampleClass("README.md");
|
|
969
969
|
\`\`\`",
|
|
970
970
|
},
|
|
971
|
-
"repository":
|
|
971
|
+
"repository": {
|
|
972
972
|
"type": "git",
|
|
973
973
|
"url": "https://github.com/aws/jsii.git",
|
|
974
974
|
},
|
|
975
975
|
"schema": "jsii/0.10.0",
|
|
976
976
|
"targets": Any<Object>,
|
|
977
|
-
"types":
|
|
978
|
-
"testpkg.SampleClass":
|
|
977
|
+
"types": {
|
|
978
|
+
"testpkg.SampleClass": {
|
|
979
979
|
"assembly": "testpkg",
|
|
980
|
-
"docs":
|
|
980
|
+
"docs": {
|
|
981
981
|
"example": "// Example automatically generated from non-compiling source. May contain errors.
|
|
982
|
-
new DoesNotCompile(this,
|
|
982
|
+
new DoesNotCompile(this, "That", new Struct { Foo = 1337 });",
|
|
983
983
|
},
|
|
984
984
|
"fqn": "testpkg.SampleClass",
|
|
985
|
-
"initializer":
|
|
986
|
-
"locationInModule":
|
|
985
|
+
"initializer": {
|
|
986
|
+
"locationInModule": {
|
|
987
987
|
"filename": "index.ts",
|
|
988
988
|
"line": 8,
|
|
989
989
|
},
|
|
990
|
-
"parameters":
|
|
991
|
-
|
|
990
|
+
"parameters": [
|
|
991
|
+
{
|
|
992
992
|
"name": "_source",
|
|
993
|
-
"type":
|
|
993
|
+
"type": {
|
|
994
994
|
"primitive": "string",
|
|
995
995
|
},
|
|
996
996
|
},
|
|
997
997
|
],
|
|
998
998
|
},
|
|
999
999
|
"kind": "class",
|
|
1000
|
-
"locationInModule":
|
|
1000
|
+
"locationInModule": {
|
|
1001
1001
|
"filename": "index.ts",
|
|
1002
1002
|
"line": 7,
|
|
1003
1003
|
},
|
|
@@ -1013,10 +1013,10 @@ new SampleClass('omitted-literate');
|
|
|
1013
1013
|
jsiiVersion: expect.any(String),
|
|
1014
1014
|
targets: expect.any(Object),
|
|
1015
1015
|
}, `
|
|
1016
|
-
|
|
1017
|
-
"author":
|
|
1016
|
+
{
|
|
1017
|
+
"author": {
|
|
1018
1018
|
"name": "John Doe",
|
|
1019
|
-
"roles":
|
|
1019
|
+
"roles": [
|
|
1020
1020
|
"author",
|
|
1021
1021
|
],
|
|
1022
1022
|
},
|
|
@@ -1025,22 +1025,22 @@ new SampleClass('omitted-literate');
|
|
|
1025
1025
|
"homepage": "https://github.com/aws/jsii.git",
|
|
1026
1026
|
"jsiiVersion": Any<String>,
|
|
1027
1027
|
"license": "Apache-2.0",
|
|
1028
|
-
"metadata":
|
|
1029
|
-
"jsii":
|
|
1030
|
-
"pacmak":
|
|
1028
|
+
"metadata": {
|
|
1029
|
+
"jsii": {
|
|
1030
|
+
"pacmak": {
|
|
1031
1031
|
"hasDefaultInterfaces": true,
|
|
1032
1032
|
},
|
|
1033
1033
|
},
|
|
1034
1034
|
},
|
|
1035
1035
|
"name": "testpkg",
|
|
1036
|
-
"readme":
|
|
1036
|
+
"readme": {
|
|
1037
1037
|
"markdown": "# Missing literate source
|
|
1038
1038
|
|
|
1039
1039
|
## This is a heading within the literate file!
|
|
1040
1040
|
|
|
1041
1041
|
\`\`\`java
|
|
1042
1042
|
// Example automatically generated from non-compiling source. May contain errors.
|
|
1043
|
-
new SampleClass(
|
|
1043
|
+
new SampleClass("literate");
|
|
1044
1044
|
\`\`\`
|
|
1045
1045
|
|
|
1046
1046
|
# Missing literate source and fallback
|
|
@@ -1049,46 +1049,46 @@ new SampleClass('omitted-literate');
|
|
|
1049
1049
|
|
|
1050
1050
|
\`\`\`java
|
|
1051
1051
|
// Example automatically generated from non-compiling source. May contain errors.
|
|
1052
|
-
new SampleClass(
|
|
1052
|
+
new SampleClass("omitted-literate");
|
|
1053
1053
|
\`\`\`
|
|
1054
1054
|
|
|
1055
1055
|
# Missing fixture
|
|
1056
1056
|
|
|
1057
1057
|
\`\`\`java
|
|
1058
1058
|
// Example automatically generated from non-compiling source. May contain errors.
|
|
1059
|
-
new SampleClass(
|
|
1059
|
+
new SampleClass("README.md");
|
|
1060
1060
|
\`\`\`",
|
|
1061
1061
|
},
|
|
1062
|
-
"repository":
|
|
1062
|
+
"repository": {
|
|
1063
1063
|
"type": "git",
|
|
1064
1064
|
"url": "https://github.com/aws/jsii.git",
|
|
1065
1065
|
},
|
|
1066
1066
|
"schema": "jsii/0.10.0",
|
|
1067
1067
|
"targets": Any<Object>,
|
|
1068
|
-
"types":
|
|
1069
|
-
"testpkg.SampleClass":
|
|
1068
|
+
"types": {
|
|
1069
|
+
"testpkg.SampleClass": {
|
|
1070
1070
|
"assembly": "testpkg",
|
|
1071
|
-
"docs":
|
|
1071
|
+
"docs": {
|
|
1072
1072
|
"example": "// Example automatically generated from non-compiling source. May contain errors.
|
|
1073
|
-
DoesNotCompile.Builder.create(this,
|
|
1073
|
+
DoesNotCompile.Builder.create(this, "That").foo(1337).build();",
|
|
1074
1074
|
},
|
|
1075
1075
|
"fqn": "testpkg.SampleClass",
|
|
1076
|
-
"initializer":
|
|
1077
|
-
"locationInModule":
|
|
1076
|
+
"initializer": {
|
|
1077
|
+
"locationInModule": {
|
|
1078
1078
|
"filename": "index.ts",
|
|
1079
1079
|
"line": 8,
|
|
1080
1080
|
},
|
|
1081
|
-
"parameters":
|
|
1082
|
-
|
|
1081
|
+
"parameters": [
|
|
1082
|
+
{
|
|
1083
1083
|
"name": "_source",
|
|
1084
|
-
"type":
|
|
1084
|
+
"type": {
|
|
1085
1085
|
"primitive": "string",
|
|
1086
1086
|
},
|
|
1087
1087
|
},
|
|
1088
1088
|
],
|
|
1089
1089
|
},
|
|
1090
1090
|
"kind": "class",
|
|
1091
|
-
"locationInModule":
|
|
1091
|
+
"locationInModule": {
|
|
1092
1092
|
"filename": "index.ts",
|
|
1093
1093
|
"line": 7,
|
|
1094
1094
|
},
|
|
@@ -1104,10 +1104,10 @@ new SampleClass('omitted-literate');
|
|
|
1104
1104
|
jsiiVersion: expect.any(String),
|
|
1105
1105
|
targets: expect.any(Object),
|
|
1106
1106
|
}, `
|
|
1107
|
-
|
|
1108
|
-
"author":
|
|
1107
|
+
{
|
|
1108
|
+
"author": {
|
|
1109
1109
|
"name": "John Doe",
|
|
1110
|
-
"roles":
|
|
1110
|
+
"roles": [
|
|
1111
1111
|
"author",
|
|
1112
1112
|
],
|
|
1113
1113
|
},
|
|
@@ -1116,22 +1116,22 @@ new SampleClass('omitted-literate');
|
|
|
1116
1116
|
"homepage": "https://github.com/aws/jsii.git",
|
|
1117
1117
|
"jsiiVersion": Any<String>,
|
|
1118
1118
|
"license": "Apache-2.0",
|
|
1119
|
-
"metadata":
|
|
1120
|
-
"jsii":
|
|
1121
|
-
"pacmak":
|
|
1119
|
+
"metadata": {
|
|
1120
|
+
"jsii": {
|
|
1121
|
+
"pacmak": {
|
|
1122
1122
|
"hasDefaultInterfaces": true,
|
|
1123
1123
|
},
|
|
1124
1124
|
},
|
|
1125
1125
|
},
|
|
1126
1126
|
"name": "testpkg",
|
|
1127
|
-
"readme":
|
|
1127
|
+
"readme": {
|
|
1128
1128
|
"markdown": "# Missing literate source
|
|
1129
1129
|
|
|
1130
1130
|
## This is a heading within the literate file!
|
|
1131
1131
|
|
|
1132
1132
|
\`\`\`python
|
|
1133
1133
|
# Example automatically generated from non-compiling source. May contain errors.
|
|
1134
|
-
SampleClass(
|
|
1134
|
+
SampleClass("literate")
|
|
1135
1135
|
\`\`\`
|
|
1136
1136
|
|
|
1137
1137
|
# Missing literate source and fallback
|
|
@@ -1140,46 +1140,46 @@ new SampleClass('omitted-literate');
|
|
|
1140
1140
|
|
|
1141
1141
|
\`\`\`python
|
|
1142
1142
|
# Example automatically generated from non-compiling source. May contain errors.
|
|
1143
|
-
SampleClass(
|
|
1143
|
+
SampleClass("omitted-literate")
|
|
1144
1144
|
\`\`\`
|
|
1145
1145
|
|
|
1146
1146
|
# Missing fixture
|
|
1147
1147
|
|
|
1148
1148
|
\`\`\`python
|
|
1149
1149
|
# Example automatically generated from non-compiling source. May contain errors.
|
|
1150
|
-
SampleClass(
|
|
1150
|
+
SampleClass("README.md")
|
|
1151
1151
|
\`\`\`",
|
|
1152
1152
|
},
|
|
1153
|
-
"repository":
|
|
1153
|
+
"repository": {
|
|
1154
1154
|
"type": "git",
|
|
1155
1155
|
"url": "https://github.com/aws/jsii.git",
|
|
1156
1156
|
},
|
|
1157
1157
|
"schema": "jsii/0.10.0",
|
|
1158
1158
|
"targets": Any<Object>,
|
|
1159
|
-
"types":
|
|
1160
|
-
"testpkg.SampleClass":
|
|
1159
|
+
"types": {
|
|
1160
|
+
"testpkg.SampleClass": {
|
|
1161
1161
|
"assembly": "testpkg",
|
|
1162
|
-
"docs":
|
|
1162
|
+
"docs": {
|
|
1163
1163
|
"example": "# Example automatically generated from non-compiling source. May contain errors.
|
|
1164
|
-
DoesNotCompile(self,
|
|
1164
|
+
DoesNotCompile(self, "That", foo=1337)",
|
|
1165
1165
|
},
|
|
1166
1166
|
"fqn": "testpkg.SampleClass",
|
|
1167
|
-
"initializer":
|
|
1168
|
-
"locationInModule":
|
|
1167
|
+
"initializer": {
|
|
1168
|
+
"locationInModule": {
|
|
1169
1169
|
"filename": "index.ts",
|
|
1170
1170
|
"line": 8,
|
|
1171
1171
|
},
|
|
1172
|
-
"parameters":
|
|
1173
|
-
|
|
1172
|
+
"parameters": [
|
|
1173
|
+
{
|
|
1174
1174
|
"name": "_source",
|
|
1175
|
-
"type":
|
|
1175
|
+
"type": {
|
|
1176
1176
|
"primitive": "string",
|
|
1177
1177
|
},
|
|
1178
1178
|
},
|
|
1179
1179
|
],
|
|
1180
1180
|
},
|
|
1181
1181
|
"kind": "class",
|
|
1182
|
-
"locationInModule":
|
|
1182
|
+
"locationInModule": {
|
|
1183
1183
|
"filename": "index.ts",
|
|
1184
1184
|
"line": 7,
|
|
1185
1185
|
},
|
|
@@ -150,7 +150,7 @@ test('Fixture allows use of import statements', async () => {
|
|
|
150
150
|
expect(snippets[0].completeSource).toMatchInlineSnapshot(`
|
|
151
151
|
"// Hoisted imports begin after !show marker below
|
|
152
152
|
/// !show
|
|
153
|
-
import { exit } from
|
|
153
|
+
import { exit } from "process";
|
|
154
154
|
/// !hide
|
|
155
155
|
// Hoisted imports ended before !hide marker above
|
|
156
156
|
// This is a fixture
|