jsii-pacmak 1.114.1 → 1.116.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.
- package/lib/npm-modules.d.ts +1 -1
- package/lib/npm-modules.js +1 -3
- package/lib/packaging.d.ts +1 -5
- package/lib/packaging.js +12 -6
- package/lib/rosetta-assembly.d.ts +4 -0
- package/lib/rosetta-assembly.js +9 -3
- package/lib/targets/dotnet/dotnetdocgenerator.d.ts +4 -1
- package/lib/targets/dotnet/dotnetdocgenerator.js +66 -13
- package/lib/targets/dotnet/dotnetgenerator.d.ts +0 -4
- package/lib/targets/dotnet/dotnetgenerator.js +24 -14
- package/lib/targets/dotnet/dotnetruntimegenerator.js +11 -2
- package/lib/targets/dotnet/dotnettyperesolver.d.ts +13 -0
- package/lib/targets/dotnet/dotnettyperesolver.js +40 -2
- package/lib/targets/dotnet.d.ts +1 -1
- package/lib/targets/dotnet.js +6 -4
- package/lib/targets/go/runtime/runtime-type-checking.js +1 -0
- package/lib/targets/go/types/go-type-reference.d.ts +3 -0
- package/lib/targets/go/types/go-type-reference.js +20 -0
- package/lib/targets/go.js +1 -1
- package/lib/targets/java.d.ts +28 -4
- package/lib/targets/java.js +408 -217
- package/lib/targets/python/requirements-dev.txt +1 -1
- package/lib/targets/python/type-name.d.ts +18 -0
- package/lib/targets/python/type-name.js +59 -1
- package/lib/targets/python.d.ts +2 -1
- package/lib/targets/python.js +50 -18
- package/lib/targets/type-literals.d.ts +22 -0
- package/lib/targets/type-literals.js +39 -0
- package/lib/type-utils.d.ts +3 -0
- package/lib/type-utils.js +10 -0
- package/lib/type-visitor.d.ts +19 -0
- package/lib/type-visitor.js +47 -0
- package/lib/util.d.ts +18 -5
- package/lib/util.js +80 -13
- package/lib/version.d.ts +1 -1
- package/lib/version.js +3 -3
- package/package.json +12 -12
package/lib/targets/go.js
CHANGED
|
@@ -205,7 +205,7 @@ function tryFindLocalRuntime() {
|
|
|
205
205
|
*/
|
|
206
206
|
async function go(command, args, options) {
|
|
207
207
|
const { cwd } = options;
|
|
208
|
-
return (0, util_1.
|
|
208
|
+
return (0, util_1.subprocess)('go', [command, ...args], {
|
|
209
209
|
cwd,
|
|
210
210
|
env: {
|
|
211
211
|
// disable the use of sumdb to reduce eventual consistency issues when new modules are published
|
package/lib/targets/java.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ declare class JavaGenerator extends Generator {
|
|
|
142
142
|
*
|
|
143
143
|
* @param parameters the list of parameters received by the function.
|
|
144
144
|
*/
|
|
145
|
-
private
|
|
145
|
+
private emitUnionParameterValidation;
|
|
146
146
|
/**
|
|
147
147
|
* We are now going to build a class that can be used as a proxy for untyped
|
|
148
148
|
* javascript objects that implement this interface. we want java code to be
|
|
@@ -168,15 +168,38 @@ declare class JavaGenerator extends Generator {
|
|
|
168
168
|
private toJavaFilePath;
|
|
169
169
|
private toJavaResourcePath;
|
|
170
170
|
private addJavaDocs;
|
|
171
|
+
private paramJavadoc;
|
|
171
172
|
private getClassBase;
|
|
172
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Convert an OptionalValue, adding the `NotNull` or `Nullable` declarations as appropriate
|
|
175
|
+
*/
|
|
173
176
|
private toDecoratedJavaTypes;
|
|
177
|
+
/**
|
|
178
|
+
* Renders a type without generic arguments
|
|
179
|
+
*
|
|
180
|
+
* Necessary because of type erasure; the compiler
|
|
181
|
+
* will not let you check `foo instanceof Map<String, Foo>`,
|
|
182
|
+
* and you must instead check `foo instanceof Map`.
|
|
183
|
+
*/
|
|
174
184
|
private toJavaTypeNoGenerics;
|
|
175
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Return the jsii object that represents this native type
|
|
187
|
+
*/
|
|
176
188
|
private toNativeType;
|
|
189
|
+
/**
|
|
190
|
+
* Convert a jsii type to a single Java type, collapsing to object if necessary
|
|
191
|
+
*/
|
|
192
|
+
private toSingleJavaType;
|
|
193
|
+
/**
|
|
194
|
+
* Convert a jsii type to a union of Java types
|
|
195
|
+
*/
|
|
177
196
|
private toJavaTypes;
|
|
178
197
|
private toJavaCollection;
|
|
179
198
|
private toJavaPrimitive;
|
|
199
|
+
/**
|
|
200
|
+
* Render a type reference to something human readable for use in JavaDocs
|
|
201
|
+
*/
|
|
202
|
+
private renderTypeReference;
|
|
180
203
|
private renderMethodCallArguments;
|
|
181
204
|
private renderMethodCall;
|
|
182
205
|
/**
|
|
@@ -187,7 +210,8 @@ declare class JavaGenerator extends Generator {
|
|
|
187
210
|
* @returns The modified or original statement.
|
|
188
211
|
*/
|
|
189
212
|
private wrapCollection;
|
|
190
|
-
private
|
|
213
|
+
private convertTypes;
|
|
214
|
+
private renderParameters;
|
|
191
215
|
private renderAccessLevel;
|
|
192
216
|
private makeModuleClass;
|
|
193
217
|
private emitModuleFile;
|